diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-19 15:37:09 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-19 15:37:09 +0100 |
commit | fb42ec17bcf7508f66b8d8d0770b60c33be0d6ab (patch) | |
tree | c879f13cc08c9bda799c815e93f356f9639852f5 /stm/main.c | |
parent | d7a7a30a4f7e85b1c4cac92b2e101e4071b89daa (diff) | |
download | micropython-fb42ec17bcf7508f66b8d8d0770b60c33be0d6ab.tar.gz micropython-fb42ec17bcf7508f66b8d8d0770b60c33be0d6ab.zip |
Try to re-add USB support...
Diffstat (limited to 'stm/main.c')
-rw-r--r-- | stm/main.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/stm/main.c b/stm/main.c index 30099d3663..ca14d1ce9d 100644 --- a/stm/main.c +++ b/stm/main.c @@ -9,6 +9,7 @@ #include "led.h" #include "lcd.h" #include "storage.h" +#include "usb.h" static void impl02_c_version() { int x = 0; @@ -199,6 +200,7 @@ void __fatal_error(const char *msg) { #include "compile.h" #include "runtime.h" +#if 0 py_obj_t pyb_delay(py_obj_t count) { sys_tick_delay_ms(rt_get_int(count)); return py_const_none; @@ -216,13 +218,14 @@ py_obj_t pyb_sw() { return py_const_false; } } +#endif #include "ff.h" FATFS fatfs0; -#include "nlr.h" /* +#include "nlr.h" void g(uint i) { printf("g:%d\n", i); if (i & 1) { @@ -327,8 +330,8 @@ int main() { storage_init(); // Python init - qstr_init(); - rt_init(); + //qstr_init(); + //rt_init(); // print a message printf(" micro py board\n"); @@ -408,18 +411,8 @@ int main() { // turn boot-up LED off led_state(PYB_LED_G1, 0); - /* - for (;;) { - led_state(PYB_LED_G2, 1); - sys_tick_wait_at_least(sys_tick_counter, 500); - led_state(PYB_LED_G2, 0); - sys_tick_wait_at_least(sys_tick_counter, 500); - } - */ - // USB - if (0) { - void usb_init(); + if (1) { usb_init(); } |