projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Fix up stm32f103-nucleo 'lco' demo mode
[fw/altos]
/
src
/
stm
/
ao_exti_stm.c
diff --git
a/src/stm/ao_exti_stm.c
b/src/stm/ao_exti_stm.c
index 2491b609893607b2a340a455be93f59c513f860b..2a05a508c13b6a00c2b4e9818162b9af77c95526 100644
(file)
--- a/
src/stm/ao_exti_stm.c
+++ b/
src/stm/ao_exti_stm.c
@@
-32,7
+32,7
@@
static void ao_exti_one_isr(uint8_t pin) {
}
static void ao_exti_range_isr(uint8_t first, uint8_t last, uint16_t mask) {
}
static void ao_exti_range_isr(uint8_t first, uint8_t last, uint16_t mask) {
- uint16_t pending = (ao_last_exti = stm_exti.pr) & mask;
+ uint16_t pending = (
uint16_t) (
ao_last_exti = stm_exti.pr) & mask;
uint8_t pin;
static uint16_t last_mask;
static uint8_t last_pin;
uint8_t pin;
static uint16_t last_mask;
static uint8_t last_pin;
@@
-135,7
+135,7
@@
ao_exti_set_mode(struct stm_gpio *gpio, uint8_t pin, uint8_t mode) {
}
void
}
void
-ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)()) {
+ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)(
void
)) {
(void) gpio;
ao_exti_callback[pin] = callback;
}
(void) gpio;
ao_exti_callback[pin] = callback;
}