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.

fatfs.c 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. ******************************************************************************
  3. * @file fatfs.c
  4. * @brief Code for fatfs applications
  5. ******************************************************************************
  6. * @attention
  7. *
  8. * <h2><center>&copy; Copyright (c) 2021 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. {
  27. /*## FatFS: Link the USER driver ###########################*/
  28. retUSER = FATFS_LinkDriver(&USER_Driver, USERPath);
  29. /* USER CODE BEGIN Init */
  30. /* additional user code for init */
  31. /* USER CODE END Init */
  32. }
  33. /**
  34. * @brief Gets Time from RTC
  35. * @param None
  36. * @retval Time in DWORD
  37. */
  38. DWORD get_fattime(void)
  39. {
  40. /* USER CODE BEGIN get_fattime */
  41. return 0;
  42. /* USER CODE END get_fattime */
  43. }
  44. /* USER CODE BEGIN Application */
  45. /* USER CODE END Application */
  46. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/