1
0
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:
benpicco 2019-11-12 11:33:16 +01:00 committed by GitHub
commit f77e5a6c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 0 additions and 114 deletions

View File

@ -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

View File

@ -43,12 +43,6 @@ extern "C" {
#define TIMER_NUMOF (1U)
/** @} */
/**
* @name Real Time Clock configuration
*/
#define RTC_NUMOF (1U)
/** @} */
/**
* @name UART configuration
* @{

View File

@ -67,12 +67,6 @@ extern "C" {
#define UART_TX_ISR (USART1TX_VECTOR)
/** @} */
/**
* @name Real Time Clock configuration
* @{
*/
#define RTC_NUMOF (1)
/** @} */
#ifdef __cplusplus
}

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)
/** @} */
/**

View File

@ -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)
/** @} */

View File

@ -32,7 +32,6 @@ extern "C" {
* @name RTC configuration
* @{
*/
#define RTC_NUMOF (1U)
#define RTC_DEV RTC->MODE2
/** @} */

View File

@ -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

View File

@ -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 */
/** @} */

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)
/** @} */
/**

View File

@ -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)
/** @} */
/**

View File

@ -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)

View File

@ -68,12 +68,6 @@ extern "C" {
#define PWM_FUNC (1)
/** @} */
/**
* @name Real Time Clock configuration
* @{
*/
#define RTC_NUMOF (1)
/** @} */
/**
* @name UART configuration

View File

@ -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

View File

@ -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)
/** @} */

View File

@ -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

View File

@ -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)
/** @} */
/**

View File

@ -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)
/** @} */
/**

View File

@ -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

View File

@ -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)
/** @} */
/**

View File

@ -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)
/** @} */
/**

View File

@ -204,7 +204,6 @@ static const i2c_conf_t i2c_config[] = {
* @name RTC configuration
* @{
*/
#define RTC_NUMOF (1U)
#define RTC_DEV RTC->MODE2
/** @} */

View File

@ -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)
/** @} */

View File

@ -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)
/** @} */

View File

@ -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)
/** @} */

View File

@ -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)

View File

@ -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)

View File

@ -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)
/** @} */

View File

@ -34,13 +34,6 @@ extern "C" {
#define RANDOM_NUMOF (1U)
/** @} */
/**
* @name RealTime Clock configuration
* @{
*/
#define RTC_NUMOF (1)
/** @} */
/**
* @name Timer peripheral configuration
* @{

View File

@ -2016,8 +2016,6 @@ PREDEFINED = DOXYGEN \
I2C_NUMOF \
PWM_NUMOF \
RANDOM_NUMOF \
RTC_NUMOF \
RTT_NUMOF \
GPIO_NUMOF \
SPI_NUMOF \
UART_NUMOF \