Skip to content

Commit 226f422

Browse files
committed
altos/stm32f4-disco: Remove scheme
This demo doesn't need a lisp interpreter Signed-off-by: Keith Packard <[email protected]>
1 parent 96c446b commit 226f422

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

src/stm32f4-disco/Makefile

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
include ../stm32f4/Makefile-raw.defs
22

3-
aoschemelib=$(shell pkg-config --variable=aoschemelib ao-scheme)
4-
5-
include $(aoschemelib)/Makefile-scheme
6-
73
IDVENDOR=0xfffe
84
IDPRODUCT=0xfffa
95
PRODUCT=stm32f4-disco
@@ -17,8 +13,6 @@ INC = \
1713
ao_pins.h \
1814
ao_task.h \
1915
ao_product.h \
20-
$(SCHEME_HDRS) \
21-
ao_scheme_const.h \
2216
stm32f4.h \
2317
Makefile
2418

@@ -36,10 +30,9 @@ ALTOS_SRC = \
3630
ao_usb_gen.c \
3731
ao_usb_stm32f4.c \
3832
ao_led.c \
39-
ao_impure.c \
40-
$(SCHEME_SRCS)
33+
ao_impure.c
4134

42-
CFLAGS = $(STM32F4_CFLAGS) -I$(aoschemelib)
35+
CFLAGS = $(STM32F4_CFLAGS)
4336

4437
PROG=stm32f4-disco-$(VERSION)
4538
ELF=$(PROG).elf
@@ -56,21 +49,6 @@ $(ELF): Makefile $(OBJ)
5649

5750
$(OBJ): $(INC)
5851

59-
ao_product.h: ao-make-product.5c ../Version Makefile
60-
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -V $(IDVENDOR) -s $(SERIAL) -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
61-
62-
SCHEME_SCHEME=\
63-
ao_scheme_basic_syntax.scheme \
64-
ao_scheme_list.scheme \
65-
ao_scheme_advanced_syntax.scheme \
66-
ao_scheme_vector.scheme \
67-
ao_scheme_string.scheme \
68-
ao_scheme_char.scheme \
69-
ao_scheme_number.scheme
70-
71-
ao_scheme_const.h: ao-scheme-make-const-big $(SCHEME_SCHEME)
72-
$^ -o $@ -d POSIX,PORT,SAVE
73-
7452
distclean: clean
7553

7654
clean:

src/stm32f4-disco/ao_disco.c

-27
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,8 @@
1313
*/
1414

1515
#include <ao.h>
16-
#include <ao_scheme.h>
1716
#include <ao_usb.h>
1817

19-
static void scheme_cmd() {
20-
ao_scheme_read_eval_print(stdin, stdout, false);
21-
}
22-
23-
static const struct ao_cmds scheme_cmds[] = {
24-
{ scheme_cmd, "l\0Run scheme interpreter" },
25-
{ 0, 0 }
26-
};
27-
28-
int
29-
_ao_scheme_getc(void)
30-
{
31-
static uint8_t at_eol;
32-
int c;
33-
34-
if (at_eol) {
35-
ao_cmd_readline(ao_scheme_read_list ? "- " : "> ");
36-
at_eol = 0;
37-
}
38-
c = (unsigned char) ao_cmd_lex();
39-
if (c == '\n')
40-
at_eol = 1;
41-
return c;
42-
}
43-
4418
void main(void)
4519
{
4620
ao_clock_init();
@@ -51,6 +25,5 @@ void main(void)
5125
ao_usart_init();
5226
ao_usb_init();
5327
ao_cmd_init();
54-
ao_cmd_register(scheme_cmds);
5528
ao_start_scheduler();
5629
}

0 commit comments

Comments
 (0)