diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-02 15:40:03 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-02 15:40:03 -0700 |
commit | 54c76d48924fecc2aeabbc352c553822a87f9d19 (patch) | |
tree | ee7b94cb02b306d33e2a81beadb6152afb53f05d /src/cortexelf-v1 | |
parent | 7b031d5a86213364196b67f7e3f92865da8adbf9 (diff) |
cortexelf-v1: Use new memory map to access all flash and ram. Add fat.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1')
-rw-r--r-- | src/cortexelf-v1/Makefile | 5 | ||||
-rw-r--r-- | src/cortexelf-v1/ao_cortexelf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/cortexelf-v1/Makefile b/src/cortexelf-v1/Makefile index c74b0cce..02ef817e 100644 --- a/src/cortexelf-v1/Makefile +++ b/src/cortexelf-v1/Makefile @@ -4,6 +4,7 @@ # include ../stm/Makefile.defs +LDFLAGS=-L../stm -Wl,-Taltos-512.ld INC = \ ao.h \ @@ -61,6 +62,8 @@ ALTOS_SRC = \ ao_ps2.c \ ao_console.c \ ao_sdcard.c \ + ao_bufio.c \ + ao_fat.c \ $(PROFILE) \ $(SAMPLE_PROFILE) \ $(STACK_GUARD) @@ -80,7 +83,7 @@ OBJ=$(SRC:.c=.o) all: $(PROG) $(HEX) -$(PROG): Makefile $(OBJ) altos.ld +$(PROG): Makefile $(OBJ) altos-512.ld $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) ../altitude-pa.h: make-altitude-pa diff --git a/src/cortexelf-v1/ao_cortexelf.c b/src/cortexelf-v1/ao_cortexelf.c index 67062c85..0c6852d9 100644 --- a/src/cortexelf-v1/ao_cortexelf.c +++ b/src/cortexelf-v1/ao_cortexelf.c @@ -26,6 +26,7 @@ #include <ao_vga.h> #include <ao_console.h> #include <ao_sdcard.h> +#include <ao_fat.h> struct ao_task ball_task; @@ -207,6 +208,7 @@ main(void) ao_exti_init(); ao_sdcard_init(); + ao_fat_init(); ao_ps2_init(); ao_vga_init(); |