Hand over control of the onboard EEPROM to the NuttX I2C EEPROM driver and NXFFS.

This commit is contained in:
px4dev
2012-08-19 01:31:27 -07:00
parent 7b4b3f7bf7
commit a86974e3e3
4 changed files with 166 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ CONFIGURED_APPS += systemcmds/perf
CONFIGURED_APPS += systemcmds/top
CONFIGURED_APPS += systemcmds/boardinfo
CONFIGURED_APPS += systemcmds/mixer
CONFIGURED_APPS += systemcmds/eeprom
#CONFIGURED_APPS += systemcmds/calibration
# Tutorial code from
+12 -1
View File
@@ -246,6 +246,14 @@ CONFIG_STM32_I2CTIMEOUS_PER_BYTE=200
CONFIG_STM32_I2CTIMEOUS_START_STOP=700
CONFIG_DEBUG_I2C=n
#
# Enable the MTD driver for the onboard I2C EEPROM
#
CONFIG_MTD_AT24XX=y
CONFIG_AT24XX_ADDR=0x50
CONFIG_AT24XX_SIZE=128
CONFIG_AT24XX_MTD_BLOCKSIZE=256
#
# STM32F40xxx specific serial device driver settings
#
@@ -699,7 +707,10 @@ CONFIG_FS_FAT=y
CONFIG_FAT_LCNAMES=y
CONFIG_FAT_LFN=y
CONFIG_FAT_MAXFNAME=32
CONFIG_FS_NXFFS=n
CONFIG_FS_NXFFS=y
CONFIG_NXFFS_MAXNAMLEN=32
CONFIG_NXFFS_TAILTHRESHOLD=2048
CONFIG_NXFFS_PREALLOCATED=y
CONFIG_FS_ROMFS=y
#