source: S-port/trunk/FATFS/App/fatfs.c

Last change on this file was 1, checked in by AlexLir, 3 years ago
File size: 1.6 KB
Line 
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
19#include "fatfs.h"
20
21uint8_t retUSER; /* Return value for USER */
22char USERPath[4]; /* USER logical drive path */
23FATFS USERFatFS; /* File system object for USER logical drive */
24FIL USERFile; /* File object for USER */
25
26/* USER CODE BEGIN Variables */
27
28/* USER CODE END Variables */
29
30void 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 */
45DWORD 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****/
Note: See TracBrowser for help on using the repository browser.