diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-12-30 12:27:06 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-12-30 12:27:06 -0500 |
commit | f0f7ae0abcf0ab73a75bd111c3e036e0722d1daa (patch) | |
tree | d6bdb9f9adf3d82175d6cfc8545f187ca12d2d32 /stm32l4xx_it.c | |
parent | 8217c76e2255119fadba76daed3b3e1ec960285a (diff) |
uploaded code
Diffstat (limited to 'stm32l4xx_it.c')
-rw-r--r-- | stm32l4xx_it.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/stm32l4xx_it.c b/stm32l4xx_it.c new file mode 100644 index 0000000..999bd04 --- /dev/null +++ b/stm32l4xx_it.c @@ -0,0 +1,43 @@ +#include <stdint.h>
+
+static uint32_t ticks = 0;
+
+void delay(uint32_t count)
+{
+ uint32_t target = ticks + count;
+ while (ticks < target);
+}
+
+void NMI_Handler(void) {}
+
+void HardFault_Handler(void)
+{
+ while (1);
+}
+
+void MemManage_Handler(void)
+{
+ while (1);
+}
+
+void BusFault_Handler(void)
+{
+ while (1);
+}
+
+void UsageFault_Handler(void)
+{
+ while (1);
+}
+
+void SVC_Handler(void) {}
+
+void DebugMon_Handler(void) {}
+
+void PendSV_Handler(void) {}
+
+void SysTick_Handler(void)
+{
+ ticks++;
+}
+
|