📄 fs_finit.c
字号:
/*----------------------------------------------------------------------------
* R T L - F l a s h F i l e S y s t e m
*----------------------------------------------------------------------------
* Name: FS_FINIT.C
* Purpose: Flash File System Init Function
* Rev.: V3.22
*----------------------------------------------------------------------------
* This code is part of the RealView Run-Time Library.
* Copyright (c) 2004-2008 KEIL - An ARM Company. All rights reserved.
*---------------------------------------------------------------------------*/
#include "File_Config.h"
extern U32 const _BASE_ADR;
extern U32 const _CPU_CLK;
/*--------------------------- fs_init ---------------------------------------*/
int finit (void) {
/* Initialize the Flash File System. */
int res;
res = fs_Init (_BASE_ADR, _CPU_CLK) << 8;
res |= fs_spi_Init () << 16;
res |= fat_init ();
return (res);
}
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -