Skip to content

Commit

Permalink
atmel/samd: Add filesystem support. 64k is stored in flash.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Sep 3, 2016
1 parent 559434a commit 09be96a
Show file tree
Hide file tree
Showing 14 changed files with 3,046 additions and 12 deletions.
11 changes: 10 additions & 1 deletion atmel-samd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ HAL_DIR=hal/$(MCU_SERIES)
INC += -I.
INC += -I..
INC += -I../lib/mp-readline
INC += -I../lib/timeutils
INC += -Iasf/common/boards/
INC += -Iasf/common/services/sleepmgr/
INC += -Iasf/common/services/usb/
Expand Down Expand Up @@ -99,7 +100,7 @@ endif

#Debugging/Optimization
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -ggdb
CFLAGS += -Os -ggdb
else
CFLAGS += -Os -DNDEBUG
endif
Expand All @@ -119,6 +120,7 @@ endif
SRC_ASF = $(addprefix asf/sam0/,\
drivers/adc/adc_sam_d_r/adc.c \
drivers/dac/dac_sam_d_c/dac.c \
drivers/nvm/nvm.c \
drivers/port/port.c \
drivers/sercom/sercom.c \
drivers/sercom/sercom_interrupt.c \
Expand All @@ -137,15 +139,19 @@ SRC_ASF = $(addprefix asf/sam0/,\
)

SRC_C = \
builtin_open.c \
fatfs_port.c \
main.c \
modmachine.c \
modmachine_adc.c \
modmachine_dac.c \
modmachine_pin.c \
modmachine_pwm.c \
moduos.c \
modutime.c \
mphalport.c \
pin_named_pins.c \
storage.c \
uart.c \
asf/common/services/sleepmgr/samd/sleepmgr.c \
asf/common/services/usb/class/cdc/device/udi_cdc.c \
Expand All @@ -157,6 +163,9 @@ SRC_C = \
asf/sam0/utils/cmsis/samd21/source/system_samd21.c \
asf/sam0/utils/syscalls/gcc/syscalls.c \
boards/$(BOARD)/pins.c \
lib/fatfs/ff.c \
lib/fatfs/option/ccsbcs.c \
lib/timeutils/timeutils.c \
lib/utils/stdout_helpers.c \
lib/utils/printf.c \
lib/utils/pyexec.c \
Expand Down
Loading

0 comments on commit 09be96a

Please sign in to comment.