Basic functionality for TM1637
[cortex-from-scratch] / systick.c
index e90714a..1d632ec 100644 (file)
--- a/systick.c
+++ b/systick.c
@@ -1,8 +1,11 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
-#include <stm32.h>
-#include <mmap.h>
+
+#include <sys/robsys.h>
+#include <sys/mmap.h>
+
+#include <lib/regfunc.h> // TODO
 
 struct interrupt_frame {
 
@@ -16,11 +19,12 @@ struct interrupt_frame {
         uint32_t psr; // N-4
 };
 
-__attribute__ ((interrupt))
-void * systick_handler(struct interrupt_frame * frame) {
+//__attribute__ ((interrupt))
+void * systick_handler(/* struct interrupt_frame * frame */) {
 
-       uint32_t volatile status;
-       uart_puts("TICKING\n");
+//     uint32_t volatile status;
+       //uart_puts("TICKING\n");
+//     for(;;);
 }