eeprom sequential read
[cortex-from-scratch] / main.c
diff --git a/main.c b/main.c
index ccf6015..0390040 100644 (file)
--- a/main.c
+++ b/main.c
 
 #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 sleep() {
 //
@@ -36,10 +39,10 @@ void main()
        ivt_init();
        uart_init();
 //     cputs("ROBSYS LOADING...\n");
-       systick_init();
-       led_init();
-       rtc_init();
+       //systick_init();
+//     tsensor_output(0xFFFF, 0x7FFF);
 
+       init_printf(NULL, putc);
        // SPEED_TEST
 /*     cputs("START TEST (8MHz) \n");
        int a;
@@ -60,6 +63,14 @@ void main()
        sysinfo();
 
 
+//     tsensor_input(5000);
+//     run();
+
+       led_init();
+       at24c_init();
+       at24c_run();
+//     rtc_init();
+
 //     tm1637_init();
 //     tm1637_start();