Kill off the old EEPROM driver's support for the on-board parameter EEPROM.

This commit is contained in:
px4dev
2012-08-18 22:06:17 -07:00
parent d91f5f3dd7
commit 7b4b3f7bf7
3 changed files with 11 additions and 21 deletions
+1 -1
View File
@@ -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
+6 -19
View File
@@ -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
+4 -1
View File
@@ -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);
}