diff --git a/platforms/nuttx/nuttx-configs/px4fmu-v5/include/board.h b/platforms/nuttx/nuttx-configs/px4fmu-v5/include/board.h index c3ac4071ff33..79b2ee955ee1 100755 --- a/platforms/nuttx/nuttx-configs/px4fmu-v5/include/board.h +++ b/platforms/nuttx/nuttx-configs/px4fmu-v5/include/board.h @@ -225,7 +225,7 @@ * DMA OFF: SDMMCCLK=48MHz, SDMMC_CK=SDMMCCLK/(2+2)=12 MHz */ -#ifdef CONFIG_STM32_SDIO_DMA +#ifdef CONFIG_STM32F7_SDMMC_DMA # define STM32_SDMMC_MMCXFR_CLKDIV (1 << STM32_SDMMC_CLKCR_CLKDIV_SHIFT) #else # define STM32_SDMMC_MMCXFR_CLKDIV (2 << STM32_SDMMC_CLKCR_CLKDIV_SHIFT) @@ -236,7 +236,7 @@ */ //TODO #warning "Check Freq for 24mHz" -#ifdef CONFIG_STM32_SDIO_DMA +#ifdef CONFIG_STM32F7_SDMMC_DMA # define STM32_SDMMC_SDXFR_CLKDIV (1 << STM32_SDMMC_CLKCR_CLKDIV_SHIFT) #else # define STM32_SDMMC_SDXFR_CLKDIV (2 << STM32_SDMMC_CLKCR_CLKDIV_SHIFT)