From 7853ca01083cd3b3a9d5cc9f9c981da0cdb0645a Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 5 Apr 2019 09:12:49 +0200 Subject: [PATCH] boards/stm32*: remove useless RTC_NUMOF defines --- boards/b-l072z-lrwan1/include/periph_conf.h | 7 ------- boards/b-l475e-iot01a/include/periph_conf.h | 7 ------- boards/i-nucleo-lrwan1/include/periph_conf.h | 7 ------- boards/lobaro-lorabox/include/periph_conf.h | 7 ------- boards/lsn50/include/periph_conf.h | 7 ------- boards/nucleo-f030r8/Makefile.features | 3 +++ boards/nucleo-f030r8/include/periph_conf.h | 12 ------------ boards/nucleo-f070rb/Makefile.features | 3 +++ boards/nucleo-f070rb/include/periph_conf.h | 12 ------------ boards/nucleo-f072rb/Makefile.features | 3 +++ boards/nucleo-f072rb/include/periph_conf.h | 12 ------------ boards/nucleo-f091rc/Makefile.features | 3 +++ boards/nucleo-f091rc/include/periph_conf.h | 12 ------------ boards/nucleo-f207zg/include/periph_conf.h | 7 ------- boards/nucleo-f401re/include/periph_conf.h | 7 ------- boards/nucleo-f412zg/include/periph_conf.h | 7 ------- boards/nucleo-f413zh/include/periph_conf.h | 7 ------- boards/nucleo-l031k6/include/periph_conf.h | 7 ------- boards/nucleo-l053r8/include/periph_conf.h | 7 ------- boards/nucleo-l073rz/include/periph_conf.h | 7 ------- boards/nucleo-l152re/include/periph_conf.h | 7 ------- boards/nucleo-l433rc/include/periph_conf.h | 7 ------- boards/nucleo-l452re/include/periph_conf.h | 7 ------- boards/nucleo-l476rg/include/periph_conf.h | 7 ------- boards/nucleo-l496zg/include/periph_conf.h | 7 ------- boards/nz32-sc151/include/periph_conf.h | 7 ------- boards/pyboard/include/periph_conf.h | 7 ------- boards/stm32f769i-disco/include/periph_conf.h | 7 ------- boards/stm32l476g-disco/include/periph_conf.h | 7 ------- boards/ublox-c030-u201/include/periph_conf.h | 7 ------- 30 files changed, 12 insertions(+), 202 deletions(-) diff --git a/boards/b-l072z-lrwan1/include/periph_conf.h b/boards/b-l072z-lrwan1/include/periph_conf.h index 697d01f53d..fb4b4a81c3 100644 --- a/boards/b-l072z-lrwan1/include/periph_conf.h +++ b/boards/b-l072z-lrwan1/include/periph_conf.h @@ -176,13 +176,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/b-l475e-iot01a/include/periph_conf.h b/boards/b-l475e-iot01a/include/periph_conf.h index da54ffbdeb..4bfbb9d87c 100644 --- a/boards/b-l475e-iot01a/include/periph_conf.h +++ b/boards/b-l475e-iot01a/include/periph_conf.h @@ -256,13 +256,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/i-nucleo-lrwan1/include/periph_conf.h b/boards/i-nucleo-lrwan1/include/periph_conf.h index 16f8e08c02..ee86a9ec34 100644 --- a/boards/i-nucleo-lrwan1/include/periph_conf.h +++ b/boards/i-nucleo-lrwan1/include/periph_conf.h @@ -133,13 +133,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/lobaro-lorabox/include/periph_conf.h b/boards/lobaro-lorabox/include/periph_conf.h index 2311509d63..30a727f2ba 100644 --- a/boards/lobaro-lorabox/include/periph_conf.h +++ b/boards/lobaro-lorabox/include/periph_conf.h @@ -89,13 +89,6 @@ static const timer_conf_t timer_config[] = { #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) /** @} */ -/** - * @name Real time counter configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - /** * @name UART configuration * @{ diff --git a/boards/lsn50/include/periph_conf.h b/boards/lsn50/include/periph_conf.h index ca5e7221c0..514848ce0a 100644 --- a/boards/lsn50/include/periph_conf.h +++ b/boards/lsn50/include/periph_conf.h @@ -182,13 +182,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f030r8/Makefile.features b/boards/nucleo-f030r8/Makefile.features index 6e86e4326c..18d16957c0 100644 --- a/boards/nucleo-f030r8/Makefile.features +++ b/boards/nucleo-f030r8/Makefile.features @@ -1,6 +1,9 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_pwm +# For RTC, Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the +# required LSE oscillator provided on the X2 slot. +# See Nucleo User Manual UM1724 section 5.6.2. FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nucleo-f030r8/include/periph_conf.h b/boards/nucleo-f030r8/include/periph_conf.h index e054b3fa81..5e2254589a 100644 --- a/boards/nucleo-f030r8/include/periph_conf.h +++ b/boards/nucleo-f030r8/include/periph_conf.h @@ -205,18 +205,6 @@ static const spi_conf_t spi_config[] = { #define ADC_NUMOF (6) /** @} */ -/** - * @name RTC configuration - * @{ - */ -/** - * Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the required LSE - * oscillator provided on the X2 slot. - * See Nucleo User Manual UM1724 section 5.6.2. - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f070rb/Makefile.features b/boards/nucleo-f070rb/Makefile.features index 0e2208e592..fd182254ec 100644 --- a/boards/nucleo-f070rb/Makefile.features +++ b/boards/nucleo-f070rb/Makefile.features @@ -2,6 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm +# For RTC, Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the +# required LSE oscillator provided on the X2 slot. +# See Nucleo User Manual UM1724 section 5.6.2. FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nucleo-f070rb/include/periph_conf.h b/boards/nucleo-f070rb/include/periph_conf.h index 544c9babd2..ec3926ff81 100644 --- a/boards/nucleo-f070rb/include/periph_conf.h +++ b/boards/nucleo-f070rb/include/periph_conf.h @@ -168,18 +168,6 @@ static const pwm_conf_t pwm_config[] = { #define ADC_NUMOF (6) /** @} */ -/** - * @name RTC configuration - * @{ - */ -/** - * Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the required LSE - * oscillator provided on the X2 slot. - * See Nucleo User Manual UM1724 section 5.6.2. - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f072rb/Makefile.features b/boards/nucleo-f072rb/Makefile.features index 07a07c226b..bddb69005c 100644 --- a/boards/nucleo-f072rb/Makefile.features +++ b/boards/nucleo-f072rb/Makefile.features @@ -2,6 +2,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm +# For RTC, Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the +# required LSE oscillator provided on the X2 slot. +# See Nucleo User Manual UM1724 section 5.6.2. FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nucleo-f072rb/include/periph_conf.h b/boards/nucleo-f072rb/include/periph_conf.h index 5832a119eb..95511438bf 100644 --- a/boards/nucleo-f072rb/include/periph_conf.h +++ b/boards/nucleo-f072rb/include/periph_conf.h @@ -226,18 +226,6 @@ static const spi_conf_t spi_config[] = { #define ADC_NUMOF (6) /** @} */ -/** - * @name RTC configuration - * @{ - */ -/** - * Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the required LSE - * oscillator provided on the X2 slot. - * See Nucleo User Manual UM1724 section 5.6.2. - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f091rc/Makefile.features b/boards/nucleo-f091rc/Makefile.features index 495683e839..180a498c90 100644 --- a/boards/nucleo-f091rc/Makefile.features +++ b/boards/nucleo-f091rc/Makefile.features @@ -3,6 +3,9 @@ FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_dma FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm +# For RTC, Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the +# required LSE oscillator provided on the X2 slot. +# See Nucleo User Manual UM1724 section 5.6.2. FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/nucleo-f091rc/include/periph_conf.h b/boards/nucleo-f091rc/include/periph_conf.h index 9938038ac8..4fb17ab37d 100644 --- a/boards/nucleo-f091rc/include/periph_conf.h +++ b/boards/nucleo-f091rc/include/periph_conf.h @@ -224,18 +224,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF (sizeof(pwm_config) / sizeof(pwm_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -/** - * Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the required LSE - * oscillator provided on the X2 slot. - * See Nucleo User Manual UM1724 section 5.6.2. - */ -#define RTC_NUMOF (1U) -/** @} */ - /** * @name ADC configuration * @{ diff --git a/boards/nucleo-f207zg/include/periph_conf.h b/boards/nucleo-f207zg/include/periph_conf.h index 2d03630510..5d7e8163cf 100644 --- a/boards/nucleo-f207zg/include/periph_conf.h +++ b/boards/nucleo-f207zg/include/periph_conf.h @@ -243,13 +243,6 @@ static const spi_conf_t spi_config[] = { #define ADC_NUMOF (2) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f401re/include/periph_conf.h b/boards/nucleo-f401re/include/periph_conf.h index 37bb66b36c..fd45bb01d3 100644 --- a/boards/nucleo-f401re/include/periph_conf.h +++ b/boards/nucleo-f401re/include/periph_conf.h @@ -241,13 +241,6 @@ static const spi_conf_t spi_config[] = { } /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f412zg/include/periph_conf.h b/boards/nucleo-f412zg/include/periph_conf.h index 5536df2a25..44e2ce3243 100644 --- a/boards/nucleo-f412zg/include/periph_conf.h +++ b/boards/nucleo-f412zg/include/periph_conf.h @@ -200,13 +200,6 @@ static const spi_conf_t spi_config[] = { } /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f413zh/include/periph_conf.h b/boards/nucleo-f413zh/include/periph_conf.h index 4b3fd2adf3..0529acd02c 100644 --- a/boards/nucleo-f413zh/include/periph_conf.h +++ b/boards/nucleo-f413zh/include/periph_conf.h @@ -229,13 +229,6 @@ static const spi_conf_t spi_config[] = { } /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - /** * @name RTT configuration * @{ diff --git a/boards/nucleo-l031k6/include/periph_conf.h b/boards/nucleo-l031k6/include/periph_conf.h index b805f05b4f..574917ebd4 100644 --- a/boards/nucleo-l031k6/include/periph_conf.h +++ b/boards/nucleo-l031k6/include/periph_conf.h @@ -147,13 +147,6 @@ static const spi_conf_t spi_config[] = { #define ADC_NUMOF (7U) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l053r8/include/periph_conf.h b/boards/nucleo-l053r8/include/periph_conf.h index f73bcf535a..f54deb252a 100644 --- a/boards/nucleo-l053r8/include/periph_conf.h +++ b/boards/nucleo-l053r8/include/periph_conf.h @@ -147,13 +147,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l073rz/include/periph_conf.h b/boards/nucleo-l073rz/include/periph_conf.h index 29ebfcf924..829b6c76c1 100644 --- a/boards/nucleo-l073rz/include/periph_conf.h +++ b/boards/nucleo-l073rz/include/periph_conf.h @@ -216,13 +216,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l152re/include/periph_conf.h b/boards/nucleo-l152re/include/periph_conf.h index 68729981fb..935a733763 100644 --- a/boards/nucleo-l152re/include/periph_conf.h +++ b/boards/nucleo-l152re/include/periph_conf.h @@ -102,13 +102,6 @@ static const timer_conf_t timer_config[] = { #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) /** @} */ -/** - * @name Real time counter configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - /** * @name UART configuration * @{ diff --git a/boards/nucleo-l433rc/include/periph_conf.h b/boards/nucleo-l433rc/include/periph_conf.h index 41ac1633ef..648333312c 100644 --- a/boards/nucleo-l433rc/include/periph_conf.h +++ b/boards/nucleo-l433rc/include/periph_conf.h @@ -226,13 +226,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l452re/include/periph_conf.h b/boards/nucleo-l452re/include/periph_conf.h index 4a69c3d636..83e5ae2fa5 100644 --- a/boards/nucleo-l452re/include/periph_conf.h +++ b/boards/nucleo-l452re/include/periph_conf.h @@ -202,13 +202,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l476rg/include/periph_conf.h b/boards/nucleo-l476rg/include/periph_conf.h index fb2616395d..1404a2d940 100644 --- a/boards/nucleo-l476rg/include/periph_conf.h +++ b/boards/nucleo-l476rg/include/periph_conf.h @@ -297,13 +297,6 @@ static const spi_conf_t spi_config[] = { } /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l496zg/include/periph_conf.h b/boards/nucleo-l496zg/include/periph_conf.h index 508dfbcb04..528bb72a57 100644 --- a/boards/nucleo-l496zg/include/periph_conf.h +++ b/boards/nucleo-l496zg/include/periph_conf.h @@ -221,13 +221,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nz32-sc151/include/periph_conf.h b/boards/nz32-sc151/include/periph_conf.h index bcfe55cc07..65d5d60014 100644 --- a/boards/nz32-sc151/include/periph_conf.h +++ b/boards/nz32-sc151/include/periph_conf.h @@ -216,13 +216,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - /** * @name ADC configuration * @{ diff --git a/boards/pyboard/include/periph_conf.h b/boards/pyboard/include/periph_conf.h index 12f05e5304..56741bb9b2 100644 --- a/boards/pyboard/include/periph_conf.h +++ b/boards/pyboard/include/periph_conf.h @@ -173,13 +173,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/stm32f769i-disco/include/periph_conf.h b/boards/stm32f769i-disco/include/periph_conf.h index f290161baf..2b9be38d7c 100644 --- a/boards/stm32f769i-disco/include/periph_conf.h +++ b/boards/stm32f769i-disco/include/periph_conf.h @@ -103,13 +103,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/stm32l476g-disco/include/periph_conf.h b/boards/stm32l476g-disco/include/periph_conf.h index dfd181b8ea..98c20f7606 100644 --- a/boards/stm32l476g-disco/include/periph_conf.h +++ b/boards/stm32l476g-disco/include/periph_conf.h @@ -117,13 +117,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1) -/** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/ublox-c030-u201/include/periph_conf.h b/boards/ublox-c030-u201/include/periph_conf.h index 6628a17a24..63f73ca620 100644 --- a/boards/ublox-c030-u201/include/periph_conf.h +++ b/boards/ublox-c030-u201/include/periph_conf.h @@ -252,13 +252,6 @@ static const i2c_conf_t i2c_config[] = { } /** @} */ -/** - * @name RTC configuration - * @{ - */ -#define RTC_NUMOF (1U) -/** @} */ - #ifdef __cplusplus } #endif