feat: KT mBMS 펌웨어 3종(HW1/2/3) 및 통합 빌드 환경 초기 커밋 (V4.0.0.1)

This commit is contained in:
2026-11-05 14:31:31 +09:00
commit c52dc2f348
10803 changed files with 4642514 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
#ifndef __EXFUNS_H
#define __EXFUNS_H
#include <stm32f4xx.h>
#include "ff.h"
/**
******************************************************************************
* @file STM32F4xx_IAP/src/exfuns.h
* @author MCD Application Team
* @version V1.0.0
* @date 10-October-2015
* @brief Main program body
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
******************************************************************************
*/
extern FATFS *fs[_VOLUMES];
extern FIL *file;
extern FIL *ftemp;
extern UINT br,bw;
extern FILINFO fileinfo;
extern DIR dir;
extern u8 *fatbuf;//SD card data buffer
//F_typetell returns the type definition
//Table FILE_TYPE_TBL access to. exfuns.c definition
#define T_BIN 0X00 //Bin file
#define T_LRC 0X10 //lrc file
#define T_NES 0X20 //nes file
#define T_TEXT 0X30 //.txt file
#define T_C 0X31 //.c file
#define T_H 0X32 //.h file
#define T_WAV 0X40 //WAV file
#define T_MP3 0X41 //MP3 file
#define T_APE 0X42 //APE file
#define T_FLAC 0X43 //FLAC file
#define T_BMP 0X50 //bmp file
#define T_JPG 0X51 //jpg file
#define T_JPEG 0X52 //jpeg file
#define T_GIF 0X53 //gif file
#define T_AVI 0X60 //avi file
u8 exfuns_init(void); //For the memory
u8 f_typetell(u8 *fname); //Identify the file type
u8 exf_getfree(u8 *drv,u32 *total,u32 *free); //Get the total disk capacity and remaining capacity
u32 exf_fdsize(u8 *fdname); //Get folder size
u8* exf_get_src_dname(u8* dpfn);
u8 exf_copy(u8(*fcpymsg)(u8*pname,u8 pct,u8 mode),u8 *psrc,u8 *pdst,u32 totsize,u32 cpdsize,u8 fwmode); //File replication
u8 exf_fdcopy(u8(*fcpymsg)(u8*pname,u8 pct,u8 mode),u8 *psrc,u8 *pdst,u32 *totsize,u32 *cpdsize,u8 fwmode);//Folder replication
#endif