X-Git-Url: https://robinkrens.nl/gitweb/?a=blobdiff_plain;f=main.c;h=342059e68b005844e7648702e3d5856d175789d0;hb=094f4defd7ee3b672f9c690f57125893a64901c8;hp=c5ee2022734a80e9827e5de6430e505dd26a0a40;hpb=d35408aabe7ea757d406bf8a7dba669ee8736bd5;p=cortex-from-scratch diff --git a/main.c b/main.c index c5ee202..342059e 100644 --- a/main.c +++ b/main.c @@ -17,6 +17,9 @@ #include #include +#include +#include + #include #include #include @@ -24,19 +27,24 @@ void main() { ivt_init(); - uart_init(); +// cputs("ROBSYS LOADING...\n"); systick_init(); - led_init(); - sysinfo(); + tm1637_init(); + tm1637_start(); + + //uint32_t test = hextoreg("12345678"); + +// cputs(regtohex(test)); + //extern void stub(); //stub(); //__asm__ __volatile__ ("ldc p1, cr1, r0"); - while(1) { +/* while(1) { int r; for (int i = 0; i < 50000; i++) { r = 0; @@ -46,8 +54,8 @@ void main() r = 0; } led_off(); - } - // terminal(); + } */ + terminal(); for(;;) {