Chromium Code Reviews| Index: app/dartino/main.c |
| diff --git a/app/dartino/main.c b/app/dartino/main.c |
| index 44df2a42bdd733129069e7310d554025dfbfbe71..27005aa6768a83f614a498fce59d313e1dd6ec21 100644 |
| --- a/app/dartino/main.c |
| +++ b/app/dartino/main.c |
| @@ -33,6 +33,8 @@ |
| void SensorsInit(void); |
| +int change_led_status(int, int); |
| + |
| enum { |
| MODE_RUN, |
| MODE_BURN |
| @@ -78,6 +80,7 @@ DARTINO_EXPORT_TABLE_ENTRY("gfx_flush", gfx_flush) |
| DARTINO_EXPORT_TABLE_ENTRY("port_open", port_open) |
| DARTINO_EXPORT_TABLE_ENTRY("port_close", port_open) |
| DARTINO_EXPORT_TABLE_ENTRY("port_read", port_read) |
| +DARTINO_EXPORT_TABLE_ENTRY("led_toggle", change_led_status) |
|
Søren Gjesse
2016/02/09 09:16:01
Why is is called led_toggle when exported? Wouldn'
herhut
2016/02/09 10:10:15
Because it is so long and these turn into strings
|
| DARTINO_EXPORT_TABLE_END |
| //////////////// Port debug /////////////////////////////////////////////////// |