mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-07 02:27:56 +00:00
porting: Use correct type for ISR function pointers
This fixes -Werror=strict-prototypes in RIOT.
This commit is contained in:
@@ -157,7 +157,7 @@ void ble_npl_time_delay(ble_npl_time_t ticks);
|
||||
|
||||
#if NIMBLE_CFG_CONTROLLER
|
||||
|
||||
void ble_npl_hw_set_isr(int irqn, void (*addr)());
|
||||
void ble_npl_hw_set_isr(int irqn, void (*addr)(void));
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ ble_npl_time_delay(ble_npl_time_t ticks)
|
||||
|
||||
#if NIMBLE_CFG_CONTROLLER
|
||||
static inline void
|
||||
ble_npl_hw_set_isr(int irqn, void (*addr)())
|
||||
ble_npl_hw_set_isr(int irqn, void (*addr)(void))
|
||||
{
|
||||
npl_freertos_hw_set_isr(irqn, addr);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ ble_npl_error_t npl_freertos_time_ms_to_ticks(uint32_t ms,
|
||||
ble_npl_error_t npl_freertos_time_ticks_to_ms(ble_npl_time_t ticks,
|
||||
uint32_t *out_ms);
|
||||
|
||||
void npl_freertos_hw_set_isr(int irqn, void (*addr)());
|
||||
void npl_freertos_hw_set_isr(int irqn, void (*addr)(void));
|
||||
|
||||
uint32_t npl_freertos_hw_enter_critical(void);
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
static void (*radio_isr_addr)();
|
||||
static void (*rng_isr_addr)();
|
||||
static void (*rtc0_isr_addr)();
|
||||
static void (*radio_isr_addr)(void);
|
||||
static void (*rng_isr_addr)(void);
|
||||
static void (*rtc0_isr_addr)(void);
|
||||
|
||||
void
|
||||
isr_radio(void)
|
||||
@@ -42,7 +42,7 @@ isr_rtc0(void)
|
||||
}
|
||||
|
||||
void
|
||||
ble_npl_hw_set_isr(int irqn, void (*addr)())
|
||||
ble_npl_hw_set_isr(int irqn, void (*addr)(void))
|
||||
{
|
||||
switch (irqn) {
|
||||
case RADIO_IRQn:
|
||||
|
||||
Reference in New Issue
Block a user