diff options
author | mux <freelancer.c@gmail.com> | 2014-01-05 19:38:41 +0200 |
---|---|---|
committer | mux <freelancer.c@gmail.com> | 2014-01-05 19:38:41 +0200 |
commit | 50d5420deb5af3568d453e09ef651acbe44799fb (patch) | |
tree | 18b244b97ff1765ec7bcb28037cf69b83f1f0bc0 /stm/stm32fxxx_it.c | |
parent | 12e2656472bf53e467c066eda6f3e177a97210ca (diff) | |
download | micropython-50d5420deb5af3568d453e09ef651acbe44799fb.tar.gz micropython-50d5420deb5af3568d453e09ef651acbe44799fb.zip |
Add Initial Support for STM32F4DISCOVERY Board
* Add a TARGET definition to Makefile (default PYBOARD).
* Add support for discovery LEDs in led module.
* Add support for discovery user switch in usersw
* Add EXTI interrupt handler for discovery user switch on (PA0).
* Parameterize led and usrsw modules pins and port.
* Issue #83
Diffstat (limited to 'stm/stm32fxxx_it.c')
-rw-r--r-- | stm/stm32fxxx_it.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stm/stm32fxxx_it.c b/stm/stm32fxxx_it.c index 4c185d0341..e254ccc899 100644 --- a/stm/stm32fxxx_it.c +++ b/stm/stm32fxxx_it.c @@ -298,4 +298,10 @@ void EXTI15_10_IRQHandler(void) { } } +#if defined(STM32F4DISC) +void EXTI0_IRQHandler(void) { + // clear pending interrupt bit + EXTI_ClearITPendingBit(EXTI_Line0); +} +#endif /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |