aboutsummaryrefslogtreecommitdiff
path: root/nuttx-configs
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-05-27 17:51:00 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-05-28 10:49:12 +0200
commite1309f239104a7493b40bebc5da3aa1e7572bd09 (patch)
tree3ce74dff0cf21a64e556b46038310e31b1562bb4 /nuttx-configs
parent366e9c633d7d37894ab71d46951605ebe951c062 (diff)
downloadpx4-firmware-e1309f239104a7493b40bebc5da3aa1e7572bd09.tar.gz
px4-firmware-e1309f239104a7493b40bebc5da3aa1e7572bd09.tar.bz2
px4-firmware-e1309f239104a7493b40bebc5da3aa1e7572bd09.zip
Enable SPI4 for FMUv2
Diffstat (limited to 'nuttx-configs')
-rwxr-xr-xnuttx-configs/px4fmu-v2/include/board.h4
-rw-r--r--nuttx-configs/px4fmu-v2/nsh/defconfig2
2 files changed, 5 insertions, 1 deletions
diff --git a/nuttx-configs/px4fmu-v2/include/board.h b/nuttx-configs/px4fmu-v2/include/board.h
index 3bede8a1f..3b3c6fa70 100755
--- a/nuttx-configs/px4fmu-v2/include/board.h
+++ b/nuttx-configs/px4fmu-v2/include/board.h
@@ -268,6 +268,10 @@
#define GPIO_SPI2_MOSI (GPIO_SPI2_MOSI_1|GPIO_SPEED_50MHz)
#define GPIO_SPI2_SCK (GPIO_SPI2_SCK_2|GPIO_SPEED_50MHz)
+#define GPIO_SPI4_MISO (GPIO_SPI4_MISO_1|GPIO_SPEED_50MHz)
+#define GPIO_SPI4_MOSI (GPIO_SPI4_MOSI_1|GPIO_SPEED_50MHz)
+#define GPIO_SPI4_SCK (GPIO_SPI4_SCK_1|GPIO_SPEED_50MHz)
+
/************************************************************************************
* Public Data
************************************************************************************/
diff --git a/nuttx-configs/px4fmu-v2/nsh/defconfig b/nuttx-configs/px4fmu-v2/nsh/defconfig
index a982040c6..7d5e6e9df 100644
--- a/nuttx-configs/px4fmu-v2/nsh/defconfig
+++ b/nuttx-configs/px4fmu-v2/nsh/defconfig
@@ -235,7 +235,7 @@ CONFIG_STM32_SDIO=y
CONFIG_STM32_SPI1=y
CONFIG_STM32_SPI2=y
# CONFIG_STM32_SPI3 is not set
-# CONFIG_STM32_SPI4 is not set
+CONFIG_STM32_SPI4=y
# CONFIG_STM32_SPI5 is not set
# CONFIG_STM32_SPI6 is not set
CONFIG_STM32_SYSCFG=y