aboutsummaryrefslogtreecommitdiff
path: root/nuttx-configs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-01-29 21:26:28 +1100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-29 13:17:24 +0100
commit6b709e21d3aa5e88458b4f3319a39b4abbadc085 (patch)
treed8b23a3c6d724cfefd859e9090b8b691240df7b9 /nuttx-configs
parentc801446088382099df2a65b65391175a0baef434 (diff)
downloadpx4-firmware-6b709e21d3aa5e88458b4f3319a39b4abbadc085.tar.gz
px4-firmware-6b709e21d3aa5e88458b4f3319a39b4abbadc085.tar.bz2
px4-firmware-6b709e21d3aa5e88458b4f3319a39b4abbadc085.zip
FMUv2: set SPI GPIO pins on bus 1 to 50MHz
this solves the ms5611 issue related to temperature. We now need to test if it is OK with all sensors
Diffstat (limited to 'nuttx-configs')
-rwxr-xr-xnuttx-configs/px4fmu-v2/include/board.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx-configs/px4fmu-v2/include/board.h b/nuttx-configs/px4fmu-v2/include/board.h
index 507df70a2..c6c771491 100755
--- a/nuttx-configs/px4fmu-v2/include/board.h
+++ b/nuttx-configs/px4fmu-v2/include/board.h
@@ -260,9 +260,9 @@
*
* There are sensors on SPI1, and SPI2 is connected to the FRAM.
*/
-#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1
-#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1
-#define GPIO_SPI1_SCK GPIO_SPI1_SCK_1
+#define GPIO_SPI1_MISO (GPIO_SPI1_MISO_1|GPIO_SPEED_50MHz)
+#define GPIO_SPI1_MOSI (GPIO_SPI1_MOSI_1|GPIO_SPEED_50MHz)
+#define GPIO_SPI1_SCK (GPIO_SPI1_SCK_1|GPIO_SPEED_50MHz)
#define GPIO_SPI2_MISO GPIO_SPI2_MISO_1
#define GPIO_SPI2_MOSI GPIO_SPI2_MOSI_1