diff --git a/src/bsp_sd.c b/src/bsp_sd.c index edb290e..24d4aaf 100644 --- a/src/bsp_sd.c +++ b/src/bsp_sd.c @@ -104,8 +104,10 @@ #define SD_BUS_WIDE SD_BUS_WIDE_4B #endif +/* BSP SD Public Variables */ +SD_HandleTypeDef uSdHandle; + /* BSP SD Private Variables */ -static SD_HandleTypeDef uSdHandle; static uint32_t SD_detect_ll_gpio_pin = LL_GPIO_PIN_ALL; static GPIO_TypeDef *SD_detect_gpio_port = GPIOA; static uint32_t SD_detect_level = SD_DETECT_LEVEL; diff --git a/src/bsp_sd.h b/src/bsp_sd.h index d75c2b9..536960a 100644 --- a/src/bsp_sd.h +++ b/src/bsp_sd.h @@ -167,6 +167,7 @@ typedef struct { } SD_PinName_t; extern SD_PinName_t SD_PinNames; +extern SD_HandleTypeDef uSdHandle; /* SD Exported Functions */ uint8_t BSP_SD_Init(void);