Skip to content

Commit 09be96a

Browse files
committed
atmel/samd: Add filesystem support. 64k is stored in flash.
1 parent 559434a commit 09be96a

14 files changed

+3046
-12
lines changed

atmel-samd/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ HAL_DIR=hal/$(MCU_SERIES)
3535
INC += -I.
3636
INC += -I..
3737
INC += -I../lib/mp-readline
38+
INC += -I../lib/timeutils
3839
INC += -Iasf/common/boards/
3940
INC += -Iasf/common/services/sleepmgr/
4041
INC += -Iasf/common/services/usb/
@@ -99,7 +100,7 @@ endif
99100

100101
#Debugging/Optimization
101102
ifeq ($(DEBUG), 1)
102-
CFLAGS += -O0 -ggdb
103+
CFLAGS += -Os -ggdb
103104
else
104105
CFLAGS += -Os -DNDEBUG
105106
endif
@@ -119,6 +120,7 @@ endif
119120
SRC_ASF = $(addprefix asf/sam0/,\
120121
drivers/adc/adc_sam_d_r/adc.c \
121122
drivers/dac/dac_sam_d_c/dac.c \
123+
drivers/nvm/nvm.c \
122124
drivers/port/port.c \
123125
drivers/sercom/sercom.c \
124126
drivers/sercom/sercom_interrupt.c \
@@ -137,15 +139,19 @@ SRC_ASF = $(addprefix asf/sam0/,\
137139
)
138140

139141
SRC_C = \
142+
builtin_open.c \
143+
fatfs_port.c \
140144
main.c \
141145
modmachine.c \
142146
modmachine_adc.c \
143147
modmachine_dac.c \
144148
modmachine_pin.c \
145149
modmachine_pwm.c \
150+
moduos.c \
146151
modutime.c \
147152
mphalport.c \
148153
pin_named_pins.c \
154+
storage.c \
149155
uart.c \
150156
asf/common/services/sleepmgr/samd/sleepmgr.c \
151157
asf/common/services/usb/class/cdc/device/udi_cdc.c \
@@ -157,6 +163,9 @@ SRC_C = \
157163
asf/sam0/utils/cmsis/samd21/source/system_samd21.c \
158164
asf/sam0/utils/syscalls/gcc/syscalls.c \
159165
boards/$(BOARD)/pins.c \
166+
lib/fatfs/ff.c \
167+
lib/fatfs/option/ccsbcs.c \
168+
lib/timeutils/timeutils.c \
160169
lib/utils/stdout_helpers.c \
161170
lib/utils/printf.c \
162171
lib/utils/pyexec.c \

0 commit comments

Comments
 (0)