35b718ef8729e9d502715eac6a6d3ac484a949a8
[cortex-from-scratch] / main.c
1 /* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
2  * 
3  * $LOG$
4  * 2019/7/20 - ROBIN KRENS      
5  * Initial version 
6  * 
7  * $DESCRIPTION$
8  *
9  * */
10
11 #include <stdbool.h>
12 #include <stddef.h>
13 #include <stdint.h>
14
15 #include <sys/robsys.h> 
16 #include <sys/mmap.h>
17
18 #include <drivers/uart.h>
19
20 void main()
21 {
22         ivt_init();
23         uart_init();
24
25         systick_init();
26         
27         sysinfo();
28
29         extern void stub();
30         //stub();
31         //__asm__ __volatile__ ("ldc p1, cr1, r0");
32
33         terminal();
34
35         for(;;) {
36
37         }
38 }