basic terminal
[cortex-from-scratch] / main.c
diff --git a/main.c b/main.c
index 84496d5..2b6fdba 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,7 +1,7 @@
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
-#include <stm32.h> // <-- your own header file located located in ./include
+#include <stm32.h> // <-- my own header file located located in ./include
 #include <mmap.h>
 
 
@@ -44,28 +44,14 @@ void main()
 {
 
        ivt_init();
-//     clock_init();
        uart_init();
+       
        systick_init();
-       uart_puts("LOADING SYSTEM 0.1 ...\n");
+       
        sysinfo();
-       mm_init();
 
-       int * p2 = mm_alloc(200);
-       *p2 = 0x12345678;
+       terminal();
 
-       test_memory(p2);
-
-       addrtohex(p2);
-       addrtohex(*p2);
-
-
-       //addrtohex((volatile uint32_t) 0x12345678 );
-       //addrtohex((volatile uint32_t) SCB_VTOR );
-
-//     asm("cpsie i"); // enable irq , cpsied f (disable faukts(
-
-       // loop
        for(;;) {
 
        }