schematic update using cube IDE
This commit is contained in:
31
STM32Cube/leo_muziekdoos/FATFS/Target/fatfs_platform.c
Normal file
31
STM32Cube/leo_muziekdoos/FATFS/Target/fatfs_platform.c
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : fatfs_platform.c
|
||||
* @brief : fatfs_platform source file
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright (c) 2021 STMicroelectronics.
|
||||
* All rights reserved.</center></h2>
|
||||
*
|
||||
* This software component is licensed by ST under Ultimate Liberty license
|
||||
* SLA0044, the "License"; You may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at:
|
||||
* www.st.com/SLA0044
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
#include "fatfs_platform.h"
|
||||
|
||||
uint8_t BSP_PlatformIsDetected(void) {
|
||||
uint8_t status = SD_PRESENT;
|
||||
/* Check SD card detect pin */
|
||||
if(HAL_GPIO_ReadPin(SD_DETECT_GPIO_PORT, SD_DETECT_PIN) != GPIO_PIN_RESET)
|
||||
{
|
||||
status = SD_NOT_PRESENT;
|
||||
}
|
||||
/* USER CODE BEGIN 1 */
|
||||
/* user code can be inserted here */
|
||||
/* USER CODE END 1 */
|
||||
return status;
|
||||
}
|
||||
Reference in New Issue
Block a user