STM32H750VB_LCD/FATFS/Target/fatfs_platform.h

27 lines
1.3 KiB
C

/**
******************************************************************************
* @file : fatfs_platform.h
* @brief : fatfs_platform header file
******************************************************************************
* @attention
*
* <h2><center>&copy; 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
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"
/* Defines ------------------------------------------------------------------*/
#define SD_PRESENT ((uint8_t)0x01) /* also in bsp_driver_sd.h */
#define SD_NOT_PRESENT ((uint8_t)0x00) /* also in bsp_driver_sd.h */
#define SD_DETECT_PIN GPIO_PIN_13
#define SD_DETECT_GPIO_PORT GPIOC
/* Prototypes ---------------------------------------------------------------*/
uint8_t BSP_PlatformIsDetected(void);