diff options
| author | Keith Packard <keithp@keithp.com> | 2016-04-13 06:11:44 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-04-19 23:21:30 -0400 |
| commit | 3abc0fc5e4484d862709501133d35563aa0c25fa (patch) | |
| tree | 4e7c66ccc064c9fbafe1f4543e92f8dfbd38ce0c /src/stmf0/ao_exti.h | |
| parent | 14fecd672807982ce6232fa3b4bdce0aebe132e8 (diff) | |
altos/stmf0: Fix external interrupts
Missing a reserved address in the registers broke everything nicely,
but the priority values were also wrong - stm32f0 exposes 8 bits per
priority, like the stm32l, but it uses only the top two bits.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stmf0/ao_exti.h')
| -rw-r--r-- | src/stmf0/ao_exti.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stmf0/ao_exti.h b/src/stmf0/ao_exti.h index ebea224d..192611bd 100644 --- a/src/stmf0/ao_exti.h +++ b/src/stmf0/ao_exti.h @@ -28,7 +28,7 @@ #define AO_EXTI_PIN_NOCONFIGURE 64 void -ao_exti_setup(struct stm_gpio *gpio, uint8_t pin, uint8_t mode, void (*callback)()); +ao_exti_setup(struct stm_gpio *gpio, uint8_t pin, uint8_t mode, void (*callback)(void)); void ao_exti_set_mode(struct stm_gpio *gpio, uint8_t pin, uint8_t mode); |
