Skip to content

Commit

Permalink
Move atmega files out of snek-duino into atmega
Browse files Browse the repository at this point in the history
These will be shared by the snek-mega build

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed May 1, 2019
1 parent ba2cc69 commit c2a1f37
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions snek-duino/Makefile
Expand Up @@ -15,22 +15,22 @@
SNEK_ROOT = ..
SNEK_LOCAL_SRC = \
snek-duino.c \
snek-duino-eeprom.c \
snek-atmega-eeprom.c \
snek-io.c \
snek-duino-serial.c
snek-atmega-serial.c

SNEK_LOCAL_INC = snek-duino.h
SNEK_LOCAL_VPATH = $(SNEK_ROOT)/atmega
SNEK_LOCAL_INC = $(SNEK_LOCAL_VPATH)/snek-atmega.h
SNEK_LOCAL_BUILTINS = snek-duino.builtin


include ../snek-install.defs

BASE=snek-duino-$(SNEK_VERSION)
ELF=$(BASE).elf
HEX=$(BASE).hex
MAP=$(BASE).map
CC=avr-gcc
CFLAGS=-Os -DF_CPU=16000000UL -mmcu=atmega328p -I. -g -fno-jump-tables $(SNEK_CFLAGS) -mcall-prologues -Waddr-space-convert
CFLAGS=-Os -DF_CPU=16000000UL -mmcu=atmega328p -I. -I$(SNEK_LOCAL_VPATH) -g -fno-jump-tables $(SNEK_CFLAGS) -mcall-prologues -Waddr-space-convert
LDFLAGS=-Wl,-uvfprintf -lprintf_flt -lm \
-Wl,--defsym -Wl,__TEXT_REGION_LENGTH__=0x8000 \
-Wl,--defsym -Wl,__DATA_REGION_LENGTH__=0x7a0 \
Expand Down
2 changes: 1 addition & 1 deletion snek-duino/snek-duino.builtin
Expand Up @@ -50,4 +50,4 @@ A2, -2, 16
A3, -2, 17
A4, -2, 18
A5, -2, 19
#include <snek-duino.h>
#include <snek-atmega.h>

0 comments on commit c2a1f37

Please sign in to comment.