mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #12673 from benpicco/purge-rtc_numof
boards: remove RTT_NUMOF/RTC_NUMOF
This commit is contained in:
commit
f77e5a6c6a
@ -260,7 +260,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -268,7 +267,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -43,12 +43,6 @@ extern "C" {
|
||||
#define TIMER_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Real Time Clock configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
* @{
|
||||
|
@ -67,12 +67,6 @@ extern "C" {
|
||||
#define UART_TX_ISR (USART1TX_VECTOR)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Real Time Clock configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -195,7 +195,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -203,7 +202,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -153,7 +153,6 @@ static const uart_conf_t uart_config[] = {
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_IRQ_PRIO 1
|
||||
|
||||
#define RTT_DEV RTC
|
||||
|
@ -29,7 +29,6 @@ extern "C" {
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV (1) /* NRF_RTC1 */
|
||||
#define RTT_MAX_VALUE (0x00ffffff)
|
||||
#define RTT_FREQUENCY (1024)
|
||||
|
@ -28,7 +28,6 @@ extern "C" {
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV (1) /* NRF_RTC1 */
|
||||
#define RTT_MAX_VALUE (0x00ffffff)
|
||||
#define RTT_FREQUENCY (1024)
|
||||
|
@ -122,7 +122,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
#define EXTERNAL_OSC32_SOURCE 1
|
||||
#define INTERNAL_OSC32_SOURCE 0
|
||||
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
|
||||
@ -134,7 +133,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#define RTT_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -102,17 +102,10 @@ static const i2c_conf_t i2c_config[] = {
|
||||
#define I2C_0_ISR isr_i2c0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief RTC configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
/** @} */
|
||||
|
@ -32,7 +32,6 @@ extern "C" {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
|
@ -32,7 +32,6 @@ extern "C" {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -31,7 +31,6 @@ extern "C" {
|
||||
* On the STM32Lx platforms, we always utilize the LPTIM1.
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1)
|
||||
#define RTT_FREQUENCY (1024U) /* 32768 / 2^n */
|
||||
#define RTT_MAX_VALUE (0x0000ffff) /* 16-bit timer */
|
||||
/** @} */
|
||||
|
@ -243,7 +243,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -251,7 +250,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -158,7 +158,6 @@ static const spi_conf_t spi_config[] = {
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_IRQ_PRIO 1
|
||||
|
||||
#define RTT_DEV RTC
|
||||
|
@ -91,7 +91,6 @@ extern "C" {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -99,7 +98,6 @@ extern "C" {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -54,12 +54,10 @@ extern "C" {
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1)
|
||||
#define RTT_FREQUENCY (1) /* in Hz */
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_INTR_PRIORITY (2)
|
||||
|
||||
#define RTC_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -54,12 +54,10 @@ extern "C" {
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1)
|
||||
#define RTT_FREQUENCY (1) /* in Hz */
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_INTR_PRIORITY (2)
|
||||
|
||||
#define RTC_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -48,18 +48,11 @@ extern "C" {
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
|
@ -68,12 +68,6 @@ extern "C" {
|
||||
#define PWM_FUNC (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Real Time Clock configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
|
@ -123,7 +123,6 @@ static const uart_conf_t uart_config[] = {
|
||||
* @name Real time counter configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_IRQ_PRIO 1
|
||||
|
||||
#define RTT_DEV RTC
|
||||
|
@ -216,7 +216,6 @@ static const spi_conf_t spi_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1)
|
||||
#define RTT_FREQUENCY (4096)
|
||||
#define RTT_MAX_VALUE (0xffff)
|
||||
/** @} */
|
||||
|
@ -281,7 +281,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -289,7 +288,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -138,7 +138,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
#define EXTERNAL_OSC32_SOURCE 1
|
||||
#define INTERNAL_OSC32_SOURCE 0
|
||||
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
|
||||
@ -150,7 +149,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#define RTT_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -136,7 +136,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
#define EXTERNAL_OSC32_SOURCE 1
|
||||
#define INTERNAL_OSC32_SOURCE 0
|
||||
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
|
||||
@ -148,7 +147,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#define RTT_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -252,7 +252,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
/** @} */
|
||||
|
||||
@ -260,7 +259,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTT_DEV RTC->MODE0
|
||||
#define RTT_IRQ RTC_IRQn
|
||||
#define RTT_IRQ_PRIO 10
|
||||
|
@ -119,7 +119,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
#define EXTERNAL_OSC32_SOURCE 1
|
||||
#define INTERNAL_OSC32_SOURCE 0
|
||||
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
|
||||
@ -131,7 +130,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#define RTT_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -121,7 +121,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
#define EXTERNAL_OSC32_SOURCE 1
|
||||
#define INTERNAL_OSC32_SOURCE 0
|
||||
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0
|
||||
@ -133,7 +132,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
*/
|
||||
#define RTT_FREQUENCY (32768U)
|
||||
#define RTT_MAX_VALUE (0xffffffffU)
|
||||
#define RTT_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -204,7 +204,6 @@ static const i2c_conf_t i2c_config[] = {
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTC_DEV RTC->MODE2
|
||||
|
||||
/** @} */
|
||||
|
@ -109,17 +109,10 @@ static const i2c_conf_t i2c_config[] = {
|
||||
#define I2C_0_ISR isr_i2c0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief RTC configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
/** @} */
|
||||
|
@ -100,17 +100,10 @@ static const i2c_conf_t i2c_config[] = {
|
||||
#define I2C_0_ISR isr_i2c0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief RTC configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
/** @} */
|
||||
|
@ -109,17 +109,10 @@ static const i2c_conf_t i2c_config[] = {
|
||||
#define I2C_0_ISR isr_i2c0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief RTC configuration
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
/** @} */
|
||||
|
@ -155,18 +155,11 @@ static const pwm_conf_t pwm_config[] = {
|
||||
#define PWM_NUMOF ARRAY_SIZE(pwm_channel_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
|
@ -155,18 +155,11 @@ static const pwm_conf_t pwm_config[] = {
|
||||
#define PWM_NUMOF ARRAY_SIZE(pwm_channel_config)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RTT configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
|
||||
#define RTT_MAX_VALUE (0xFFFFFF)
|
||||
#define RTT_FREQUENCY (1U)
|
||||
|
@ -141,8 +141,6 @@ typedef uint16_t gpio_t;
|
||||
* @name RTT and RTC configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTT_NUMOF (1U)
|
||||
#define RTC_NUMOF (1U)
|
||||
#define RTT_FREQUENCY (1)
|
||||
#define RTT_MAX_VALUE (0xffffffff)
|
||||
/** @} */
|
||||
|
@ -34,13 +34,6 @@ extern "C" {
|
||||
#define RANDOM_NUMOF (1U)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name RealTime Clock configuration
|
||||
* @{
|
||||
*/
|
||||
#define RTC_NUMOF (1)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Timer peripheral configuration
|
||||
* @{
|
||||
|
@ -2016,8 +2016,6 @@ PREDEFINED = DOXYGEN \
|
||||
I2C_NUMOF \
|
||||
PWM_NUMOF \
|
||||
RANDOM_NUMOF \
|
||||
RTC_NUMOF \
|
||||
RTT_NUMOF \
|
||||
GPIO_NUMOF \
|
||||
SPI_NUMOF \
|
||||
UART_NUMOF \
|
||||
|
Loading…
Reference in New Issue
Block a user