raising and failing edge capture on TIM4
[cortex-from-scratch] / main.c
diff --git a/main.c b/main.c
index 38f9a37..ff45998 100644 (file)
--- a/main.c
+++ b/main.c
@@ -39,9 +39,7 @@ void main()
        uart_init();
 //     cputs("ROBSYS LOADING...\n");
        systick_init();
-       led_init();
-       rtc_init();
-       tsensor_init();
+//     tsensor_output(0xFFFF, 0x7FFF);
 
        init_printf(NULL, putc);
        // SPEED_TEST
@@ -64,6 +62,11 @@ void main()
        sysinfo();
 
 
+       tsensor_input(5000);
+
+       led_init();
+       rtc_init();
+
 //     tm1637_init();
 //     tm1637_start();