From 37010a568e8b301e3d170d3541da37b239041718 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Mar 2019 10:27:56 +1100 Subject: [PATCH] HAL_ChibiOS: enable SDMMC on Pixhawk4Pro --- .../hwdef/Pixhawk4Pro/hwdef.dat | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4Pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4Pro/hwdef.dat index f54ba8980e..91ca89d525 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4Pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Pixhawk4Pro/hwdef.dat @@ -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"