1 | /* USER CODE BEGIN Header */ |
---|
2 | /** |
---|
3 | ****************************************************************************** |
---|
4 | * @file fatfs.h |
---|
5 | * @brief Header for fatfs applications |
---|
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 | /* Define to prevent recursive inclusion -------------------------------------*/ |
---|
20 | #ifndef __fatfs_H |
---|
21 | #define __fatfs_H |
---|
22 | #ifdef __cplusplus |
---|
23 | extern "C" { |
---|
24 | #endif |
---|
25 | |
---|
26 | #include "ff.h" |
---|
27 | #include "ff_gen_drv.h" |
---|
28 | #include "sd_diskio.h" /* defines SD_Driver as external */ |
---|
29 | |
---|
30 | /* USER CODE BEGIN Includes */ |
---|
31 | |
---|
32 | #include "eeprom_diskio.h" /* defines USER_Driver as external */ |
---|
33 | |
---|
34 | extern uint8_t retEEPROM; /* Return value for USER */ |
---|
35 | extern char EEPROMPath[4]; /* USER logical drive path */ |
---|
36 | extern FATFS EEPROMFatFS; /* File system object for USER logical drive */ |
---|
37 | extern FIL EEPROMFile; /* File object for USER */ |
---|
38 | |
---|
39 | /* USER CODE END Includes */ |
---|
40 | |
---|
41 | extern uint8_t retSD; /* Return value for SD */ |
---|
42 | extern char SDPath[4]; /* SD logical drive path */ |
---|
43 | extern FATFS SDFatFS; /* File system object for SD logical drive */ |
---|
44 | extern FIL SDFile; /* File object for SD */ |
---|
45 | |
---|
46 | void MX_FATFS_Init(void); |
---|
47 | |
---|
48 | /* USER CODE BEGIN Prototypes */ |
---|
49 | |
---|
50 | /* USER CODE END Prototypes */ |
---|
51 | #ifdef __cplusplus |
---|
52 | } |
---|
53 | #endif |
---|
54 | #endif /*__fatfs_H */ |
---|