Prusa MINI Firmware overview
ffconf.h File Reference
#include "main.h"
#include "stm32f4xx_hal.h"
#include "cmsis_os.h"
#include "usbh_core.h"
#include "usbh_msc.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define _FFCONF   68300 /* Revision ID */
 
#define hUSB_Host   hUsbHostHS
 
#define _FS_READONLY   0 /* 0:Read/Write or 1:Read only */
 
#define _FS_MINIMIZE   0 /* 0 to 3 */
 
#define _USE_STRFUNC   2 /* 0:Disable or 1-2:Enable */
 
#define _USE_FIND   1
 
#define _USE_MKFS   1
 
#define _USE_FASTSEEK   1
 
#define _USE_EXPAND   0
 
#define _USE_CHMOD   0
 
#define _USE_LABEL   0
 
#define _USE_FORWARD   0
 
#define _CODE_PAGE   850
 
#define _USE_LFN   2 /* 0 to 3 */
 
#define _MAX_LFN   (96 + 1 + 5 + 1)
 
#define _LFN_UNICODE   0 /* 0:ANSI/OEM or 1:Unicode */
 
#define _STRF_ENCODE   3
 
#define _FS_RPATH   2 /* 0 to 2 */
 
#define _VOLUMES   1
 
#define _STR_VOLUME_ID   0 /* 0:Use only 0-9 for drive ID, 1:Use strings for drive ID */
 
#define _VOLUME_STRS   "RAM", "NAND", "CF", "SD1", "SD2", "USB1", "USB2", "USB3"
 
#define _MULTI_PARTITION   0 /* 0:Single partition, 1:Multiple partition */
 
#define _MIN_SS   512 /* 512, 1024, 2048 or 4096 */
 
#define _MAX_SS   512 /* 512, 1024, 2048 or 4096 */
 
#define _USE_TRIM   0
 
#define _FS_NOFSINFO   0 /* 0,1,2 or 3 */
 
#define _FS_TINY   0 /* 0:Normal or 1:Tiny */
 
#define _FS_EXFAT   0
 
#define _FS_NORTC   0
 
#define _NORTC_MON   6
 
#define _NORTC_MDAY   4
 
#define _NORTC_YEAR   2015
 
#define _FS_LOCK   6 /* 0:Disable or >=1:Enable */
 
#define _FS_REENTRANT   1 /* 0:Disable or 1:Enable */
 
#define _FS_TIMEOUT   1000 /* Timeout period in unit of time ticks */
 
#define _SYNC_t   osSemaphoreId
 
#define ff_malloc   malloc
 
#define ff_free   free
 

Macro Definition Documentation

◆ _FFCONF

#define _FFCONF   68300 /* Revision ID */

FatFs - Generic FAT file system module R0.12c (C)ChaN, 2017

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.

◆ hUSB_Host

#define hUSB_Host   hUsbHostHS

◆ _FS_READONLY

#define _FS_READONLY   0 /* 0:Read/Write or 1:Read only */

◆ _FS_MINIMIZE

#define _FS_MINIMIZE   0 /* 0 to 3 */

◆ _USE_STRFUNC

#define _USE_STRFUNC   2 /* 0:Disable or 1-2:Enable */

◆ _USE_FIND

#define _USE_FIND   1

◆ _USE_MKFS

#define _USE_MKFS   1

◆ _USE_FASTSEEK

#define _USE_FASTSEEK   1

◆ _USE_EXPAND

#define _USE_EXPAND   0

◆ _USE_CHMOD

#define _USE_CHMOD   0

◆ _USE_LABEL

#define _USE_LABEL   0

◆ _USE_FORWARD

#define _USE_FORWARD   0

◆ _CODE_PAGE

#define _CODE_PAGE   850

◆ _USE_LFN

#define _USE_LFN   2 /* 0 to 3 */

◆ _MAX_LFN

#define _MAX_LFN   (96 + 1 + 5 + 1)

◆ _LFN_UNICODE

#define _LFN_UNICODE   0 /* 0:ANSI/OEM or 1:Unicode */

◆ _STRF_ENCODE

#define _STRF_ENCODE   3

◆ _FS_RPATH

#define _FS_RPATH   2 /* 0 to 2 */

◆ _VOLUMES

#define _VOLUMES   1

◆ _STR_VOLUME_ID

#define _STR_VOLUME_ID   0 /* 0:Use only 0-9 for drive ID, 1:Use strings for drive ID */

◆ _VOLUME_STRS

#define _VOLUME_STRS   "RAM", "NAND", "CF", "SD1", "SD2", "USB1", "USB2", "USB3"

◆ _MULTI_PARTITION

#define _MULTI_PARTITION   0 /* 0:Single partition, 1:Multiple partition */

◆ _MIN_SS

#define _MIN_SS   512 /* 512, 1024, 2048 or 4096 */

◆ _MAX_SS

#define _MAX_SS   512 /* 512, 1024, 2048 or 4096 */

◆ _USE_TRIM

#define _USE_TRIM   0

◆ _FS_NOFSINFO

#define _FS_NOFSINFO   0 /* 0,1,2 or 3 */

◆ _FS_TINY

#define _FS_TINY   0 /* 0:Normal or 1:Tiny */

◆ _FS_EXFAT

#define _FS_EXFAT   0

◆ _FS_NORTC

#define _FS_NORTC   0

◆ _NORTC_MON

#define _NORTC_MON   6

◆ _NORTC_MDAY

#define _NORTC_MDAY   4

◆ _NORTC_YEAR

#define _NORTC_YEAR   2015

◆ _FS_LOCK

#define _FS_LOCK   6 /* 0:Disable or >=1:Enable */

◆ _FS_REENTRANT

#define _FS_REENTRANT   1 /* 0:Disable or 1:Enable */

◆ _FS_TIMEOUT

#define _FS_TIMEOUT   1000 /* Timeout period in unit of time ticks */

◆ _SYNC_t

#define _SYNC_t   osSemaphoreId

◆ ff_malloc

#define ff_malloc   malloc

◆ ff_free

#define ff_free   free