1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/*: reorder ENABLE_DEBUG after last include

This commit is contained in:
Bas Stottelaar 2020-10-22 01:07:14 +02:00
parent ff53307599
commit bd34cf8fc0
13 changed files with 40 additions and 36 deletions

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include "irq_arch.h"
#include "esp_err.h"
@ -28,6 +25,9 @@
#include "soc/dport_reg.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
struct _irq_alloc_table_t {
int src; /* peripheral interrupt source */
uint32_t intr; /* interrupt number */

View File

@ -18,8 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include <stdlib.h>
@ -68,6 +66,9 @@
#include "stdio_uart.h"
#endif
#define ENABLE_DEBUG 0
#include "debug.h"
#define MHZ 1000000UL
#define STRINGIFY(s) STRINGIFY2(s)
#define STRINGIFY2(s) #s

View File

@ -19,9 +19,6 @@
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include "cpu.h"
#include "mutex.h"
#include "periph/adc.h"
@ -31,6 +28,9 @@
#include "esp_common.h"
#include "sdk/sdk.h"
#define ENABLE_DEBUG 0
#include "debug.h"
extern uint16_t test_tout(void);
int adc_init(adc_t line)

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdbool.h>
#include "log.h"
@ -40,6 +37,9 @@
#include "irq_arch.h"
#include "syscalls.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/*
* IOMUX to GPIO mapping
* source https://www.espressif.com/sites/default/files/documentation/0d-esp8266_pin_list_release_15-11-2014.xlsx

View File

@ -20,9 +20,6 @@
#include <assert.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "cpu.h"
#include "log.h"
#include "irq_arch.h"
@ -36,6 +33,9 @@
#include "sdk/sdk.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#define TIMER_FRC1_CLKDIV_16 BIT(2)
#define TIMER_FRC1_CLKDIV_256 BIT(3)

View File

@ -16,8 +16,6 @@
* @author Gunar Schorcht <gunar@schorcht.net>
* @}
*/
#define ENABLE_DEBUG 0
#include "debug.h"
#include <stdint.h>
#include <stdio.h>
@ -46,6 +44,9 @@
#include "gdbstub.h"
#endif
#define ENABLE_DEBUG 0
#include "debug.h"
/* external esp function declarations */
extern uint32_t hwrand (void);

View File

@ -46,9 +46,6 @@
#include "esp_wifi_params.h"
#include "esp_wifi_netdev.h"
#define ENABLE_DEBUG_HEXDUMP (0)
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "log.h"
#define ESP_WIFI_DEBUG(f, ...) \
@ -93,6 +90,10 @@
#endif /* MCU_ESP8266 */
#define ENABLE_DEBUG_HEXDUMP 0
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* There is only one ESP WiFi device. We define it as static device variable
* to have access to the device inside ESP WiFi interrupt routines which do

View File

@ -18,9 +18,6 @@
* @}
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdint.h>
#include <stdio.h>
@ -32,6 +29,9 @@
#include "esp/xtensa_ops.h"
#include "xtensa/xtensa_context.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* @brief Set on entry into and reset on exit from an ISR
*/

View File

@ -22,8 +22,6 @@
#include <assert.h>
#include <string.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include "log.h"
@ -34,6 +32,9 @@
#include "esp_attr.h"
#include "gpio_arch.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MCU_ESP32
#include "driver/periph_ctrl.h"

View File

@ -21,9 +21,6 @@
#include <assert.h>
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "esp_common.h"
#include "cpu.h"
#include "irq_arch.h"
@ -40,6 +37,9 @@
#include "rom/ets_sys.h"
#include "xtensa/xtensa_api.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#ifdef MCU_ESP32
#include "gpio_arch.h"

View File

@ -45,9 +45,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define ENABLE_DEBUG (0)
#include "debug.h"
#include <stdio.h>
#include <string.h>
@ -75,6 +72,9 @@
#include "sdk/sdk.h"
#endif /* MCU_ESP32 */
#define ENABLE_DEBUG 0
#include "debug.h"
/* User exception dispatcher when exiting */
extern void _xt_user_exit(void);

View File

@ -21,11 +21,11 @@
#include "cpu.h"
#include "assert.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "periph/flashpage.h"
#define ENABLE_DEBUG 0
#include "debug.h"
/**
* @brief Flash controller commands
*/

View File

@ -26,11 +26,11 @@
#include "stmclk.h"
#include "assert.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
#include "periph/flashpage.h"
#define ENABLE_DEBUG 0
#include "debug.h"
#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
/* Program memory unlock keys */
#define FLASH_PRGKEY1 ((uint32_t)0x8C9DAEBF)