summaryrefslogtreecommitdiffstatshomepage
path: root/stm/stm32fxxx_it.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-12-05 20:38:23 +0000
committerDamien <damien.p.george@gmail.com>2013-12-05 20:38:23 +0000
commit065f8a5e0e513e687511ee9689052e528cbe3100 (patch)
tree2f13a304a1b58b6ab21fd97285fd30cb8c6997f3 /stm/stm32fxxx_it.c
parent8fe8413b5650d46bf9a81d2d26a4e4f9fdddaea8 (diff)
downloadmicropython-065f8a5e0e513e687511ee9689052e528cbe3100.tar.gz
micropython-065f8a5e0e513e687511ee9689052e528cbe3100.zip
stm: initial commit of working CC3000 driver, based on Adafruit.
Diffstat (limited to 'stm/stm32fxxx_it.c')
-rw-r--r--stm/stm32fxxx_it.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/stm/stm32fxxx_it.c b/stm/stm32fxxx_it.c
index 01be0da4af..a9785f91fe 100644
--- a/stm/stm32fxxx_it.c
+++ b/stm/stm32fxxx_it.c
@@ -266,4 +266,26 @@ void TIM6_DAC_IRQHandler(void) {
}
}
+#include "std.h"
+#include "led.h"
+// EXTI, for cc3000 on A14
+void EXTI15_10_IRQHandler(void) {
+ // work out if it's A14 that had the interrupt
+ if (EXTI_GetITStatus(EXTI_Line14) != RESET) {
+ led_toggle(PYB_LED_G2);
+ extern void SpiIntGPIOHandler(void);
+ extern uint32_t exti14_enabled;
+ extern uint32_t exti14_missed;
+ //printf("-> EXTI14 en=%lu miss=%lu\n", exti14_enabled, exti14_missed);
+ if (exti14_enabled) {
+ exti14_missed = 0;
+ SpiIntGPIOHandler(); // CC3000 interrupt
+ } else {
+ exti14_missed = 1;
+ }
+ EXTI_ClearITPendingBit(EXTI_Line14);
+ //printf("<- EXTI14 done\n");
+ }
+}
+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/