static byte InitCmd(const CLS1_ConstStdIOType *io) { uffs_SetupDebugOutputCLS(io); MSGLN("initializing UFFS"); my_init_filesystem(); return ERR_OK; }
/* application entry */ int main() { my_init_filesystem(); // ... my application codes .... // read/write/create/delete files ... uffs_ReleaseMountTable(); return 0; }
/* application entry */ int main() { uffs_SetupDebugOutput(); // setup debug output as early as possible my_init_filesystem(); // ... my application codes .... // read/write/create/delete files ... my_release_filesystem(); return 0; }