projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/lambdakey-v1.0: Fix obvious build errors
[fw/altos]
/
src
/
lambdakey-v1.0
/
ao_lambdakey.c
diff --git
a/src/lambdakey-v1.0/ao_lambdakey.c
b/src/lambdakey-v1.0/ao_lambdakey.c
index 2bd626f14c7718080e2e8c4004646bd861d0a632..c50317c01a5fbea013257bcc1b292cdd729252e2 100644
(file)
--- a/
src/lambdakey-v1.0/ao_lambdakey.c
+++ b/
src/lambdakey-v1.0/ao_lambdakey.c
@@
-15,8
+15,8
@@
#include <ao.h>
#include <ao_scheme.h>
#include <ao.h>
#include <ao_scheme.h>
-static void scheme_cmd() {
- ao_scheme_read_eval_print(stdin, stdout,
tru
e);
+static void scheme_cmd(
void
) {
+ ao_scheme_read_eval_print(stdin, stdout,
fals
e);
}
static const struct ao_cmds blink_cmds[] = {
}
static const struct ao_cmds blink_cmds[] = {
@@
-24,11
+24,26
@@
static const struct ao_cmds blink_cmds[] = {
{ 0, 0 }
};
{ 0, 0 }
};
+int
+_ao_scheme_getc(void)
+{
+ static uint8_t at_eol;
+ int c;
+
+ if (at_eol) {
+ ao_cmd_readline(ao_scheme_read_list ? "Λ " : "λ ");
+ at_eol = 0;
+ }
+ c = (unsigned char) ao_cmd_lex();
+ if (c == '\n')
+ at_eol = 1;
+ return c;
+}
void main(void)
{
#ifdef LEDS_AVAILABLE
void main(void)
{
#ifdef LEDS_AVAILABLE
- ao_led_init(
LEDS_AVAILABLE
);
+ ao_led_init();
#endif
ao_clock_init();
ao_timer_init();
#endif
ao_clock_init();
ao_timer_init();