1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/cc2538_rf: remove RADIO_IRQ_PRIO

This commit is contained in:
Francisco Molina 2020-09-25 16:31:44 +02:00
parent 9fd49581e7
commit 145d24499d
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
5 changed files with 5 additions and 33 deletions

View File

@ -100,13 +100,6 @@ static const adc_conf_t adc_config[] = {
#define ADC_NUMOF ARRAY_SIZE(adc_config)
/** @} */
/**
* @name Radio peripheral configuration
* @{
*/
#define RADIO_IRQ_PRIO 1
/** @} */
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -108,13 +108,6 @@ static const spi_conf_t spi_config[] = {
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/** @} */
/**
* @name Radio peripheral configuration
* @{
*/
#define RADIO_IRQ_PRIO 1
/** @} */
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -104,13 +104,6 @@ static const spi_conf_t spi_config[] = {
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/** @} */
/**
* @name Radio peripheral configuration
* @{
*/
#define RADIO_IRQ_PRIO 1
/** @} */
#ifdef __cplusplus
} /* end extern "C" */
#endif

View File

@ -360,13 +360,6 @@ typedef gpio_t adc_conf_t;
#define NWDT_TIME_UPPER_LIMIT (1000U)
/** @} */
/**
* @name Radio peripheral configuration
* @{
*/
#define RADIO_IRQ_PRIO 1
/** @} */
#ifdef __cplusplus
}
#endif

View File

@ -130,20 +130,20 @@ void cc2538_init(void)
NVIC_SetPriority(RF_RXTX_ALT_IRQn, RADIO_IRQ_PRIO);
NVIC_EnableIRQ(RF_RXTX_ALT_IRQn);
NVIC_SetPriority(RF_ERR_ALT_IRQn, RADIO_IRQ_PRIO);
NVIC_SetPriority(RF_ERR_ALT_IRQn, CPU_DEFAULT_IRQ_PRIO);
NVIC_EnableIRQ(RF_ERR_ALT_IRQn);
NVIC_SetPriority(MAC_TIMER_ALT_IRQn, RADIO_IRQ_PRIO);
NVIC_SetPriority(MAC_TIMER_ALT_IRQn, CPU_DEFAULT_IRQ_PRIO);
NVIC_EnableIRQ(MAC_TIMER_ALT_IRQn);
}
else {
NVIC_SetPriority(RF_RXTX_IRQn, RADIO_IRQ_PRIO);
NVIC_SetPriority(RF_RXTX_IRQn, CPU_DEFAULT_IRQ_PRIO);
NVIC_EnableIRQ(RF_RXTX_IRQn);
NVIC_SetPriority(RF_ERR_IRQn, RADIO_IRQ_PRIO);
NVIC_SetPriority(RF_ERR_IRQn, CPU_DEFAULT_IRQ_PRIO);
NVIC_EnableIRQ(RF_ERR_IRQn);
NVIC_SetPriority(MACTIMER_IRQn, RADIO_IRQ_PRIO);
NVIC_SetPriority(MACTIMER_IRQn, CPU_DEFAULT_IRQ_PRIO);
NVIC_EnableIRQ(MACTIMER_IRQn);
}