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.

54 lines
1.4 KiB

9 months ago
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file fatfs.c
  5. * @brief Code 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. #include "fatfs.h"
  20. uint8_t retUSBH; /* Return value for USBH */
  21. char USBHPath[4]; /* USBH logical drive path */
  22. FATFS USBHFatFS; /* File system object for USBH logical drive */
  23. FIL USBHFile; /* File object for USBH */
  24. /* USER CODE BEGIN Variables */
  25. /* USER CODE END Variables */
  26. void MX_FATFS_Init(void)
  27. {
  28. /*## FatFS: Link the USBH driver ###########################*/
  29. retUSBH = FATFS_LinkDriver(&USBH_Driver, USBHPath);
  30. /* USER CODE BEGIN Init */
  31. /* additional user code for init */
  32. /* USER CODE END Init */
  33. }
  34. /**
  35. * @brief Gets Time from RTC
  36. * @param None
  37. * @retval Time in DWORD
  38. */
  39. DWORD get_fattime(void)
  40. {
  41. /* USER CODE BEGIN get_fattime */
  42. return 0;
  43. /* USER CODE END get_fattime */
  44. }
  45. /* USER CODE BEGIN Application */
  46. /* USER CODE END Application */