HAL_ChibiOS: enable SDMMC on Pixhawk4Pro

This commit is contained in:
Andrew Tridgell 2019-03-01 10:27:56 +11:00
parent e192bc6c10
commit 37010a568e

View File

@ -36,12 +36,6 @@ define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_FMUV5
define HAL_CHIBIOS_ARCH_FMUV5 1
define BOARD_TYPE_DEFAULT 24
# board voltage
STM32_VDD 330U
# flash size
FLASH_SIZE_KB 2048
# now we define the pins that USB is connected on
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
@ -285,12 +279,12 @@ SPIDEV external5m3 SPI6 DEVID2 EXT2_CS3 MODE3 2*MHZ 2*MHZ
# microSD support (disabled for now)
#PC8 SDMMC_D0 SDMMC1
#PC9 SDMMC_D1 SDMMC1
#PC10 SDMMC_D2 SDMMC1
#PC11 SDMMC_D3 SDMMC1
#PC12 SDMMC_CK SDMMC1
#PD2 SDMMC_CMD SDMMC1
PC8 SDMMC1_D0 SDMMC1
PC9 SDMMC1_D1 SDMMC1
PC10 SDMMC1_D2 SDMMC1
PC11 SDMMC1_D3 SDMMC1
PC12 SDMMC1_CK SDMMC1
PD2 SDMMC1_CMD SDMMC1
# red LED marked as B/E
PB1 LED_RED OUTPUT GPIO(90)
@ -320,7 +314,7 @@ define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
# enable FAT filesystem support (needs a microSD defined via SDMMC)
# define HAL_OS_FATFS_IO 1
define HAL_OS_FATFS_IO 1
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"