altos/lisp: Change lisp objects to use ao_poly everywhere. Add const
[fw/altos] / src / nucleao-32 / ao_nucleo.c
index cda889c6eef25c0eeb43d39a0bb19d36bb5e7707..113e2399aaebc7fe962186a8a19469835960c76c 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <ao.h>
+#include <ao_lisp.h>
 
 static uint16_t        blink_delay, blink_running;
 
@@ -41,11 +42,17 @@ static void blink_cmd() {
                        ao_sleep(&blink_running);
 }
 
+static void lisp_cmd() {
+       ao_lisp_read_eval_print();
+}
+
 static const struct ao_cmds blink_cmds[] = {
        { blink_cmd,    "b <delay, 0 off>\0Blink the green LED" },
+       { lisp_cmd,     "l\0Run lisp interpreter" },
        { 0, 0 }
 };
 
+
 void main(void)
 {
        ao_led_init(LEDS_AVAILABLE);