Skip to content

Commit

Permalink
ports/duemilanove, ports/uno: Take over all of flash to add input
Browse files Browse the repository at this point in the history
Overwriting the boot loader makes enough space for the input, float
and int functions. There's still space to spare; maybe we can add something extra!

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Nov 5, 2021
1 parent 095da86 commit 31cbabc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/duemilanove/Makefile
Expand Up @@ -25,6 +25,7 @@ SNEK_LOCAL_VPATH = $(SNEK_ATMEGA)

SNEK_LOCAL_SRC = \
snek-pow.c \
snek-input.c \
snek-328p.c \
$(SNEK_ATMEGA_SRC)

Expand All @@ -33,6 +34,7 @@ SNEK_LOCAL_INC = \

SNEK_LOCAL_BUILTINS = \
$(SNEK_ATMEGA_BUILTINS) \
snek-input.builtin \
snek-328p.builtin

include $(SNEK_ROOT)/snek-install.defs
Expand All @@ -56,7 +58,7 @@ OPT=-Os -frename-registers -funsigned-char -fno-jump-tables -mcall-prologues
CFLAGS=$(OPT) -DF_CPU=16000000UL -mmcu=atmega328p -I. -I$(SNEK_LOCAL_VPATH) -g $(SNEK_CFLAGS) -Waddr-space-convert
LDFLAGS=$(SNEK_LDFLAGS) \
-Wl,-uvfprintf -lprintf_flt -lm \
-Wl,--defsym -Wl,__TEXT_REGION_LENGTH__=0x7e00 \
-Wl,--defsym -Wl,__TEXT_REGION_LENGTH__=0x8000 \
-Wl,-Map=$(MAP)

all:: $(HEX) snek-$(BOARD)-install snek-$(BOARD)-install.1
Expand Down

0 comments on commit 31cbabc

Please sign in to comment.