Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arch/arm/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ $(COBJS) $(UCOBJS): %$(OBJEXT): %.c
$(call COMPILE, $<, $@)

$(STARTUP_OBJS): %$(OBJEXT): %.c
$(Q) $(CC) $(CELFFLAGS) -c common$(DELIM)crt0.c -o crt0$(OBJEXT)
$(Q) $(CC) $(CELFFLAGS) $(CFLAGS) -c common$(DELIM)crt0.c -o crt0$(OBJEXT)

ifeq ($(CONFIG_BUILD_FLAT),y)
$(BIN): $(STARTUP_OBJS) $(OBJS)
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/src/common/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#
############################################################################

#include $(TOPDIR)/tools/Config.mk

STARTUP_OBJS = crt0$(OBJEXT)

# Common ARM files
Expand Down
43 changes: 43 additions & 0 deletions arch/arm/src/rp23xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1059,3 +1059,46 @@ config RP23XX_BOARD_HAS_WS2812
---help---
See the Board Selection menu to configure the pins used
by ws2812.



#####################################################################
# Flash File System Configuration
#####################################################################

config RP23XX_FLASH_FILE_SYSTEM
bool "Configure a read/write filesystem on unused flash memory"
default n
select MTD
select MTD_SMART
select FS_SMARTFS
---help---
See the Board Selection menu to configure the size of the
flash chip for a particular board.

if RP23XX_FLASH_FILE_SYSTEM

config RP23XX_FLASH_MOUNT_POINT
string "mount point for flash file system"
default "/flash"
---help---
This is the mount point where the flash file system will
be mounted. Leave this string empty to prevent automatic
mounting of the filesystem.

endif # RP23XX_FLASH_FILE_SYSTEM


#####################################################################
# FLASH File System Configuration
#####################################################################

if RP23XX_FLASH_FILE_SYSTEM

config RP23XX_FLASH_LENGTH
int "Size of flash memory in bytes."
default 2097152
---help---
This is the overall amount of flash memory on the board.

endif # RP23XX_FLASH_FILE_SYSTEM
5 changes: 5 additions & 0 deletions arch/arm/src/rp23xx/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ endif
ifeq ($(CONFIG_WATCHDOG),y)
CHIP_CSRCS += rp23xx_wdt.c
endif

ifeq ($(CONFIG_RP23XX_FLASH_FILE_SYSTEM),y)
CHIP_CSRCS += rp23xx_flash_mtd.c
CHIP_ASRCS += rp23xx_flash_initialize.S
endif
Loading