#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>
void *memcpy(void *dest, void *src, size_t count)
void main()
{
- //uart_init();
- //uart_puts("LOADING SYSTEM...\n");
ivt_init();
+// clock_init();
+ uart_init();
+ //uart_puts("LOADING SYSTEM 0.1 ...\n");
systick_init();
+ mm_init();
+ sysinfo();
+
+ //int * p2 = mm_alloc(512);
+ //memset(p2, 'a', 512);
+
+ //addrtohex(p2);
+ //addrtohex(*p2);
+
+ /* extern stub();
+ stub();
+ __asm__ __volatile__ ("udiv r1, r3 ,%0" :: "r"(0)); */
+
+ //regw_u32(p, 0x0CCCCCCCC, 4, 0x01);
+
+ //regw_u8(p, 0xFF, 0, 0x02);
+
// asm("cpsie i"); // enable irq , cpsied f (disable faukts(
// loop