diff options
author | Keith Packard <keithp@keithp.com> | 2019-02-04 22:32:24 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-02-18 13:08:23 -0800 |
commit | 54dd2a6e3a05b940d9daebb3d73f6876c182b3e7 (patch) | |
tree | e08a74ddff46442c72afee9098a3ca2ee38defc5 /src/lpc | |
parent | 873f511173c637016b5e173813bd03c1725797bb (diff) |
altos: Add 'void' to function declarations with no params.
Support -Wstrict-prototypes
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc')
-rw-r--r-- | src/lpc/ao_arch_funcs.h | 2 | ||||
-rw-r--r-- | src/lpc/ao_exti.h | 4 | ||||
-rw-r--r-- | src/lpc/ao_exti_lpc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lpc/ao_arch_funcs.h b/src/lpc/ao_arch_funcs.h index a5c78c33..345108ae 100644 --- a/src/lpc/ao_arch_funcs.h +++ b/src/lpc/ao_arch_funcs.h @@ -101,7 +101,7 @@ ao_arch_irqrestore(uint32_t primask) { } static inline void -ao_arch_memory_barrier() { +ao_arch_memory_barrier(void) { asm volatile("" ::: "memory"); } diff --git a/src/lpc/ao_exti.h b/src/lpc/ao_exti.h index 75f2cf5f..226979bc 100644 --- a/src/lpc/ao_exti.h +++ b/src/lpc/ao_exti.h @@ -29,13 +29,13 @@ #define AO_EXTI_PIN_NOCONFIGURE 64 void -ao_exti_setup(uint8_t gpio, uint8_t pin, uint8_t mode, void (*callback)()); +ao_exti_setup(uint8_t gpio, uint8_t pin, uint8_t mode, void (*callback)(void)); void ao_exti_set_mode(uint8_t gpio, uint8_t pin, uint8_t mode); void -ao_exti_set_callback(uint8_t gpio, uint8_t pin, void (*callback)()); +ao_exti_set_callback(uint8_t gpio, uint8_t pin, void (*callback)(void)); void ao_exti_enable(uint8_t gpio, uint8_t pin); diff --git a/src/lpc/ao_exti_lpc.c b/src/lpc/ao_exti_lpc.c index 193f4547..12016072 100644 --- a/src/lpc/ao_exti_lpc.c +++ b/src/lpc/ao_exti_lpc.c @@ -140,7 +140,7 @@ ao_exti_set_mode(uint8_t port, uint8_t pin, uint8_t mode) } void -ao_exti_set_callback(uint8_t port, uint8_t pin, void (*callback)()) { +ao_exti_set_callback(uint8_t port, uint8_t pin, void (*callback)(void)) { uint8_t id = pin_id(port,pin); uint8_t pint = ao_pint_map[id]; |