diff options
author | Ash Charles <ashcharles@gmail.com> | 2014-05-13 09:41:41 -0700 |
---|---|---|
committer | Ash Charles <ashcharles@gmail.com> | 2014-05-13 09:41:41 -0700 |
commit | e5508a1aa07fb4a0e76dfd077c5beaa114f21695 (patch) | |
tree | a7af9c3587c5eb57f70b3b5ce24f065b46605b6a /src/systemcmds/mtd | |
parent | 178a3e8567b3e721771fffcb8f32df140ad1038b (diff) | |
download | px4-firmware-e5508a1aa07fb4a0e76dfd077c5beaa114f21695.tar.gz px4-firmware-e5508a1aa07fb4a0e76dfd077c5beaa114f21695.tar.bz2 px4-firmware-e5508a1aa07fb4a0e76dfd077c5beaa114f21695.zip |
Add Gumstix AeroCore device
Based on the work of Andrew Smith [1], add board configuration and device
drivers to support the Gumstix AeroCore (previously Aerodroid) board [2]. The
AeroCore is an autopilot board based on a STM32F427 similar to the FMUv2.
[1] https://github.com/smithandrewc/Firmware
[2] https://store.gumstix.com/index.php/products/585/
Signed-off-by: Ash Charles <ashcharles@gmail.com>
Diffstat (limited to 'src/systemcmds/mtd')
-rw-r--r-- | src/systemcmds/mtd/mtd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemcmds/mtd/mtd.c b/src/systemcmds/mtd/mtd.c index 0a88d40f3..a57eaafe7 100644 --- a/src/systemcmds/mtd/mtd.c +++ b/src/systemcmds/mtd/mtd.c @@ -160,7 +160,11 @@ static void ramtron_attach(void) { /* find the right spi */ +#ifdef CONFIG_ARCH_BOARD_AEROCORE + struct spi_dev_s *spi = up_spiinitialize(4); +#else struct spi_dev_s *spi = up_spiinitialize(2); +#endif /* this resets the spi bus, set correct bus speed again */ SPI_SETFREQUENCY(spi, 10 * 1000 * 1000); SPI_SETBITS(spi, 8); |