#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)
return retval;
}
-unsigned char inportb (uint32_t _addr)
-{
- unsigned char rv;
- //__asm__ __volatile__ ("inb %1, %0" : "=a" (rv) : "dN" (_port));
- return rv;
-}
-void outportb (uint32_t _addr, unsigned char _data)
-{
-
- // __asm__ __volatile__ ("str %1, %0" : "=r" (_data) : "m" (_addr) );
-
- // __asm__ __volatile__ ("outb %1, %0" : : "dN" (_port), "a" (_data));
-}
void main()
{
+
+ ivt_init();
uart_init();
- uart_puts("LOADING SYSTEM...\n");
- // loop
+
+ systick_init();
+
+ sysinfo();
+
+ terminal();
+
for(;;) {
}