aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-08-18 22:06:48 -0700
committerpx4dev <px4@purgatory.org>2012-08-19 01:31:27 -0700
commita86974e3e31c5956e77cd9dc4794e0ad44c3dc61 (patch)
treea3141a3d3045342a629b20ee811ea472c1cf3988 /nuttx
parent7b4b3f7bf772df76f8f4c537d654429622e1ae25 (diff)
downloadpx4-firmware-a86974e3e31c5956e77cd9dc4794e0ad44c3dc61.tar.gz
px4-firmware-a86974e3e31c5956e77cd9dc4794e0ad44c3dc61.tar.bz2
px4-firmware-a86974e3e31c5956e77cd9dc4794e0ad44c3dc61.zip
Hand over control of the onboard EEPROM to the NuttX I2C EEPROM driver and NXFFS.
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/configs/px4fmu/nsh/appconfig1
-rwxr-xr-xnuttx/configs/px4fmu/nsh/defconfig13
2 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/px4fmu/nsh/appconfig b/nuttx/configs/px4fmu/nsh/appconfig
index 4f0c5093f..ddc607c43 100644
--- a/nuttx/configs/px4fmu/nsh/appconfig
+++ b/nuttx/configs/px4fmu/nsh/appconfig
@@ -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
diff --git a/nuttx/configs/px4fmu/nsh/defconfig b/nuttx/configs/px4fmu/nsh/defconfig
index a87ce7ffa..283edf7dd 100755
--- a/nuttx/configs/px4fmu/nsh/defconfig
+++ b/nuttx/configs/px4fmu/nsh/defconfig
@@ -247,6 +247,14 @@ 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
#
# CONFIG_SERIAL_TERMIOS - Serial driver supports termios.h interfaces (tcsetattr,
@@ -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
#