cpu/*: reorder ENABLE_DEBUG after last include
This commit is contained in:
parent
ff53307599
commit
bd34cf8fc0
@ -18,9 +18,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG 0
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "irq_arch.h"
|
#include "irq_arch.h"
|
||||||
|
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
@ -28,6 +25,9 @@
|
|||||||
#include "soc/dport_reg.h"
|
#include "soc/dport_reg.h"
|
||||||
#include "xtensa/xtensa_api.h"
|
#include "xtensa/xtensa_api.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
struct _irq_alloc_table_t {
|
struct _irq_alloc_table_t {
|
||||||
int src; /* peripheral interrupt source */
|
int src; /* peripheral interrupt source */
|
||||||
uint32_t intr; /* interrupt number */
|
uint32_t intr; /* interrupt number */
|
||||||
|
|||||||
@ -18,8 +18,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -68,6 +66,9 @@
|
|||||||
#include "stdio_uart.h"
|
#include "stdio_uart.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#define MHZ 1000000UL
|
#define MHZ 1000000UL
|
||||||
#define STRINGIFY(s) STRINGIFY2(s)
|
#define STRINGIFY(s) STRINGIFY2(s)
|
||||||
#define STRINGIFY2(s) #s
|
#define STRINGIFY2(s) #s
|
||||||
|
|||||||
@ -19,9 +19,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG 0
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
#include "periph/adc.h"
|
#include "periph/adc.h"
|
||||||
@ -31,6 +28,9 @@
|
|||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
#include "sdk/sdk.h"
|
#include "sdk/sdk.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
extern uint16_t test_tout(void);
|
extern uint16_t test_tout(void);
|
||||||
|
|
||||||
int adc_init(adc_t line)
|
int adc_init(adc_t line)
|
||||||
|
|||||||
@ -18,9 +18,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
@ -40,6 +37,9 @@
|
|||||||
#include "irq_arch.h"
|
#include "irq_arch.h"
|
||||||
#include "syscalls.h"
|
#include "syscalls.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IOMUX to GPIO mapping
|
* IOMUX to GPIO mapping
|
||||||
* source https://www.espressif.com/sites/default/files/documentation/0d-esp8266_pin_list_release_15-11-2014.xlsx
|
* source https://www.espressif.com/sites/default/files/documentation/0d-esp8266_pin_list_release_15-11-2014.xlsx
|
||||||
|
|||||||
@ -20,9 +20,6 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "irq_arch.h"
|
#include "irq_arch.h"
|
||||||
@ -36,6 +33,9 @@
|
|||||||
#include "sdk/sdk.h"
|
#include "sdk/sdk.h"
|
||||||
#include "xtensa/xtensa_api.h"
|
#include "xtensa/xtensa_api.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#define TIMER_FRC1_CLKDIV_16 BIT(2)
|
#define TIMER_FRC1_CLKDIV_16 BIT(2)
|
||||||
#define TIMER_FRC1_CLKDIV_256 BIT(3)
|
#define TIMER_FRC1_CLKDIV_256 BIT(3)
|
||||||
|
|
||||||
|
|||||||
@ -16,8 +16,6 @@
|
|||||||
* @author Gunar Schorcht <gunar@schorcht.net>
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
#define ENABLE_DEBUG 0
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -46,6 +44,9 @@
|
|||||||
#include "gdbstub.h"
|
#include "gdbstub.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
/* external esp function declarations */
|
/* external esp function declarations */
|
||||||
extern uint32_t hwrand (void);
|
extern uint32_t hwrand (void);
|
||||||
|
|
||||||
|
|||||||
@ -46,9 +46,6 @@
|
|||||||
#include "esp_wifi_params.h"
|
#include "esp_wifi_params.h"
|
||||||
#include "esp_wifi_netdev.h"
|
#include "esp_wifi_netdev.h"
|
||||||
|
|
||||||
#define ENABLE_DEBUG_HEXDUMP (0)
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#define ESP_WIFI_DEBUG(f, ...) \
|
#define ESP_WIFI_DEBUG(f, ...) \
|
||||||
@ -93,6 +90,10 @@
|
|||||||
|
|
||||||
#endif /* MCU_ESP8266 */
|
#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
|
* 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
|
* to have access to the device inside ESP WiFi interrupt routines which do
|
||||||
|
|||||||
@ -18,9 +18,6 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@ -32,6 +29,9 @@
|
|||||||
#include "esp/xtensa_ops.h"
|
#include "esp/xtensa_ops.h"
|
||||||
#include "xtensa/xtensa_context.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
|
* @brief Set on entry into and reset on exit from an ISR
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -22,8 +22,6 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
@ -34,6 +32,9 @@
|
|||||||
#include "esp_attr.h"
|
#include "esp_attr.h"
|
||||||
#include "gpio_arch.h"
|
#include "gpio_arch.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#ifdef MCU_ESP32
|
#ifdef MCU_ESP32
|
||||||
|
|
||||||
#include "driver/periph_ctrl.h"
|
#include "driver/periph_ctrl.h"
|
||||||
|
|||||||
@ -21,9 +21,6 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "irq_arch.h"
|
#include "irq_arch.h"
|
||||||
@ -40,6 +37,9 @@
|
|||||||
#include "rom/ets_sys.h"
|
#include "rom/ets_sys.h"
|
||||||
#include "xtensa/xtensa_api.h"
|
#include "xtensa/xtensa_api.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#ifdef MCU_ESP32
|
#ifdef MCU_ESP32
|
||||||
|
|
||||||
#include "gpio_arch.h"
|
#include "gpio_arch.h"
|
||||||
|
|||||||
@ -45,9 +45,6 @@
|
|||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -75,6 +72,9 @@
|
|||||||
#include "sdk/sdk.h"
|
#include "sdk/sdk.h"
|
||||||
#endif /* MCU_ESP32 */
|
#endif /* MCU_ESP32 */
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
/* User exception dispatcher when exiting */
|
/* User exception dispatcher when exiting */
|
||||||
extern void _xt_user_exit(void);
|
extern void _xt_user_exit(void);
|
||||||
|
|
||||||
|
|||||||
@ -21,11 +21,11 @@
|
|||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "periph/flashpage.h"
|
#include "periph/flashpage.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Flash controller commands
|
* @brief Flash controller commands
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -26,11 +26,11 @@
|
|||||||
#include "stmclk.h"
|
#include "stmclk.h"
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
||||||
#define ENABLE_DEBUG (0)
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include "periph/flashpage.h"
|
#include "periph/flashpage.h"
|
||||||
|
|
||||||
|
#define ENABLE_DEBUG 0
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
|
#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
|
||||||
/* Program memory unlock keys */
|
/* Program memory unlock keys */
|
||||||
#define FLASH_PRGKEY1 ((uint32_t)0x8C9DAEBF)
|
#define FLASH_PRGKEY1 ((uint32_t)0x8C9DAEBF)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user