fs.c
25 lines
| 487 B
| text/x-c
|
CLexer
r55 | #include <stdint.h> | |||
#include <streamdevices.h> | ||||
#include <stdio.h> | ||||
#include <bsp.h> | ||||
const int32_t __max_opened_files__ = __MAX_OPENED_FILES__; | ||||
__IO streamdevice* __opnfiles__[__MAX_OPENED_FILES__]; | ||||
const int32_t __fs_root_size__ = __FS_ROOT_SIZE__; | ||||
int32_t __fs_root__[__FS_ROOT_SIZE__]; | ||||
/* | ||||
void __init_fs() | ||||
{ | ||||
int i=0; | ||||
for(i=0;i<__fs_root_size__;i++) | ||||
{ | ||||
__fs_root__[i]=(int32_t)NULL; | ||||
} | ||||
for(i=0;i<__max_opened_files__ ;i++) | ||||
{ | ||||
__opnfiles__[i]._stream=NULL; | ||||
} | ||||
} | ||||
*/ | ||||