altos/scheme: Add ports. Split scheme code up.
[fw/altos] / src / lambdakey-v1.0 / ao_lambdakey.c
index 73962e29b36fc3006992ba1b22ab381b2db1e080..2bd626f14c7718080e2e8c4004646bd861d0a632 100644 (file)
@@ -16,7 +16,7 @@
 #include <ao_scheme.h>
 
 static void scheme_cmd() {
-       ao_scheme_read_eval_print();
+       ao_scheme_read_eval_print(stdin, stdout, true);
 }
 
 static const struct ao_cmds blink_cmds[] = {
@@ -27,7 +27,9 @@ static const struct ao_cmds blink_cmds[] = {
 
 void main(void)
 {
+#ifdef LEDS_AVAILABLE
        ao_led_init(LEDS_AVAILABLE);
+#endif
        ao_clock_init();
        ao_timer_init();
        ao_usb_init();