1 /* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
4 * 2019/7/20 - ROBIN KRENS
8 * Main initialize basic components of the board
9 * and jumps to a terminal
17 #include <sys/robsys.h>
20 #include <lib/regfunc.h>
21 #include <lib/stdio.h>
22 #include <lib/tinyprintf.h>
24 #include <drivers/uart.h>
25 #include <drivers/led.h>
26 #include <drivers/tm1637.h>
27 //#include <drivers/at24c.h>
28 #include <drivers/tsensor.h>
33 /* Initialize the clock system, */
36 /* Setup the interrupt vector table */
39 /* Initialze basic input and output over serial */
42 /* Cortex M* integrated systick, can be replaced
43 * by the more accurate RTC.
47 /* Set up a very small libc library */
48 init_printf(NULL, putc);
50 /* Display some basic info at startup */
64 /* LED Segment Driver */
67 //for (int i = 0; i < 1000; i++)
72 uint16_t temp = tsensor_get_temp();
73 printf("Current temperature: %d °C\n", temp);
75 /* Start up terminal */
78 /* Should not be here, endless loop */