68 lines
2.1 KiB
C
68 lines
2.1 KiB
C
/* USER CODE BEGIN Header */
|
|
/**
|
|
******************************************************************************
|
|
* @file app_fatfs.h
|
|
* @brief Header for fatfs applications
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2024 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
/* USER CODE END Header */
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __APP_FATFS_H
|
|
#define __APP_FATFS_H
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "ff.h"
|
|
#include "ff_gen_drv.h"
|
|
#include "user_diskio.h" /* defines USER_Driver as external */
|
|
|
|
/* Private includes ----------------------------------------------------------*/
|
|
/* USER CODE BEGIN Includes */
|
|
|
|
/* USER CODE END Includes */
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN ET */
|
|
|
|
/* USER CODE END ET */
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* USER CODE BEGIN EC */
|
|
|
|
/* USER CODE END EC */
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN EM */
|
|
|
|
/* USER CODE END EM */
|
|
|
|
/* Exported functions prototypes ---------------------------------------------*/
|
|
int32_t MX_FATFS_Init(void);
|
|
int32_t MX_FATFS_Process(void);
|
|
/* USER CODE BEGIN EFP */
|
|
|
|
/* USER CODE END EFP */
|
|
|
|
/* Private defines -----------------------------------------------------------*/
|
|
/* USER CODE BEGIN Private defines */
|
|
#define APP_OK 0
|
|
#define APP_ERROR -1
|
|
#define APP_SD_UNPLUGGED -2
|
|
/* USER CODE END Private defines */
|
|
|
|
extern FATFS USERFatFs; /* File system object for USER logical drive */
|
|
extern FIL USERFile; /* File object for USER */
|
|
extern char USERPath[4]; /* USER logical drive path */
|
|
|
|
#endif /*__APP_FATFS_H */
|