Prusa MINI Firmware overview
fatfs.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file fatfs.h
4  * @brief Header for fatfs applications
5  ******************************************************************************
6  * This notice applies to any and all portions of this file
7  * that are not between comment pairs USER CODE BEGIN and
8  * USER CODE END. Other portions of this file, whether
9  * inserted by the user or by software development tools
10  * are owned by their respective copyright owners.
11  *
12  * Copyright (c) 2019 STMicroelectronics International N.V.
13  * All rights reserved.
14  *
15  * Redistribution and use in source and binary forms, with or without
16  * modification, are permitted, provided that the following conditions are met:
17  *
18  * 1. Redistribution of source code must retain the above copyright notice,
19  * this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright notice,
21  * this list of conditions and the following disclaimer in the documentation
22  * and/or other materials provided with the distribution.
23  * 3. Neither the name of STMicroelectronics nor the names of other
24  * contributors to this software may be used to endorse or promote products
25  * derived from this software without specific written permission.
26  * 4. This software, including modifications and/or derivative works of this
27  * software, must execute solely and exclusively on microcontroller or
28  * microprocessor devices manufactured by or for STMicroelectronics.
29  * 5. Redistribution and use of this software other than as permitted under
30  * this license is void and will automatically terminate your rights under
31  * this license.
32  *
33  * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
34  * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
35  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
36  * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
37  * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
38  * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
41  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
42  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
43  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
44  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45  *
46  ******************************************************************************
47  */
48 
49 /* Define to prevent recursive inclusion -------------------------------------*/
50 #ifndef __fatfs_H
51  #define __fatfs_H
52  #ifdef __cplusplus
53 extern "C" {
54  #endif
55 
56  #include "ff.h"
57  #include "ff_gen_drv.h"
58  #include "usbh_diskio.h" /* defines USBH_Driver as external */
59 
60 /* USER CODE BEGIN Includes */
61 
62 /* USER CODE END Includes */
63 
64 extern uint8_t retUSBH; /* Return value for USBH */
65 extern char USBHPath[4]; /* USBH logical drive path */
66 extern FATFS USBHFatFS; /* File system object for USBH logical drive */
67 extern FIL USBHFile; /* File object for USBH */
68 
69 void MX_FATFS_Init(void);
70 
71  /* USER CODE BEGIN Prototypes */
72 
73  /* USER CODE END Prototypes */
74  #ifdef __cplusplus
75 }
76  #endif
77 #endif /*__fatfs_H */
78 
79 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
FIL
Definition: ff.h:155
USBHFile
FIL USBHFile
Definition: fatfs.c:54
FATFS
Definition: ff.h:85
USBHFatFS
FATFS USBHFatFS
Definition: fatfs.c:53
ff_gen_drv.h
Header for ff_gen_drv.c module.
ff.h
uint8_t
const uint8_t[]
Definition: 404_html.c:3
usbh_diskio.h
Header for usbh_diskio.c module.
MX_FATFS_Init
void MX_FATFS_Init(void)
Definition: fatfs.c:60
USBHPath
char USBHPath[4]
Definition: fatfs.c:52
retUSBH
uint8_t retUSBH
Definition: fatfs.c:51