Skip to content

Commit

Permalink
h7: sdmmc: add SDIO_USE_PULLUP option for config.h (betaflight#14147)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl authored Jan 13, 2025
1 parent 8966558 commit b7bd378
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/STM32/sdio_h7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ void sdioPinConfigure(void)

#undef SDIOFINDPIN

#if defined(USE_SDIO_PULLUP)
#define IOCFG_SDMMC IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_VERY_HIGH, GPIO_PULLUP)
#else
#define IOCFG_SDMMC IO_CONFIG(GPIO_MODE_AF_PP, GPIO_SPEED_FREQ_VERY_HIGH, GPIO_NOPULL)
#endif

void HAL_SD_MspInit(SD_HandleTypeDef* hsd)
{
Expand Down

0 comments on commit b7bd378

Please sign in to comment.