aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-08-18 22:06:17 -0700
committerpx4dev <px4@purgatory.org>2012-08-19 01:31:26 -0700
commit7b4b3f7bf772df76f8f4c537d654429622e1ae25 (patch)
treef2a484c8b20e06e10a72a1b528c16bc3dda08c51 /nuttx
parentd91f5f3dd7d80b690956d02807aa74253aebe19c (diff)
downloadpx4-firmware-7b4b3f7bf772df76f8f4c537d654429622e1ae25.tar.gz
px4-firmware-7b4b3f7bf772df76f8f4c537d654429622e1ae25.tar.bz2
px4-firmware-7b4b3f7bf772df76f8f4c537d654429622e1ae25.zip
Kill off the old EEPROM driver's support for the on-board parameter EEPROM.
Diffstat (limited to 'nuttx')
-rwxr-xr-xnuttx/configs/px4fmu/include/board.h2
-rw-r--r--nuttx/configs/px4fmu/include/drv_eeprom.h25
-rw-r--r--nuttx/configs/px4fmu/src/up_nsh.c5
3 files changed, 11 insertions, 21 deletions
diff --git a/nuttx/configs/px4fmu/include/board.h b/nuttx/configs/px4fmu/include/board.h
index 0db8580ba..29ad52c61 100755
--- a/nuttx/configs/px4fmu/include/board.h
+++ b/nuttx/configs/px4fmu/include/board.h
@@ -289,7 +289,7 @@
*/
#define PX4_I2C_OBDEV_HMC5883 0x1e
#define PX4_I2C_OBDEV_MS5611 NOTDEFINED
-#define PX4_I2C_OBDEV_EEPROM 0x50
+#define PX4_I2C_OBDEV_EEPROM NOTDEFINED
#define PX4_I2C_OBDEV_PX4IO_BL 0x18
#define PX4_I2C_OBDEV_PX4IO 0x19
diff --git a/nuttx/configs/px4fmu/include/drv_eeprom.h b/nuttx/configs/px4fmu/include/drv_eeprom.h
index e6801f6c4..57589ed84 100644
--- a/nuttx/configs/px4fmu/include/drv_eeprom.h
+++ b/nuttx/configs/px4fmu/include/drv_eeprom.h
@@ -31,34 +31,21 @@
*
****************************************************************************/
-/*
- * Driver for the ST MS5611 gyroscope
- */
-
-/* IMPORTANT NOTES:
- *
- * SPI max. clock frequency: 10 Mhz
- * CS has to be high before transfer,
- * go low right before transfer and
- * go high again right after transfer
+/**
+ * @file drv_eeprom.h
*
+ * Config for the non-MTD EEPROM driver.
*/
/* IMPORTANT: Adjust this number! */
-#define MAX_EEPROMS 2
+#define MAX_EEPROMS 2
/* FMU onboard */
-#define FMU_ONBOARD_EEPROM_ADDRESS 0x50
-#define FMU_ONBOARD_EEPROM_TOTAL_SIZE_BYTES 16000
-#define FMU_ONBOARD_EEPROM_PAGE_SIZE_BYTES 64
-#define FMU_ONBOARD_EEPROM_PAGE_WRITE_TIME_US 5500
-#define FMU_ONBOARD_EEPROM_BUS_CLOCK 1000000 ///< 1 Mhz max. clock
-
-#define FMU_BASEBOARD_EEPROM_ADDRESS 0x57
+#define FMU_BASEBOARD_EEPROM_ADDRESS 0x57
#define FMU_BASEBOARD_EEPROM_TOTAL_SIZE_BYTES 128
#define FMU_BASEBOARD_EEPROM_PAGE_SIZE_BYTES 8
#define FMU_BASEBOARD_EEPROM_PAGE_WRITE_TIME_US 3300
-#define FMU_BASEBOARD_EEPROM_BUS_CLOCK 400000 ///< 400 KHz max. clock
+#define FMU_BASEBOARD_EEPROM_BUS_CLOCK 400000 ///< 400 KHz max. clock
/**
* @brief i2c I2C bus struct
diff --git a/nuttx/configs/px4fmu/src/up_nsh.c b/nuttx/configs/px4fmu/src/up_nsh.c
index d089f2df3..d185bf7f1 100644
--- a/nuttx/configs/px4fmu/src/up_nsh.c
+++ b/nuttx/configs/px4fmu/src/up_nsh.c
@@ -290,6 +290,7 @@ int nsh_archinitialize(void)
FMU_BASEBOARD_EEPROM_PAGE_SIZE_BYTES,
FMU_BASEBOARD_EEPROM_PAGE_WRITE_TIME_US, "/dev/baseboard_eeprom", 1);
+#if 0
int eeprom_attempts = 0;
int eeprom_fail;
while (eeprom_attempts < 5)
@@ -306,8 +307,10 @@ int nsh_archinitialize(void)
if (eeprom_fail) message("[boot] FAILED to attach FMU EEPROM\r\n");
+#endif
+
/* Report back sensor status */
- if (gyro_fail || mag_fail || baro_fail || eeprom_fail)
+ if (gyro_fail || mag_fail || baro_fail/* || eeprom_fail*/)
{
up_ledon(LED_AMBER);
}