From 22243aec7a7afbfe342c6182e5159a2dc5ea9d61 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Thu, 22 Oct 2020 11:34:00 +0200 Subject: [PATCH] cpu/*: realign ENABLE_DEBUG --- cpu/atmega_common/cpu.c | 2 +- cpu/atmega_common/periph/eeprom.c | 2 +- cpu/atmega_common/periph/gpio.c | 2 +- cpu/atmega_common/periph/i2c.c | 2 +- cpu/atmega_common/periph/rtt.c | 2 +- cpu/atmega_common/periph/timer.c | 2 +- cpu/atmega_common/periph/wdt.c | 2 +- cpu/cc2538/periph/adc.c | 2 +- cpu/cc2538/periph/gpio.c | 2 +- cpu/cc2538/periph/hwrng.c | 2 +- cpu/cc2538/periph/i2c.c | 2 +- cpu/cc2538/periph/pm.c | 2 +- cpu/cc2538/periph/rtt.c | 2 +- cpu/cc2538/periph/spi.c | 2 +- cpu/cc2538/periph/timer.c | 2 +- cpu/cc2538/radio/cc2538_rf.c | 2 +- cpu/cc2538/radio/cc2538_rf_getset.c | 2 +- cpu/cc2538/radio/cc2538_rf_internal.c | 2 +- cpu/cc2538/radio/cc2538_rf_netdev.c | 2 +- cpu/cc26xx_cc13xx/periph/timer.c | 2 +- cpu/cortexm_common/thread_arch.c | 2 +- cpu/efm32/periph/wdt_series0.c | 2 +- cpu/efm32/periph/wdt_series1.c | 2 +- cpu/esp32/esp-eth/esp_eth_netdev.c | 2 +- cpu/esp32/periph/adc.c | 2 +- cpu/esp32/periph/adc_ctrl.c | 2 +- cpu/esp32/periph/can.c | 2 +- cpu/esp32/periph/dac.c | 2 +- cpu/esp32/periph/gpio.c | 2 +- cpu/esp32/periph/i2c_hw.c | 2 +- cpu/esp32/periph/pm.c | 2 +- cpu/esp32/periph/rtt.c | 2 +- cpu/esp32/periph/rtt_hw_rtc.c | 2 +- cpu/esp32/periph/rtt_hw_sys.c | 2 +- cpu/esp32/periph/timer.c | 2 +- cpu/esp32/syscalls.c | 2 +- cpu/esp32/vendor/esp-idf/ethernet/emac_dev.c | 2 +- cpu/esp32/vendor/esp-idf/ethernet/emac_main.c | 2 +- .../vendor/esp-idf/ethernet/eth_phy/phy_common.c | 2 +- .../vendor/esp-idf/ethernet/eth_phy/phy_lan8720.c | 2 +- .../vendor/esp-idf/ethernet/eth_phy/phy_tlk110.c | 2 +- cpu/esp8266/freertos/portable.c | 2 +- cpu/esp8266/periph/pm.c | 2 +- cpu/esp8266/periph/rtt.c | 2 +- cpu/esp8266/syscalls.c | 2 +- cpu/esp8266/vendor/esp-idf/esp_funcs.c | 2 +- cpu/esp8266/vendor/esp-idf/heap/src/esp_heap_caps.c | 2 +- cpu/esp_common/esp-now/esp_now_gnrc.c | 2 +- cpu/esp_common/esp-now/esp_now_netdev.c | 2 +- cpu/esp_common/exceptions.c | 2 +- cpu/esp_common/freertos/event_groups.c | 2 +- cpu/esp_common/freertos/portable.c | 2 +- cpu/esp_common/freertos/queue.c | 2 +- cpu/esp_common/freertos/semphr.c | 2 +- cpu/esp_common/freertos/task.c | 2 +- cpu/esp_common/freertos/timers.c | 2 +- cpu/esp_common/periph/flash.c | 2 +- cpu/esp_common/periph/i2c_sw.c | 2 +- cpu/esp_common/syscalls.c | 2 +- cpu/ezr32wg/periph/gpio.c | 2 +- cpu/ezr32wg/periph/timer.c | 2 +- cpu/fe310/periph/i2c.c | 2 +- cpu/fe310/periph/rtc.c | 2 +- cpu/fe310/periph/rtt.c | 2 +- cpu/fe310/periph/spi.c | 12 ++++++------ cpu/fe310/periph/wdt.c | 2 +- cpu/kinetis/periph/i2c.c | 6 +++--- cpu/kinetis/periph/pm.c | 2 +- cpu/kinetis/periph/rtc.c | 2 +- cpu/kinetis/periph/rtt.c | 2 +- cpu/kinetis/periph/spi.c | 2 +- cpu/kinetis/periph/timer.c | 2 +- cpu/kinetis/periph/uart.c | 2 +- cpu/lm4f120/periph/gpio.c | 2 +- cpu/lm4f120/periph/spi.c | 2 +- cpu/lm4f120/periph/timer.c | 2 +- cpu/lpc23xx/lpc23xx-iap.c | 2 +- cpu/lpc23xx/mci/lpc23xx-mci.c | 2 +- cpu/lpc23xx/periph/gpio.c | 2 +- cpu/lpc23xx/periph/i2c.c | 2 +- cpu/lpc23xx/periph/pm.c | 2 +- cpu/lpc23xx/periph/rtc.c | 2 +- cpu/lpc23xx/periph/spi.c | 2 +- cpu/native/irq_cpu.c | 2 +- cpu/native/mtd/mtd_native.c | 2 +- cpu/native/native_cpu.c | 2 +- cpu/native/netdev_tap/netdev_tap.c | 2 +- cpu/native/periph/can.c | 2 +- cpu/native/periph/eeprom.c | 2 +- cpu/native/periph/hwrng.c | 2 +- cpu/native/periph/pm.c | 2 +- cpu/native/periph/pwm.c | 2 +- cpu/native/periph/qdec.c | 2 +- cpu/native/periph/rtc.c | 2 +- cpu/native/periph/spidev_linux.c | 2 +- cpu/native/periph/timer.c | 2 +- cpu/native/periph/uart.c | 2 +- cpu/native/socket_zep/socket_zep.c | 2 +- cpu/native/startup.c | 2 +- cpu/native/syscalls.c | 2 +- cpu/nrf51/periph/i2c.c | 2 +- cpu/nrf51/periph/pwm.c | 2 +- cpu/nrf52/periph/i2c.c | 2 +- cpu/nrf52/periph/pwm.c | 2 +- cpu/nrf52/periph/usbdev.c | 2 +- cpu/nrf52/radio/nrf802154/nrf802154.c | 2 +- cpu/nrf52/radio/nrf802154/nrf802154_radio.c | 2 +- cpu/nrf5x_common/periph/wdt.c | 2 +- cpu/nrf5x_common/radio/nrfble/nrfble.c | 2 +- cpu/nrf5x_common/radio/nrfmin/nrfmin.c | 2 +- cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c | 2 +- cpu/sam0_common/periph/adc.c | 2 +- cpu/sam0_common/periph/dma.c | 2 +- cpu/sam0_common/periph/flashpage.c | 2 +- cpu/sam0_common/periph/gpio.c | 2 +- cpu/sam0_common/periph/i2c.c | 2 +- cpu/sam0_common/periph/spi.c | 2 +- cpu/sam0_common/periph/timer.c | 2 +- cpu/sam0_common/periph/uart.c | 2 +- cpu/sam0_common/periph/usbdev.c | 2 +- cpu/sam3/periph/gpio.c | 2 +- cpu/sam3/periph/pwm.c | 4 ++-- cpu/sam3/periph/rtt.c | 2 +- cpu/sam3/periph/spi.c | 2 +- cpu/sam3/periph/uart.c | 2 +- cpu/samd21/periph/pm.c | 2 +- cpu/samd5x/periph/pm.c | 2 +- cpu/saml1x/periph/pm.c | 2 +- cpu/saml21/periph/pm.c | 2 +- cpu/stm32/cpu_common.c | 2 +- cpu/stm32/dist/clk_conf/clk_conf.c | 2 +- cpu/stm32/periph/can.c | 2 +- cpu/stm32/periph/eeprom.c | 2 +- cpu/stm32/periph/eth.c | 2 +- cpu/stm32/periph/flash_common.c | 2 +- cpu/stm32/periph/gpio_f1.c | 2 +- cpu/stm32/periph/i2c_1.c | 2 +- cpu/stm32/periph/i2c_2.c | 2 +- cpu/stm32/periph/pm.c | 2 +- cpu/stm32/periph/rtc_f1.c | 6 +++--- cpu/stm32/periph/rtt_f1.c | 2 +- cpu/stm32/periph/spi.c | 2 +- cpu/stm32/periph/usbdev.c | 2 +- cpu/stm32/periph/wdt.c | 2 +- 144 files changed, 154 insertions(+), 154 deletions(-) diff --git a/cpu/atmega_common/cpu.c b/cpu/atmega_common/cpu.c index 11fdeba5b2..d629ea56e8 100644 --- a/cpu/atmega_common/cpu.c +++ b/cpu/atmega_common/cpu.c @@ -33,7 +33,7 @@ #include "periph/init.h" #include "panic.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifndef MCUSR diff --git a/cpu/atmega_common/periph/eeprom.c b/cpu/atmega_common/periph/eeprom.c index 90d003305d..647acd27d8 100644 --- a/cpu/atmega_common/periph/eeprom.c +++ b/cpu/atmega_common/periph/eeprom.c @@ -24,7 +24,7 @@ #include "cpu.h" #include "periph/eeprom.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" size_t eeprom_read(uint32_t pos, void *data, size_t len) diff --git a/cpu/atmega_common/periph/gpio.c b/cpu/atmega_common/periph/gpio.c index ba7b462004..5c80b42223 100644 --- a/cpu/atmega_common/periph/gpio.c +++ b/cpu/atmega_common/periph/gpio.c @@ -37,7 +37,7 @@ #include "periph_cpu.h" #include "atmega_gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef MODULE_PERIPH_GPIO_IRQ diff --git a/cpu/atmega_common/periph/i2c.c b/cpu/atmega_common/periph/i2c.c index b4ca149990..da95d56ad8 100644 --- a/cpu/atmega_common/periph/i2c.c +++ b/cpu/atmega_common/periph/i2c.c @@ -30,7 +30,7 @@ #include "periph/i2c.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define MT_START 0x08 diff --git a/cpu/atmega_common/periph/rtt.c b/cpu/atmega_common/periph/rtt.c index ffce508d40..d24cac45ec 100644 --- a/cpu/atmega_common/periph/rtt.c +++ b/cpu/atmega_common/periph/rtt.c @@ -51,7 +51,7 @@ #include "periph/rtt.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if RTT_BACKEND_SC diff --git a/cpu/atmega_common/periph/timer.c b/cpu/atmega_common/periph/timer.c index 1fab2f62ee..c920b9e6d1 100644 --- a/cpu/atmega_common/periph/timer.c +++ b/cpu/atmega_common/periph/timer.c @@ -31,7 +31,7 @@ #include "periph/timer.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/atmega_common/periph/wdt.c b/cpu/atmega_common/periph/wdt.c index 5c9925dab9..27411c9fd0 100644 --- a/cpu/atmega_common/periph/wdt.c +++ b/cpu/atmega_common/periph/wdt.c @@ -28,7 +28,7 @@ #include #include "avr/wdt.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" uint8_t wdt_prescaler = WDTO_15MS; diff --git a/cpu/cc2538/periph/adc.c b/cpu/cc2538/periph/adc.c index 07ab6fc3ad..166120a6b6 100644 --- a/cpu/cc2538/periph/adc.c +++ b/cpu/cc2538/periph/adc.c @@ -29,7 +29,7 @@ #include "periph_cpu.h" #include "periph/adc.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static cc2538_soc_adc_t *soc_adc = (cc2538_soc_adc_t *)SOC_ADC_BASE; diff --git a/cpu/cc2538/periph/gpio.c b/cpu/cc2538/periph/gpio.c index ebabb742cf..b7849c0609 100644 --- a/cpu/cc2538/periph/gpio.c +++ b/cpu/cc2538/periph/gpio.c @@ -28,7 +28,7 @@ #include "bitarithm.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define MODE_NOTSUP (0xff) diff --git a/cpu/cc2538/periph/hwrng.c b/cpu/cc2538/periph/hwrng.c index 008bce9d01..7ac26d0c36 100644 --- a/cpu/cc2538/periph/hwrng.c +++ b/cpu/cc2538/periph/hwrng.c @@ -27,7 +27,7 @@ #include "cpu.h" #include "periph/hwrng.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static cc2538_soc_adc_t *soc_adc = (cc2538_soc_adc_t *)SOC_ADC_BASE; diff --git a/cpu/cc2538/periph/i2c.c b/cpu/cc2538/periph/i2c.c index fb97aa2130..40dbccbdfc 100644 --- a/cpu/cc2538/periph/i2c.c +++ b/cpu/cc2538/periph/i2c.c @@ -31,7 +31,7 @@ #include "periph/gpio.h" #include "periph/i2c.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* short cuts macros */ diff --git a/cpu/cc2538/periph/pm.c b/cpu/cc2538/periph/pm.c index af11f27b59..d43ee816ec 100644 --- a/cpu/cc2538/periph/pm.c +++ b/cpu/cc2538/periph/pm.c @@ -22,7 +22,7 @@ #include "vendor/hw_nvic.h" #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set(unsigned mode) diff --git a/cpu/cc2538/periph/rtt.c b/cpu/cc2538/periph/rtt.c index 6177b6dc18..a400d7a712 100644 --- a/cpu/cc2538/periph/rtt.c +++ b/cpu/cc2538/periph/rtt.c @@ -25,7 +25,7 @@ #include "cpu.h" #include "periph/rtt.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define SMWDTHROSC_STLOAD_STLOAD_MASK (0x00000001) diff --git a/cpu/cc2538/periph/spi.c b/cpu/cc2538/periph/spi.c index 735fa861c3..ae258a9353 100644 --- a/cpu/cc2538/periph/spi.c +++ b/cpu/cc2538/periph/spi.c @@ -29,7 +29,7 @@ #include "assert.h" #include "periph/spi.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index 0eb3f5739f..bfce942ae0 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -30,7 +30,7 @@ #include "periph/timer.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define LOAD_VALUE_16_BIT (UINT16_MAX) diff --git a/cpu/cc2538/radio/cc2538_rf.c b/cpu/cc2538/radio/cc2538_rf.c index 441a4d6088..899f092f7c 100644 --- a/cpu/cc2538/radio/cc2538_rf.c +++ b/cpu/cc2538/radio/cc2538_rf.c @@ -25,7 +25,7 @@ #include "cc2538_rf.h" #include "cc2538_rf_netdev.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/cc2538/radio/cc2538_rf_getset.c b/cpu/cc2538/radio/cc2538_rf_getset.c index 453f0fc285..16aff22a7b 100644 --- a/cpu/cc2538/radio/cc2538_rf_getset.c +++ b/cpu/cc2538/radio/cc2538_rf_getset.c @@ -23,7 +23,7 @@ #include "cc2538_rf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* static const __flash uint8_t? */ diff --git a/cpu/cc2538/radio/cc2538_rf_internal.c b/cpu/cc2538/radio/cc2538_rf_internal.c index fb2a576a6d..798b40b677 100644 --- a/cpu/cc2538/radio/cc2538_rf_internal.c +++ b/cpu/cc2538/radio/cc2538_rf_internal.c @@ -25,7 +25,7 @@ #include "cc2538_rf_netdev.h" #include "cc2538_rf_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void isr_rfcoreerr(void) diff --git a/cpu/cc2538/radio/cc2538_rf_netdev.c b/cpu/cc2538/radio/cc2538_rf_netdev.c index 4a38caf6a3..91da296aff 100644 --- a/cpu/cc2538/radio/cc2538_rf_netdev.c +++ b/cpu/cc2538/radio/cc2538_rf_netdev.c @@ -28,7 +28,7 @@ #include "cc2538_rf_netdev.h" #include "cc2538_rf_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* Reference pointer for the IRQ handler */ diff --git a/cpu/cc26xx_cc13xx/periph/timer.c b/cpu/cc26xx_cc13xx/periph/timer.c index 8cd9db7411..97faab77f6 100644 --- a/cpu/cc26xx_cc13xx/periph/timer.c +++ b/cpu/cc26xx_cc13xx/periph/timer.c @@ -31,7 +31,7 @@ #include "cc26xx_cc13xx_power.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define LOAD_VALUE (0xffff) diff --git a/cpu/cortexm_common/thread_arch.c b/cpu/cortexm_common/thread_arch.c index 5401233ba7..45542d5bac 100644 --- a/cpu/cortexm_common/thread_arch.c +++ b/cpu/cortexm_common/thread_arch.c @@ -100,7 +100,7 @@ #include "irq.h" #include "cpu.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" extern uint32_t _estack; diff --git a/cpu/efm32/periph/wdt_series0.c b/cpu/efm32/periph/wdt_series0.c index 8bbf5d2020..6ed3bd6a09 100644 --- a/cpu/efm32/periph/wdt_series0.c +++ b/cpu/efm32/periph/wdt_series0.c @@ -31,7 +31,7 @@ #include "timex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static WDOG_PeriodSel_TypeDef _get_prescaler(uint32_t max_time) diff --git a/cpu/efm32/periph/wdt_series1.c b/cpu/efm32/periph/wdt_series1.c index 81d6ccc56f..da53878e25 100644 --- a/cpu/efm32/periph/wdt_series1.c +++ b/cpu/efm32/periph/wdt_series1.c @@ -33,7 +33,7 @@ #include "timex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef MODULE_PERIPH_WDT_CB diff --git a/cpu/esp32/esp-eth/esp_eth_netdev.c b/cpu/esp32/esp-eth/esp_eth_netdev.c index feab247592..679af9a44c 100644 --- a/cpu/esp32/esp-eth/esp_eth_netdev.c +++ b/cpu/esp32/esp-eth/esp_eth_netdev.c @@ -18,7 +18,7 @@ #ifdef MODULE_ESP_ETH -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "log.h" #include "tools.h" diff --git a/cpu/esp32/periph/adc.c b/cpu/esp32/periph/adc.c index b38476df63..9dfd8d71b3 100644 --- a/cpu/esp32/periph/adc.c +++ b/cpu/esp32/periph/adc.c @@ -31,7 +31,7 @@ #include "soc/sens_reg.h" #include "soc/sens_struct.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* declaration of external functions */ diff --git a/cpu/esp32/periph/adc_ctrl.c b/cpu/esp32/periph/adc_ctrl.c index 9c5422e4f0..2c76551578 100644 --- a/cpu/esp32/periph/adc_ctrl.c +++ b/cpu/esp32/periph/adc_ctrl.c @@ -27,7 +27,7 @@ #include "soc/sens_reg.h" #include "soc/sens_struct.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/esp32/periph/can.c b/cpu/esp32/periph/can.c index e3701589f5..3fa55a034f 100644 --- a/cpu/esp32/periph/can.c +++ b/cpu/esp32/periph/can.c @@ -41,7 +41,7 @@ #include "xtensa/xtensa_api.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** Common ESP CAN definitions */ diff --git a/cpu/esp32/periph/dac.c b/cpu/esp32/periph/dac.c index de951d6837..d17fff3a22 100644 --- a/cpu/esp32/periph/dac.c +++ b/cpu/esp32/periph/dac.c @@ -31,7 +31,7 @@ #include "soc/sens_reg.h" #include "soc/sens_struct.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* declaration of external functions */ diff --git a/cpu/esp32/periph/gpio.c b/cpu/esp32/periph/gpio.c index d8941e055f..d98908bbdb 100644 --- a/cpu/esp32/periph/gpio.c +++ b/cpu/esp32/periph/gpio.c @@ -18,7 +18,7 @@ * @} */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp32/periph/i2c_hw.c b/cpu/esp32/periph/i2c_hw.c index 74ad6f8fcd..7c443cc61d 100644 --- a/cpu/esp32/periph/i2c_hw.c +++ b/cpu/esp32/periph/i2c_hw.c @@ -36,7 +36,7 @@ * notice. */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp32/periph/pm.c b/cpu/esp32/periph/pm.c index e53f5eaeb3..42f7de43af 100644 --- a/cpu/esp32/periph/pm.c +++ b/cpu/esp32/periph/pm.c @@ -18,7 +18,7 @@ * @} */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "esp_attr.h" diff --git a/cpu/esp32/periph/rtt.c b/cpu/esp32/periph/rtt.c index 9324b60782..abceafcbf7 100644 --- a/cpu/esp32/periph/rtt.c +++ b/cpu/esp32/periph/rtt.c @@ -28,7 +28,7 @@ #include "rtt_arch.h" #include "syscalls.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define RTC_CLK_CAL_FRACT 19 /* fractional bits of calibration value */ diff --git a/cpu/esp32/periph/rtt_hw_rtc.c b/cpu/esp32/periph/rtt_hw_rtc.c index 162bb883e9..b0626bd768 100644 --- a/cpu/esp32/periph/rtt_hw_rtc.c +++ b/cpu/esp32/periph/rtt_hw_rtc.c @@ -33,7 +33,7 @@ #include "syscalls.h" #include "timex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define RTC_CLK_CAL_FRACT 19 /* fractional bits of calibration value */ diff --git a/cpu/esp32/periph/rtt_hw_sys.c b/cpu/esp32/periph/rtt_hw_sys.c index 4a003f8efb..b1eb4dbbe9 100644 --- a/cpu/esp32/periph/rtt_hw_sys.c +++ b/cpu/esp32/periph/rtt_hw_sys.c @@ -31,7 +31,7 @@ #include "syscalls.h" #include "timex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define TIMER_SYSTEM_GROUP TIMERG0 diff --git a/cpu/esp32/periph/timer.c b/cpu/esp32/periph/timer.c index 756150e081..fd4e6a5b07 100644 --- a/cpu/esp32/periph/timer.c +++ b/cpu/esp32/periph/timer.c @@ -22,7 +22,7 @@ * WARNING! enable debugging will have timing side effects and can lead * to timer underflows, system crashes or system dead locks in worst case. */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "periph/timer.h" diff --git a/cpu/esp32/syscalls.c b/cpu/esp32/syscalls.c index d868fd480b..6b8498972e 100644 --- a/cpu/esp32/syscalls.c +++ b/cpu/esp32/syscalls.c @@ -40,7 +40,7 @@ #include "esp_heap_caps.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define MHZ 1000000UL diff --git a/cpu/esp32/vendor/esp-idf/ethernet/emac_dev.c b/cpu/esp32/vendor/esp-idf/ethernet/emac_dev.c index 894da7f244..9189703b3a 100644 --- a/cpu/esp32/vendor/esp-idf/ethernet/emac_dev.c +++ b/cpu/esp32/vendor/esp-idf/ethernet/emac_dev.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp32/vendor/esp-idf/ethernet/emac_main.c b/cpu/esp32/vendor/esp-idf/ethernet/emac_main.c index c83400f046..41fd1ab68f 100644 --- a/cpu/esp32/vendor/esp-idf/ethernet/emac_main.c +++ b/cpu/esp32/vendor/esp-idf/ethernet/emac_main.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_common.c b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_common.c index f4567229f6..253fa6b51b 100644 --- a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_common.c +++ b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_common.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "eth_phy/phy.h" diff --git a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_lan8720.c b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_lan8720.c index f38a6f3e81..36f9370a16 100644 --- a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_lan8720.c +++ b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_lan8720.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "esp_attr.h" diff --git a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_tlk110.c b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_tlk110.c index 665dd8903a..d9156aad47 100644 --- a/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_tlk110.c +++ b/cpu/esp32/vendor/esp-idf/ethernet/eth_phy/phy_tlk110.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "esp_attr.h" diff --git a/cpu/esp8266/freertos/portable.c b/cpu/esp8266/freertos/portable.c index 2dba1a85ed..3e33f6791b 100644 --- a/cpu/esp8266/freertos/portable.c +++ b/cpu/esp8266/freertos/portable.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "esp_attr.h" diff --git a/cpu/esp8266/periph/pm.c b/cpu/esp8266/periph/pm.c index 4cae9b354d..1885d21c5e 100644 --- a/cpu/esp8266/periph/pm.c +++ b/cpu/esp8266/periph/pm.c @@ -18,7 +18,7 @@ * @} */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "sdk/sdk.h" diff --git a/cpu/esp8266/periph/rtt.c b/cpu/esp8266/periph/rtt.c index 932fe1ee34..017d9d265a 100644 --- a/cpu/esp8266/periph/rtt.c +++ b/cpu/esp8266/periph/rtt.c @@ -19,7 +19,7 @@ * @} */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include "cpu.h" diff --git a/cpu/esp8266/syscalls.c b/cpu/esp8266/syscalls.c index 40e3032c47..42ee1570b5 100644 --- a/cpu/esp8266/syscalls.c +++ b/cpu/esp8266/syscalls.c @@ -26,7 +26,7 @@ #include "esp_heap_caps.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef MODULE_ESP_IDF_HEAP diff --git a/cpu/esp8266/vendor/esp-idf/esp_funcs.c b/cpu/esp8266/vendor/esp-idf/esp_funcs.c index a75a7a2097..4d282cc1ae 100644 --- a/cpu/esp8266/vendor/esp-idf/esp_funcs.c +++ b/cpu/esp8266/vendor/esp-idf/esp_funcs.c @@ -18,7 +18,7 @@ * @author Gunar Schorcht */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp8266/vendor/esp-idf/heap/src/esp_heap_caps.c b/cpu/esp8266/vendor/esp-idf/heap/src/esp_heap_caps.c index f039baace3..0ef0c11160 100644 --- a/cpu/esp8266/vendor/esp-idf/heap/src/esp_heap_caps.c +++ b/cpu/esp8266/vendor/esp-idf/heap/src/esp_heap_caps.c @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include #include diff --git a/cpu/esp_common/esp-now/esp_now_gnrc.c b/cpu/esp_common/esp-now/esp_now_gnrc.c index b18bdb85e2..94f8d9955a 100644 --- a/cpu/esp_common/esp-now/esp_now_gnrc.c +++ b/cpu/esp_common/esp-now/esp_now_gnrc.c @@ -30,7 +30,7 @@ #include "esp_now_gnrc.h" #include "net/gnrc/netif.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) diff --git a/cpu/esp_common/esp-now/esp_now_netdev.c b/cpu/esp_common/esp-now/esp_now_netdev.c index 33ac17850d..c116a32641 100644 --- a/cpu/esp_common/esp-now/esp_now_netdev.c +++ b/cpu/esp_common/esp-now/esp_now_netdev.c @@ -40,7 +40,7 @@ #include "esp_now_params.h" #include "esp_now_netdev.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define ESP_NOW_UNICAST (1) diff --git a/cpu/esp_common/exceptions.c b/cpu/esp_common/exceptions.c index befe2677da..8287714b5d 100644 --- a/cpu/esp_common/exceptions.c +++ b/cpu/esp_common/exceptions.c @@ -31,7 +31,7 @@ #include "xtensa/corebits.h" #include "xtensa/xtensa_api.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" extern void heap_stats(void); diff --git a/cpu/esp_common/freertos/event_groups.c b/cpu/esp_common/freertos/event_groups.c index 34ba654ad0..789757624e 100644 --- a/cpu/esp_common/freertos/event_groups.c +++ b/cpu/esp_common/freertos/event_groups.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/freertos/portable.c b/cpu/esp_common/freertos/portable.c index edf4fe4c68..3c10739a9d 100644 --- a/cpu/esp_common/freertos/portable.c +++ b/cpu/esp_common/freertos/portable.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/freertos/queue.c b/cpu/esp_common/freertos/queue.c index 725c18a9ce..bebb940e28 100644 --- a/cpu/esp_common/freertos/queue.c +++ b/cpu/esp_common/freertos/queue.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/freertos/semphr.c b/cpu/esp_common/freertos/semphr.c index ad27be6388..5beb02410f 100644 --- a/cpu/esp_common/freertos/semphr.c +++ b/cpu/esp_common/freertos/semphr.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/freertos/task.c b/cpu/esp_common/freertos/task.c index 5ac936cd7b..85fe49d3b7 100644 --- a/cpu/esp_common/freertos/task.c +++ b/cpu/esp_common/freertos/task.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/freertos/timers.c b/cpu/esp_common/freertos/timers.c index d49b65df90..a5e402a8aa 100644 --- a/cpu/esp_common/freertos/timers.c +++ b/cpu/esp_common/freertos/timers.c @@ -10,7 +10,7 @@ #ifndef DOXYGEN -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/periph/flash.c b/cpu/esp_common/periph/flash.c index a34b25a90f..0f5d4aa05a 100644 --- a/cpu/esp_common/periph/flash.c +++ b/cpu/esp_common/periph/flash.c @@ -48,7 +48,7 @@ #endif /* MCU_ESP32 */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define ESP_PART_TABLE_ADDR 0x8000 /* TODO configurable as used in Makefile.include */ diff --git a/cpu/esp_common/periph/i2c_sw.c b/cpu/esp_common/periph/i2c_sw.c index 0c96435a60..197ccdf7fe 100644 --- a/cpu/esp_common/periph/i2c_sw.c +++ b/cpu/esp_common/periph/i2c_sw.c @@ -26,7 +26,7 @@ described in [wikipedia](https://en.wikipedia.org/wiki/I%C2%B2C#Example_of_bit-banging_the_I%C2%B2C_master_protocol). */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #include diff --git a/cpu/esp_common/syscalls.c b/cpu/esp_common/syscalls.c index 64d39cffb7..d09f757bad 100644 --- a/cpu/esp_common/syscalls.c +++ b/cpu/esp_common/syscalls.c @@ -37,7 +37,7 @@ #include "malloc.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifndef MODULE_PTHREAD diff --git a/cpu/ezr32wg/periph/gpio.c b/cpu/ezr32wg/periph/gpio.c index 101666c099..5681c97ff2 100644 --- a/cpu/ezr32wg/periph/gpio.c +++ b/cpu/ezr32wg/periph/gpio.c @@ -23,7 +23,7 @@ #include "periph/gpio.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef MODULE_PERIPH_GPIO_IRQ diff --git a/cpu/ezr32wg/periph/timer.c b/cpu/ezr32wg/periph/timer.c index a5506ac96b..bad670e73f 100644 --- a/cpu/ezr32wg/periph/timer.c +++ b/cpu/ezr32wg/periph/timer.c @@ -23,7 +23,7 @@ #include "periph/timer.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/fe310/periph/i2c.c b/cpu/fe310/periph/i2c.c index afa0abfdf2..fc2e4ed62e 100644 --- a/cpu/fe310/periph/i2c.c +++ b/cpu/fe310/periph/i2c.c @@ -33,7 +33,7 @@ #include "vendor/platform.h" #include "vendor/prci_driver.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define I2C_BUSY_TIMEOUT (0xffff) diff --git a/cpu/fe310/periph/rtc.c b/cpu/fe310/periph/rtc.c index 1d4df955f1..58d395b869 100644 --- a/cpu/fe310/periph/rtc.c +++ b/cpu/fe310/periph/rtc.c @@ -23,7 +23,7 @@ #include "periph/rtt.h" #include "periph/rtc.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" diff --git a/cpu/fe310/periph/rtt.c b/cpu/fe310/periph/rtt.c index e758d3aba5..9da4789cba 100644 --- a/cpu/fe310/periph/rtt.c +++ b/cpu/fe310/periph/rtt.c @@ -34,7 +34,7 @@ #include "vendor/platform.h" #include "vendor/plic_driver.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* Convert RTT freq to pre-scaler value */ diff --git a/cpu/fe310/periph/spi.c b/cpu/fe310/periph/spi.c index e220062680..3f41bc1308 100644 --- a/cpu/fe310/periph/spi.c +++ b/cpu/fe310/periph/spi.c @@ -29,9 +29,14 @@ #include "vendor/spi.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" +#define SPI_CLK_NUMOF ARRAY_SIZE(_spi_clks) + +/* DIV_UP is division which rounds up instead of down */ +#define SPI_DIV_UP(a, b) (((a) + ((b) - 1)) / (b)) + static const uint32_t _spi_clks[] = { 100000, 400000, @@ -40,13 +45,8 @@ static const uint32_t _spi_clks[] = { 10000000, }; -#define SPI_CLK_NUMOF ARRAY_SIZE(_spi_clks) - static uint32_t _spi_clks_config[SPI_CLK_NUMOF] = { 0 }; -/* DIV_UP is division which rounds up instead of down */ -#define SPI_DIV_UP(a,b) (((a) + ((b) - 1)) / (b)) - /** * @brief Allocation device locks */ diff --git a/cpu/fe310/periph/wdt.c b/cpu/fe310/periph/wdt.c index 2c717a2081..ed80ef41cd 100644 --- a/cpu/fe310/periph/wdt.c +++ b/cpu/fe310/periph/wdt.c @@ -29,7 +29,7 @@ #include "vendor/aon.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void wdt_start(void) diff --git a/cpu/kinetis/periph/i2c.c b/cpu/kinetis/periph/i2c.c index e103899e31..73254f8940 100644 --- a/cpu/kinetis/periph/i2c.c +++ b/cpu/kinetis/periph/i2c.c @@ -36,13 +36,13 @@ #include "periph_conf.h" #include "periph/i2c.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 /* Define ENABLE_TRACE to 1 to enable printing of all TX/RX bytes to UART for extra verbose debugging */ -#define ENABLE_TRACE (1) +#define ENABLE_TRACE (1) /* Define ENABLE_INIT_DEBUG to 1 to enable DEBUG prints in i2c_init. Currently * this causes the system to hang when running i2c_init during boot because of * uninitialized stdio UART */ -#define ENABLE_INIT_DEBUG (0) +#define ENABLE_INIT_DEBUG (0) #include "debug.h" #if ENABLE_TRACE diff --git a/cpu/kinetis/periph/pm.c b/cpu/kinetis/periph/pm.c index 3cb1ec0a54..bd7f61f704 100644 --- a/cpu/kinetis/periph/pm.c +++ b/cpu/kinetis/periph/pm.c @@ -23,7 +23,7 @@ #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* Set to 1 to use the LEDx macros to show which sleep mode is entered */ diff --git a/cpu/kinetis/periph/rtc.c b/cpu/kinetis/periph/rtc.c index 6e022b8809..93b2eedc61 100644 --- a/cpu/kinetis/periph/rtc.c +++ b/cpu/kinetis/periph/rtc.c @@ -25,7 +25,7 @@ #include "periph/rtt.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" typedef struct { diff --git a/cpu/kinetis/periph/rtt.c b/cpu/kinetis/periph/rtt.c index ee22cf63f5..c5048d49db 100644 --- a/cpu/kinetis/periph/rtt.c +++ b/cpu/kinetis/periph/rtt.c @@ -33,7 +33,7 @@ #include "periph/rtt.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" typedef struct { diff --git a/cpu/kinetis/periph/spi.c b/cpu/kinetis/periph/spi.c index 15d4ef83e8..6c9e8d1d65 100644 --- a/cpu/kinetis/periph/spi.c +++ b/cpu/kinetis/periph/spi.c @@ -31,7 +31,7 @@ #include "assert.h" #include "periph/spi.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/kinetis/periph/timer.c b/cpu/kinetis/periph/timer.c index 05e7dfa700..b7a9f5ab98 100644 --- a/cpu/kinetis/periph/timer.c +++ b/cpu/kinetis/periph/timer.c @@ -42,7 +42,7 @@ #define KINETIS_PIT_COMBINED_IRQ 0 #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define PIT_MAX_VALUE (PIT_LDVAL_TSV_MASK >> PIT_LDVAL_TSV_SHIFT) diff --git a/cpu/kinetis/periph/uart.c b/cpu/kinetis/periph/uart.c index d9ba1afb4f..b25b40369d 100644 --- a/cpu/kinetis/periph/uart.c +++ b/cpu/kinetis/periph/uart.c @@ -31,7 +31,7 @@ #include "periph_conf.h" #include "periph/uart.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifndef KINETIS_HAVE_LPUART diff --git a/cpu/lm4f120/periph/gpio.c b/cpu/lm4f120/periph/gpio.c index 11d3d94133..a9b12e2abf 100644 --- a/cpu/lm4f120/periph/gpio.c +++ b/cpu/lm4f120/periph/gpio.c @@ -27,7 +27,7 @@ #include "periph/gpio.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define NUM_OF_PORT 6 diff --git a/cpu/lm4f120/periph/spi.c b/cpu/lm4f120/periph/spi.c index 535a901773..d8864e5c8e 100644 --- a/cpu/lm4f120/periph/spi.c +++ b/cpu/lm4f120/periph/spi.c @@ -27,7 +27,7 @@ #include "periph_conf.h" #include "board.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/lm4f120/periph/timer.c b/cpu/lm4f120/periph/timer.c index 30be14a1f1..50725d4d7b 100644 --- a/cpu/lm4f120/periph/timer.c +++ b/cpu/lm4f120/periph/timer.c @@ -26,7 +26,7 @@ #include "periph/timer.h" #include "mutex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/lpc23xx/lpc23xx-iap.c b/cpu/lpc23xx/lpc23xx-iap.c index 7470ad369f..748f36a1ea 100644 --- a/cpu/lpc23xx/lpc23xx-iap.c +++ b/cpu/lpc23xx/lpc23xx-iap.c @@ -26,7 +26,7 @@ #include "iap.h" #include "lpc23xx.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* pointer to reserved flash rom section for configuration data */ diff --git a/cpu/lpc23xx/mci/lpc23xx-mci.c b/cpu/lpc23xx/mci/lpc23xx-mci.c index f7c74ed375..947d802e36 100644 --- a/cpu/lpc23xx/mci/lpc23xx-mci.c +++ b/cpu/lpc23xx/mci/lpc23xx-mci.c @@ -19,7 +19,7 @@ #include "xtimer.h" #include "diskio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* --- MCI configurations --- */ diff --git a/cpu/lpc23xx/periph/gpio.c b/cpu/lpc23xx/periph/gpio.c index 1f84b7408a..dadad5911b 100644 --- a/cpu/lpc23xx/periph/gpio.c +++ b/cpu/lpc23xx/periph/gpio.c @@ -28,7 +28,7 @@ #include "bitarithm.h" #include "bitfield.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef MODULE_PERIPH_GPIO_IRQ diff --git a/cpu/lpc23xx/periph/i2c.c b/cpu/lpc23xx/periph/i2c.c index 46f4988ba8..592b26467a 100644 --- a/cpu/lpc23xx/periph/i2c.c +++ b/cpu/lpc23xx/periph/i2c.c @@ -33,7 +33,7 @@ #include "thread.h" #include "mutex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if I2C_NUMOF > 0 diff --git a/cpu/lpc23xx/periph/pm.c b/cpu/lpc23xx/periph/pm.c index 1ef84ea453..2b2dd81dff 100644 --- a/cpu/lpc23xx/periph/pm.c +++ b/cpu/lpc23xx/periph/pm.c @@ -25,7 +25,7 @@ #include "cpu.h" #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set(unsigned mode) diff --git a/cpu/lpc23xx/periph/rtc.c b/cpu/lpc23xx/periph/rtc.c index 7abf3087d1..7955f1aa9f 100644 --- a/cpu/lpc23xx/periph/rtc.c +++ b/cpu/lpc23xx/periph/rtc.c @@ -31,7 +31,7 @@ #include "VIC.h" #include "lpc23xx.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* Alarm callback */ diff --git a/cpu/lpc23xx/periph/spi.c b/cpu/lpc23xx/periph/spi.c index c1ab4b8fc2..17e226fc5b 100644 --- a/cpu/lpc23xx/periph/spi.c +++ b/cpu/lpc23xx/periph/spi.c @@ -31,7 +31,7 @@ #include "assert.h" #include "periph/spi.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index b9359225b0..cfd40ecafb 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -40,7 +40,7 @@ #include "native_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" volatile int native_interrupts_enabled = 0; diff --git a/cpu/native/mtd/mtd_native.c b/cpu/native/mtd/mtd_native.c index a9a1442dd4..208ab3e5ee 100644 --- a/cpu/native/mtd/mtd_native.c +++ b/cpu/native/mtd/mtd_native.c @@ -24,7 +24,7 @@ #include "native_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static int _init(mtd_dev_t *dev) diff --git a/cpu/native/native_cpu.c b/cpu/native/native_cpu.c index 74d24a42e5..ea8590f263 100644 --- a/cpu/native/native_cpu.c +++ b/cpu/native/native_cpu.c @@ -59,7 +59,7 @@ extern netdev_tap_t netdev_tap; #include "native_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" ucontext_t end_context; diff --git a/cpu/native/netdev_tap/netdev_tap.c b/cpu/native/netdev_tap/netdev_tap.c index 1afdc1e62a..8744f14ed6 100644 --- a/cpu/native/netdev_tap/netdev_tap.c +++ b/cpu/native/netdev_tap/netdev_tap.c @@ -61,7 +61,7 @@ #include "netdev_tap.h" #include "net/netopt.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* netdev interface */ diff --git a/cpu/native/periph/can.c b/cpu/native/periph/can.c index 36ddcdc5c7..5a18f21ab2 100644 --- a/cpu/native/periph/can.c +++ b/cpu/native/periph/can.c @@ -39,7 +39,7 @@ #include "async_read.h" #include "sched.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static int _init(candev_t *candev); diff --git a/cpu/native/periph/eeprom.c b/cpu/native/periph/eeprom.c index 63032d11de..654b47692c 100644 --- a/cpu/native/periph/eeprom.c +++ b/cpu/native/periph/eeprom.c @@ -30,7 +30,7 @@ #include "periph/eeprom.h" #include "eeprom_native.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" char eeprom_file[EEPROM_FILEPATH_MAX_LEN]; diff --git a/cpu/native/periph/hwrng.c b/cpu/native/periph/hwrng.c index 6c0f3c368d..f9971cebbf 100644 --- a/cpu/native/periph/hwrng.c +++ b/cpu/native/periph/hwrng.c @@ -29,7 +29,7 @@ #include "periph/hwrng.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static int initialized = 0; diff --git a/cpu/native/periph/pm.c b/cpu/native/periph/pm.c index ff4bfe32aa..ccb1d8122c 100644 --- a/cpu/native/periph/pm.c +++ b/cpu/native/periph/pm.c @@ -33,7 +33,7 @@ #include "gpiodev_linux.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set_lowest(void) diff --git a/cpu/native/periph/pwm.c b/cpu/native/periph/pwm.c index a57f35754e..f4b0af0c12 100644 --- a/cpu/native/periph/pwm.c +++ b/cpu/native/periph/pwm.c @@ -23,7 +23,7 @@ #include "periph/pwm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef PWM_NUMOF diff --git a/cpu/native/periph/qdec.c b/cpu/native/periph/qdec.c index aa5b7e23f1..6357454d57 100644 --- a/cpu/native/periph/qdec.c +++ b/cpu/native/periph/qdec.c @@ -44,7 +44,7 @@ #include "periph/qdec.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef QDEC_NUMOF diff --git a/cpu/native/periph/rtc.c b/cpu/native/periph/rtc.c index e6539a84f2..ab81dfc6a7 100644 --- a/cpu/native/periph/rtc.c +++ b/cpu/native/periph/rtc.c @@ -33,7 +33,7 @@ #include "native_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static int _native_rtc_initialized = 0; diff --git a/cpu/native/periph/spidev_linux.c b/cpu/native/periph/spidev_linux.c index 59871305dc..a38ee8144b 100644 --- a/cpu/native/periph/spidev_linux.c +++ b/cpu/native/periph/spidev_linux.c @@ -39,7 +39,7 @@ #include "periph/gpio.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/native/periph/timer.c b/cpu/native/periph/timer.c index beedeb00ad..5e54c01ca0 100644 --- a/cpu/native/periph/timer.c +++ b/cpu/native/periph/timer.c @@ -48,7 +48,7 @@ #include "native_internal.h" #include "periph/timer.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define NATIVE_TIMER_SPEED 1000000 diff --git a/cpu/native/periph/uart.c b/cpu/native/periph/uart.c index f1f5fe925c..4db0da2548 100644 --- a/cpu/native/periph/uart.c +++ b/cpu/native/periph/uart.c @@ -31,7 +31,7 @@ #include "native_internal.h" #include "async_read.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/native/socket_zep/socket_zep.c b/cpu/native/socket_zep/socket_zep.c index 2fd10a3e7a..5c159c9ca2 100644 --- a/cpu/native/socket_zep/socket_zep.c +++ b/cpu/native/socket_zep/socket_zep.c @@ -32,7 +32,7 @@ #include "socket_zep.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define _UNIX_NTP_ERA_OFFSET (2208988800U) diff --git a/cpu/native/startup.c b/cpu/native/startup.c index aae5e175cb..862e74e922 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -47,7 +47,7 @@ #include "periph/init.h" #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" typedef enum { diff --git a/cpu/native/syscalls.c b/cpu/native/syscalls.c index 4290419707..4962a6a431 100644 --- a/cpu/native/syscalls.c +++ b/cpu/native/syscalls.c @@ -43,7 +43,7 @@ #include "native_internal.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #if ENABLE_DEBUG #define LOCAL_DEBUG (1) #endif diff --git a/cpu/nrf51/periph/i2c.c b/cpu/nrf51/periph/i2c.c index 68c10b7a46..5f6bcc10fe 100644 --- a/cpu/nrf51/periph/i2c.c +++ b/cpu/nrf51/periph/i2c.c @@ -36,7 +36,7 @@ #include "periph/i2c.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/nrf51/periph/pwm.c b/cpu/nrf51/periph/pwm.c index 90741e8483..05e1028b38 100644 --- a/cpu/nrf51/periph/pwm.c +++ b/cpu/nrf51/periph/pwm.c @@ -26,7 +26,7 @@ #include "periph/gpio.h" #include "periph/pwm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define PWM_PS_MAX (9U) diff --git a/cpu/nrf52/periph/i2c.c b/cpu/nrf52/periph/i2c.c index 5c2162974a..cabdedd797 100644 --- a/cpu/nrf52/periph/i2c.c +++ b/cpu/nrf52/periph/i2c.c @@ -32,7 +32,7 @@ #include "periph/i2c.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/nrf52/periph/pwm.c b/cpu/nrf52/periph/pwm.c index 0cd46701e8..798adb8499 100644 --- a/cpu/nrf52/periph/pwm.c +++ b/cpu/nrf52/periph/pwm.c @@ -21,7 +21,7 @@ #include "periph/pwm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/nrf52/periph/usbdev.c b/cpu/nrf52/periph/usbdev.c index d7798b085b..e63d6b8cdc 100644 --- a/cpu/nrf52/periph/usbdev.c +++ b/cpu/nrf52/periph/usbdev.c @@ -34,7 +34,7 @@ #include "usb/descriptor.h" #include "bitarithm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static nrfusb_t _usbdevs[NRF_USB_NUM_PERIPH]; diff --git a/cpu/nrf52/radio/nrf802154/nrf802154.c b/cpu/nrf52/radio/nrf802154/nrf802154.c index 42455816ba..5c646b0e8c 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154.c @@ -33,7 +33,7 @@ #include "net/netdev/ieee802154.h" #include "nrf802154.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static const netdev_driver_t nrf802154_netdev_driver; diff --git a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c index 98f68ba271..55dd424e77 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154_radio.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154_radio.c @@ -29,7 +29,7 @@ #include "nrf802154.h" #include "net/ieee802154/radio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define ED_RSSISCALE (4U) /**< RSSI scale for internal HW value */ diff --git a/cpu/nrf5x_common/periph/wdt.c b/cpu/nrf5x_common/periph/wdt.c index 834ad95a65..95c3f3cefe 100644 --- a/cpu/nrf5x_common/periph/wdt.c +++ b/cpu/nrf5x_common/periph/wdt.c @@ -27,7 +27,7 @@ #include "nrf_clock.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* By default, allow watchdog during sleep. diff --git a/cpu/nrf5x_common/radio/nrfble/nrfble.c b/cpu/nrf5x_common/radio/nrfble/nrfble.c index dbce932fc6..60624eb6db 100644 --- a/cpu/nrf5x_common/radio/nrfble/nrfble.c +++ b/cpu/nrf5x_common/radio/nrfble/nrfble.c @@ -29,7 +29,7 @@ #include "nrfble.h" #include "net/netdev/ble.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* driver specific device configuration */ diff --git a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c index 9dcb7d9f0c..4787cb6109 100644 --- a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c +++ b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c @@ -35,7 +35,7 @@ #include "net/gnrc/nettype.h" #endif -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c b/cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c index 8390f2f8a4..d96b1faa4e 100644 --- a/cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c +++ b/cpu/nrf5x_common/radio/nrfmin/nrfmin_gnrc.c @@ -26,7 +26,7 @@ #include "nrfmin_gnrc.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam0_common/periph/adc.c b/cpu/sam0_common/periph/adc.c index fb6252dd60..a106502668 100644 --- a/cpu/sam0_common/periph/adc.c +++ b/cpu/sam0_common/periph/adc.c @@ -25,7 +25,7 @@ #include "periph_conf.h" #include "mutex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* The SAMD5x/SAME5x family has two ADCs: ADC0 and ADC1. diff --git a/cpu/sam0_common/periph/dma.c b/cpu/sam0_common/periph/dma.c index b95fda53e9..cc7b4961e3 100644 --- a/cpu/sam0_common/periph/dma.c +++ b/cpu/sam0_common/periph/dma.c @@ -26,7 +26,7 @@ #include "thread_flags.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifndef CONFIG_DMA_NUMOF diff --git a/cpu/sam0_common/periph/flashpage.c b/cpu/sam0_common/periph/flashpage.c index 94665dee57..f3517a6006 100644 --- a/cpu/sam0_common/periph/flashpage.c +++ b/cpu/sam0_common/periph/flashpage.c @@ -31,7 +31,7 @@ #include "cpu.h" #include "periph/flashpage.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define MIN(x, y) (((x) < (y)) ? (x) : (y)) diff --git a/cpu/sam0_common/periph/gpio.c b/cpu/sam0_common/periph/gpio.c index 5492aff4ec..2479fe6d76 100644 --- a/cpu/sam0_common/periph/gpio.c +++ b/cpu/sam0_common/periph/gpio.c @@ -51,7 +51,7 @@ #include "periph/gpio.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam0_common/periph/i2c.c b/cpu/sam0_common/periph/i2c.c index 4753360dde..cd54e7b183 100644 --- a/cpu/sam0_common/periph/i2c.c +++ b/cpu/sam0_common/periph/i2c.c @@ -35,7 +35,7 @@ #include "sched.h" #include "thread.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define SAMD21_I2C_TIMEOUT (65535) diff --git a/cpu/sam0_common/periph/spi.c b/cpu/sam0_common/periph/spi.c index 864d7ae46b..569d30f533 100644 --- a/cpu/sam0_common/periph/spi.c +++ b/cpu/sam0_common/periph/spi.c @@ -31,7 +31,7 @@ #include "periph/spi.h" #include "pm_layered.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam0_common/periph/timer.c b/cpu/sam0_common/periph/timer.c index a156e2ccbd..7616ff9669 100644 --- a/cpu/sam0_common/periph/timer.c +++ b/cpu/sam0_common/periph/timer.c @@ -30,7 +30,7 @@ #include "periph/timer.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam0_common/periph/uart.c b/cpu/sam0_common/periph/uart.c index 2d34be4753..c7a35ab52e 100644 --- a/cpu/sam0_common/periph/uart.c +++ b/cpu/sam0_common/periph/uart.c @@ -29,7 +29,7 @@ #include "periph/uart.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if defined (CPU_COMMON_SAML1X) || defined (CPU_COMMON_SAMD5X) diff --git a/cpu/sam0_common/periph/usbdev.c b/cpu/sam0_common/periph/usbdev.c index 5c1d6c1a71..20de0306ff 100644 --- a/cpu/sam0_common/periph/usbdev.c +++ b/cpu/sam0_common/periph/usbdev.c @@ -36,7 +36,7 @@ * is able to interfere with USB functionality and you might see different * errors than debug disabled */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /* List of instantiated USB peripherals */ diff --git a/cpu/sam3/periph/gpio.c b/cpu/sam3/periph/gpio.c index b1b9093451..ccf2e7ae65 100644 --- a/cpu/sam3/periph/gpio.c +++ b/cpu/sam3/periph/gpio.c @@ -27,7 +27,7 @@ #include "periph_conf.h" #include "periph_cpu.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam3/periph/pwm.c b/cpu/sam3/periph/pwm.c index 09f97cebf1..127c5e11ab 100644 --- a/cpu/sam3/periph/pwm.c +++ b/cpu/sam3/periph/pwm.c @@ -29,10 +29,10 @@ #include "periph/pwm.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" -#define PREA_MAX (10U) +#define PREA_MAX (10U) static uint16_t pwm_period; static uint8_t pwm_chan_mask; diff --git a/cpu/sam3/periph/rtt.c b/cpu/sam3/periph/rtt.c index 13ff520222..2c7d0da245 100644 --- a/cpu/sam3/periph/rtt.c +++ b/cpu/sam3/periph/rtt.c @@ -26,7 +26,7 @@ #include "cpu.h" #include "periph/rtt.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" static struct { diff --git a/cpu/sam3/periph/spi.c b/cpu/sam3/periph/spi.c index c3ef8f5132..b551d9d660 100644 --- a/cpu/sam3/periph/spi.c +++ b/cpu/sam3/periph/spi.c @@ -29,7 +29,7 @@ #include "periph/gpio.h" #include "periph/spi.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/sam3/periph/uart.c b/cpu/sam3/periph/uart.c index 5c6e0d9fd9..206e457a42 100644 --- a/cpu/sam3/periph/uart.c +++ b/cpu/sam3/periph/uart.c @@ -24,7 +24,7 @@ #include "periph/uart.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/samd21/periph/pm.c b/cpu/samd21/periph/pm.c index 687d8199a1..2d310db0c2 100644 --- a/cpu/samd21/periph/pm.c +++ b/cpu/samd21/periph/pm.c @@ -25,7 +25,7 @@ #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" enum system_sleepmode { diff --git a/cpu/samd5x/periph/pm.c b/cpu/samd5x/periph/pm.c index cbbc65c768..e06b3c6dd6 100644 --- a/cpu/samd5x/periph/pm.c +++ b/cpu/samd5x/periph/pm.c @@ -21,7 +21,7 @@ #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set(unsigned mode) diff --git a/cpu/saml1x/periph/pm.c b/cpu/saml1x/periph/pm.c index a1008c765e..05e3fd0d9f 100644 --- a/cpu/saml1x/periph/pm.c +++ b/cpu/saml1x/periph/pm.c @@ -21,7 +21,7 @@ #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set(unsigned mode) diff --git a/cpu/saml21/periph/pm.c b/cpu/saml21/periph/pm.c index 107c520f1a..5882e97ff6 100644 --- a/cpu/saml21/periph/pm.c +++ b/cpu/saml21/periph/pm.c @@ -21,7 +21,7 @@ #include "periph/pm.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" void pm_set(unsigned mode) diff --git a/cpu/stm32/cpu_common.c b/cpu/stm32/cpu_common.c index 5807f100aa..b236812449 100644 --- a/cpu/stm32/cpu_common.c +++ b/cpu/stm32/cpu_common.c @@ -21,7 +21,7 @@ #include "periph_conf.h" #include "periph_cpu.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/stm32/dist/clk_conf/clk_conf.c b/cpu/stm32/dist/clk_conf/clk_conf.c index 25312632f6..37455bcb9a 100644 --- a/cpu/stm32/dist/clk_conf/clk_conf.c +++ b/cpu/stm32/dist/clk_conf/clk_conf.c @@ -23,7 +23,7 @@ #include #include "clk_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #if ENABLE_DEBUG #define DEBUG(...) fprintf(stderr, __VA_ARGS__) #else diff --git a/cpu/stm32/periph/can.c b/cpu/stm32/periph/can.c index 5b296088a7..032abb6ae5 100644 --- a/cpu/stm32/periph/can.c +++ b/cpu/stm32/periph/can.c @@ -33,7 +33,7 @@ #include "sched.h" #include "mutex.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define CAN_MAX_WAIT_CHANGE (10000U) diff --git a/cpu/stm32/periph/eeprom.c b/cpu/stm32/periph/eeprom.c index a9304a065e..1be989de0a 100644 --- a/cpu/stm32/periph/eeprom.c +++ b/cpu/stm32/periph/eeprom.c @@ -26,7 +26,7 @@ #include "cpu.h" #include "periph/eeprom.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" extern void _lock(void); diff --git a/cpu/stm32/periph/eth.c b/cpu/stm32/periph/eth.c index 2f8b1da536..bf45d83bcc 100644 --- a/cpu/stm32/periph/eth.c +++ b/cpu/stm32/periph/eth.c @@ -33,7 +33,7 @@ #include "net/netdev/eth.h" #include "periph/gpio.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if IS_USED(MODULE_STM32_ETH_LINK_UP) diff --git a/cpu/stm32/periph/flash_common.c b/cpu/stm32/periph/flash_common.c index 202349b2ee..ec3e4ba565 100644 --- a/cpu/stm32/periph/flash_common.c +++ b/cpu/stm32/periph/flash_common.c @@ -21,7 +21,7 @@ #include "cpu.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1) diff --git a/cpu/stm32/periph/gpio_f1.c b/cpu/stm32/periph/gpio_f1.c index 523cdef47e..603e16c003 100644 --- a/cpu/stm32/periph/gpio_f1.c +++ b/cpu/stm32/periph/gpio_f1.c @@ -26,7 +26,7 @@ #include "periph_cpu.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/stm32/periph/i2c_1.c b/cpu/stm32/periph/i2c_1.c index 391a293bab..6c88498cf2 100644 --- a/cpu/stm32/periph/i2c_1.c +++ b/cpu/stm32/periph/i2c_1.c @@ -46,7 +46,7 @@ #include "periph/gpio.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define TICK_TIMEOUT (0xFFFF) diff --git a/cpu/stm32/periph/i2c_2.c b/cpu/stm32/periph/i2c_2.c index d31f28989b..c130abaa13 100644 --- a/cpu/stm32/periph/i2c_2.c +++ b/cpu/stm32/periph/i2c_2.c @@ -48,7 +48,7 @@ #include "periph_conf.h" /* Some DEBUG statements may cause delays that alter i2c functionality */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define TICK_TIMEOUT (0xFFFF) diff --git a/cpu/stm32/periph/pm.c b/cpu/stm32/periph/pm.c index 5569610cfb..52288973aa 100644 --- a/cpu/stm32/periph/pm.c +++ b/cpu/stm32/periph/pm.c @@ -31,7 +31,7 @@ #include "periph/pm.h" #include "stmclk.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifndef PM_STOP_CONFIG diff --git a/cpu/stm32/periph/rtc_f1.c b/cpu/stm32/periph/rtc_f1.c index c7148f1525..b375e21438 100644 --- a/cpu/stm32/periph/rtc_f1.c +++ b/cpu/stm32/periph/rtc_f1.c @@ -20,7 +20,7 @@ #include "cpu.h" #include "periph/rtc.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define EXTI_IMR_BIT (EXTI_IMR_MR17) @@ -29,8 +29,8 @@ #define EXTI_PR_BIT (EXTI_PR_PR17) static struct { - rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */ - void *arg; /**< argument passed to the callback */ + rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */ + void *arg; /**< argument passed to the callback */ } isr_ctx; static void _rtc_enter_config_mode(void) diff --git a/cpu/stm32/periph/rtt_f1.c b/cpu/stm32/periph/rtt_f1.c index 31cd563b69..b1044aa130 100644 --- a/cpu/stm32/periph/rtt_f1.c +++ b/cpu/stm32/periph/rtt_f1.c @@ -23,7 +23,7 @@ #include "periph/rtt.h" #include "periph_conf.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #define RTT_PRESCALER ((RTT_CLOCK_FREQUENCY / RTT_FREQUENCY) - 1 ) diff --git a/cpu/stm32/periph/spi.c b/cpu/stm32/periph/spi.c index 176b3d35b0..8491755394 100644 --- a/cpu/stm32/periph/spi.c +++ b/cpu/stm32/periph/spi.c @@ -33,7 +33,7 @@ #include "periph/spi.h" #include "pm_layered.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" /** diff --git a/cpu/stm32/periph/usbdev.c b/cpu/stm32/periph/usbdev.c index 1e12802150..c123a350fd 100644 --- a/cpu/stm32/periph/usbdev.c +++ b/cpu/stm32/periph/usbdev.c @@ -37,7 +37,7 @@ * is able to interfere with USB functionality and you might see different * errors than debug disabled */ -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #if defined(STM32_USB_OTG_FS_ENABLED) && defined(STM32_USB_OTG_HS_ENABLED) diff --git a/cpu/stm32/periph/wdt.c b/cpu/stm32/periph/wdt.c index 6ef3601cf2..f50fe2e7ea 100644 --- a/cpu/stm32/periph/wdt.c +++ b/cpu/stm32/periph/wdt.c @@ -29,7 +29,7 @@ #include "periph_cpu.h" #include "periph/wdt.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" #ifdef __cplusplus