You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

9 months ago
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file fatfs.h
  5. * @brief Header for fatfs applications
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2024 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. #include "ff.h"
  26. #include "ff_gen_drv.h"
  27. #include "usbh_diskio.h" /* defines USBH_Driver as external */
  28. /* USER CODE BEGIN Includes */
  29. /* USER CODE END Includes */
  30. extern uint8_t retUSBH; /* Return value for USBH */
  31. extern char USBHPath[4]; /* USBH logical drive path */
  32. extern FATFS USBHFatFS; /* File system object for USBH logical drive */
  33. extern FIL USBHFile; /* File object for USBH */
  34. void MX_FATFS_Init(void);
  35. /* USER CODE BEGIN Prototypes */
  36. /* USER CODE END Prototypes */
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /*__fatfs_H */