#include <sys/mmap.h>
#include <lib/regfunc.h>
+#include <lib/pool.h>
#include <lib/stdio.h>
+#include <lib/string.h>
#include <lib/tinyprintf.h>
#include <drivers/uart.h>
//#include <drivers/mk450_joystick.h>
#include <drivers/st7735s.h>
+
void main()
{
/* Initialze basic input and output over serial */
uart_init();
+ /* TFT screen */
+ // tft_init();
+
/* Cortex M* integrated systick, can be replaced
* by the more accurate RTC.
systick_init();
*/
-
/* Set up a very small libc library */
init_printf(NULL, putc);
+ /* Heap init */
+ kheap_init();
+ //printf("%p\n", get_kheap());
+
/* Display some basic info at startup */
sysinfo();
/* Real time clock */
rtc_init();
+
/* Eeprom Driver
eeprom_at24c_init();
eeprom_test();
/* ADC Joystick module */
// mk450_init();
- /* TFT screen */
- tft_init();
/* Start up terminal */
terminal();