Testing: SDIO stuff deactivated until implemented
- Goes into error handling
This commit is contained in:
+9
-9
@@ -350,16 +350,16 @@ static void MX_SDIO_SD_Init(void)
|
||||
hsd.Init.BusWide = SDIO_BUS_WIDE_1B;
|
||||
hsd.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
|
||||
hsd.Init.ClockDiv = 0;
|
||||
if (HAL_SD_Init(&hsd) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
}
|
||||
if (HAL_SD_ConfigWideBusOperation(&hsd, SDIO_BUS_WIDE_4B) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
}
|
||||
//if (HAL_SD_Init(&hsd) != HAL_OK)
|
||||
//{
|
||||
// Error_Handler();
|
||||
//}
|
||||
//if (HAL_SD_ConfigWideBusOperation(&hsd, SDIO_BUS_WIDE_4B) != HAL_OK)
|
||||
//{
|
||||
// Error_Handler();
|
||||
//}
|
||||
/* USER CODE BEGIN SDIO_Init 2 */
|
||||
DEBUG_PRINT("SDIO initialized!\r\n");
|
||||
//DEBUG_PRINT("SDIO initialized!\r\n");
|
||||
/* USER CODE END SDIO_Init 2 */
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user