fatfs.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. ******************************************************************************
  3. * @file fatfs.c
  4. * @brief Code for fatfs applications
  5. ******************************************************************************
  6. * @attention
  7. *
  8. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  9. * All rights reserved.</center></h2>
  10. *
  11. * This software component is licensed by ST under Ultimate Liberty license
  12. * SLA0044, the "License"; You may not use this file except in compliance with
  13. * the License. You may obtain a copy of the License at:
  14. * www.st.com/SLA0044
  15. *
  16. ******************************************************************************
  17. */
  18. #include "fatfs.h"
  19. uint8_t retUSER; /* Return value for USER */
  20. char USERPath[4]; /* USER logical drive path */
  21. FATFS USERFatFS; /* File system object for USER logical drive */
  22. FIL USERFile; /* File object for USER */
  23. /* USER CODE BEGIN Variables */
  24. /* USER CODE END Variables */
  25. void MX_FATFS_Init(void) {
  26. /*## FatFS: Link the USER driver ###########################*/
  27. retUSER = FATFS_LinkDriver(&USER_Driver, USERPath);
  28. /* USER CODE BEGIN Init */
  29. /* additional user code for init */
  30. /* USER CODE END Init */
  31. }
  32. /**
  33. * @brief Gets Time from RTC
  34. * @param None
  35. * @retval Time in DWORD
  36. */
  37. DWORD get_fattime(void) {
  38. /* USER CODE BEGIN get_fattime */
  39. return 0;
  40. /* USER CODE END get_fattime */
  41. }
  42. /* USER CODE BEGIN Application */
  43. /* USER CODE END Application */
  44. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/