* Initial version
*
* $DESCRIPTION$
+ * Main initialize basic components of the board
+ * and jumps to a terminal
*
* */
#include <sys/robsys.h>
#include <sys/mmap.h>
+#include <lib/regfunc.h>
+#include <lib/stdio.h>
+#include <lib/tinyprintf.h>
+
#include <drivers/uart.h>
+#include <drivers/led.h>
+#include <drivers/tm1637.h>
+//#include <drivers/at24c.h>
+#include <drivers/tsensor.h>
void main()
{
+
+ /* Initialize the clock system, */
+ clock_init();
+
+ /* Setup the interrupt vector table */
ivt_init();
+
+ /* Initialze basic input and output over serial */
uart_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);
+
+ /* Display some basic info at startup */
sysinfo();
- extern void stub();
- //stub();
- //__asm__ __volatile__ ("ldc p1, cr1, r0");
+ /* On board LEDs*/
+ led_init();
+
+ /* Real time clock */
+ //rtc_init();
+
+ /* Eeprom Driver
+ eeprom_at24c_init();
+ eeprom_test();
+ */
+
+ /* LED Segment Driver */
+ //tm1637_init();
+
+ //for (int i = 0; i < 1000; i++)
+ // _block(10000);
+
+ /* TEMP SENSOR */
+ run();
+ /* Start up terminal */
terminal();
+ /* Should not be here, endless loop */
for(;;) {
}