altos: Get cc1120 packet reception working
[fw/altos] / src / stm / ao_exti_stm.c
index 0fa241889279b58049c22b49700709fb4b054df7..683a91b34b3cc14bb8dfe8c4827b7ac61adf1695 100644 (file)
@@ -94,6 +94,11 @@ ao_exti_setup (struct stm_gpio *gpio, uint8_t pin, uint8_t mode, void (*callback
        stm_nvic_set_enable(irq);
 }
 
+void
+ao_exti_set_callback(struct stm_gpio *gpio, uint8_t pin, void (*callback)()) {
+       ao_exti_callback[pin] = callback;
+}
+
 void
 ao_exti_enable(struct stm_gpio *gpio, uint8_t pin) {
        uint32_t        mask = (1 << pin);