diff options
author | px4dev <px4@purgatory.org> | 2012-10-19 18:59:44 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-10-19 18:59:44 -0700 |
commit | 4f20d9a24ba15cab4b8610b460b7aa54ef2ac839 (patch) | |
tree | 134b2c1055751549008f47cb9cb267c5b9f5ee2f /nuttx | |
parent | 7f18fcd55617bac9167c403e61b993853945e848 (diff) | |
download | px4-firmware-4f20d9a24ba15cab4b8610b460b7aa54ef2ac839.tar.gz px4-firmware-4f20d9a24ba15cab4b8610b460b7aa54ef2ac839.tar.bz2 px4-firmware-4f20d9a24ba15cab4b8610b460b7aa54ef2ac839.zip |
Retire old test cases for drivers that have been removed.
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/configs/px4fmu/src/up_nsh.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/nuttx/configs/px4fmu/src/up_nsh.c b/nuttx/configs/px4fmu/src/up_nsh.c index 25f3c2795..af8253181 100644 --- a/nuttx/configs/px4fmu/src/up_nsh.c +++ b/nuttx/configs/px4fmu/src/up_nsh.c @@ -61,8 +61,6 @@ #include <arch/board/drv_tone_alarm.h> #include <arch/board/up_adc.h> #include <arch/board/board.h> -#include <arch/board/drv_bma180.h> -#include <arch/board/drv_l3gd20.h> #include <arch/board/drv_led.h> #include <arch/board/drv_eeprom.h> @@ -181,7 +179,7 @@ int nsh_archinitialize(void) return -ENODEV; } - // Setup 10 MHz clock (maximum rate the BMA180 can sustain) + // Default SPI1 to 1MHz and de-assert the known chip selects. SPI_SETFREQUENCY(spi1, 10000000); SPI_SETBITS(spi1, 8); SPI_SETMODE(spi1, SPIDEV_MODE3); @@ -192,33 +190,6 @@ int nsh_archinitialize(void) message("[boot] Successfully initialized SPI port 1\r\n"); - /* initialize SPI peripherals redundantly */ - int gyro_attempts = 0; - int gyro_fail = 0; - - while (gyro_attempts < 5) - { - gyro_fail = l3gd20_attach(spi1, PX4_SPIDEV_GYRO); - gyro_attempts++; - if (gyro_fail == 0) break; - up_udelay(1000); - } - - if (!gyro_fail) message("[boot] Found L3GD20 gyro\n"); - - int acc_attempts = 0; - int acc_fail = 0; - - while (acc_attempts < 5) - { - acc_fail = bma180_attach(spi1, PX4_SPIDEV_ACCEL); - acc_attempts++; - if (acc_fail == 0) break; - up_udelay(1000); - } - - if (!acc_fail) message("[boot] Found BMA180 accelerometer\n"); - /* initialize I2C2 bus */ i2c2 = up_i2cinitialize(2); |