Prusa MINI Firmware overview
fatfs.c File Reference

Code for fatfs applications. More...

#include "fatfs.h"

Functions

void MX_FATFS_Init (void)
 
DWORD get_fattime (void)
 Gets Time from RTC. More...
 

Variables

uint8_t retUSBH
 
char USBHPath [4]
 
FATFS USBHFatFS
 
FIL USBHFile
 

Detailed Description

Code for fatfs applications.

This notice applies to any and all portions of this file that are not between comment pairs USER CODE BEGIN and USER CODE END. Other portions of this file, whether inserted by the user or by software development tools are owned by their respective copyright owners.

Copyright (c) 2019 STMicroelectronics International N.V. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted, provided that the following conditions are met:

  1. Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of other contributors to this software may be used to endorse or promote products derived from this software without specific written permission.
  4. This software, including modifications and/or derivative works of this software, must execute solely and exclusively on microcontroller or microprocessor devices manufactured by or for STMicroelectronics.
  5. Redistribution and use of this software other than as permitted under this license is void and will automatically terminate your rights under this license.

THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ MX_FATFS_Init()

void MX_FATFS_Init ( void  )
60  {
61  /*## FatFS: Link the USBH driver ###########################*/
63 
64  /* USER CODE BEGIN Init */
65  /* additional user code for init */
66  /* USER CODE END Init */
67 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_fattime()

DWORD get_fattime ( void  )

Gets Time from RTC.

Parameters
None
Return values
Timein DWORD
74  {
75  /* USER CODE BEGIN get_fattime */
76  return 0;
77  /* USER CODE END get_fattime */
78 }

Variable Documentation

◆ retUSBH

uint8_t retUSBH

◆ USBHPath

char USBHPath[4]

◆ USBHFatFS

FATFS USBHFatFS

◆ USBHFile

FIL USBHFile
FATFS_LinkDriver
uint8_t FATFS_LinkDriver(const Diskio_drvTypeDef *drv, char *path)
Links a compatible diskio driver and increments the number of active linked drivers.
Definition: ff_gen_drv.c:98
retUSBH
uint8_t retUSBH
Definition: fatfs.c:51
USBH_Driver
const Diskio_drvTypeDef USBH_Driver
Definition: usbh_diskio.c:77
USBHPath
char USBHPath[4]
Definition: fatfs.c:52