source: ctrl/firmware/Main/CubeMX/FATFS/Target/fatfs_platform.c

Last change on this file was 74, checked in by Zed, 3 months ago

FatFs? with DMA were implemented.

File size: 1.1 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3  ******************************************************************************
4  * @file           : fatfs_platform.c
5  * @brief          : fatfs_platform source file
6  ******************************************************************************
7  * @attention
8  *
9  * Copyright (c) 2025 STMicroelectronics.
10  * All rights reserved.
11  *
12  * This software is licensed under terms that can be found in the LICENSE file
13  * in the root directory of this software component.
14  * If no LICENSE file comes with this software, it is provided AS-IS.
15  *
16  ******************************************************************************
17*/
18/* USER CODE END Header */
19#include "fatfs_platform.h"
20
21uint8_t BSP_PlatformIsDetected(void) {
22    uint8_t status = SD_PRESENT;
23    /* Check SD card detect pin */
24    if(HAL_GPIO_ReadPin(SD_DETECT_GPIO_PORT, SD_DETECT_PIN) != GPIO_PIN_RESET)
25    {
26        status = SD_NOT_PRESENT;
27    }
28    /* USER CODE BEGIN 1 */
29    /* user code can be inserted here */
30    /* USER CODE END 1 */
31    return status;
32}
Note: See TracBrowser for help on using the repository browser.