[74] | 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 | |
---|
[90] | 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 | |
---|
[94] | 39 | #define __PLACE_IN_NONCACHABLE_RAM_FOR_DMA_TRANSFERS__ __attribute__((section(".AXI_RAM_4_DMA"))) |
---|
| 40 | |
---|
[74] | 41 | /* USER CODE END Includes */ |
---|
| 42 | |
---|
[91] | 43 | extern uint8_t retSD; /* Return value for SD */ |
---|
| 44 | extern char SDPath[4]; /* SD logical drive path */ |
---|
| 45 | extern FATFS SDFatFS; /* File system object for SD logical drive */ |
---|
| 46 | extern FIL SDFile; /* File object for SD */ |
---|
[74] | 47 | |
---|
| 48 | void MX_FATFS_Init(void); |
---|
| 49 | |
---|
| 50 | /* USER CODE BEGIN Prototypes */ |
---|
| 51 | |
---|
| 52 | /* USER CODE END Prototypes */ |
---|
| 53 | #ifdef __cplusplus |
---|
| 54 | } |
---|
| 55 | #endif |
---|
| 56 | #endif /*__fatfs_H */ |
---|