summaryrefslogtreecommitdiff
path: root/src/cortexelf-v1/ao_cortexelf.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-02 15:53:17 -0700
committerKeith Packard <keithp@keithp.com>2017-04-02 15:53:17 -0700
commit1f5f0638f283fbb784021873c649109d4ed0257c (patch)
tree452a8444a7d2110f2f51b2c9d6f9e3045f802687 /src/cortexelf-v1/ao_cortexelf.c
parent54c76d48924fecc2aeabbc352c553822a87f9d19 (diff)
cortexelf: Add lisp interpreter
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1/ao_cortexelf.c')
-rw-r--r--src/cortexelf-v1/ao_cortexelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cortexelf-v1/ao_cortexelf.c b/src/cortexelf-v1/ao_cortexelf.c
index 0c6852d9..1dc0a4be 100644
--- a/src/cortexelf-v1/ao_cortexelf.c
+++ b/src/cortexelf-v1/ao_cortexelf.c
@@ -27,6 +27,7 @@
#include <ao_console.h>
#include <ao_sdcard.h>
#include <ao_fat.h>
+#include <ao_lisp.h>
struct ao_task ball_task;
@@ -182,11 +183,16 @@ ao_console_send(void)
}
}
+static void lisp_cmd() {
+ ao_lisp_read_eval_print();
+}
+
__code struct ao_cmds ao_demo_cmds[] = {
{ ao_video_toggle, "V\0Toggle video" },
{ ao_ball_toggle, "B\0Toggle ball" },
{ ao_ps2_read_keys, "K\0Read keys from keyboard" },
{ ao_console_send, "C\0Send data to console, end with ~" },
+ { lisp_cmd, "l\0Run lisp interpreter" },
{ 0, NULL }
};