[1] | 1 | /**
|
---|
| 2 | ******************************************************************************
|
---|
| 3 | * @file fatfs.c
|
---|
| 4 | * @brief Code for fatfs applications
|
---|
| 5 | ******************************************************************************
|
---|
| 6 | * @attention
|
---|
| 7 | *
|
---|
| 8 | * <h2><center>© 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 |
|
---|
| 19 | #include "fatfs.h"
|
---|
| 20 |
|
---|
| 21 | uint8_t retUSER; /* Return value for USER */
|
---|
| 22 | char USERPath[4]; /* USER logical drive path */
|
---|
| 23 | FATFS USERFatFS; /* File system object for USER logical drive */
|
---|
| 24 | FIL USERFile; /* File object for USER */
|
---|
| 25 |
|
---|
| 26 | /* USER CODE BEGIN Variables */
|
---|
| 27 |
|
---|
| 28 | /* USER CODE END Variables */
|
---|
| 29 |
|
---|
| 30 | void MX_FATFS_Init(void)
|
---|
| 31 | {
|
---|
| 32 | /*## FatFS: Link the USER driver ###########################*/
|
---|
| 33 | retUSER = FATFS_LinkDriver(&USER_Driver, USERPath);
|
---|
| 34 |
|
---|
| 35 | /* USER CODE BEGIN Init */
|
---|
| 36 | /* additional user code for init */
|
---|
| 37 | /* USER CODE END Init */
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | /**
|
---|
| 41 | * @brief Gets Time from RTC
|
---|
| 42 | * @param None
|
---|
| 43 | * @retval Time in DWORD
|
---|
| 44 | */
|
---|
| 45 | DWORD get_fattime(void)
|
---|
| 46 | {
|
---|
| 47 | /* USER CODE BEGIN get_fattime */
|
---|
| 48 | return 0;
|
---|
| 49 | /* USER CODE END get_fattime */
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | /* USER CODE BEGIN Application */
|
---|
| 53 |
|
---|
| 54 | /* USER CODE END Application */
|
---|
| 55 |
|
---|
| 56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
---|