This commit is contained in:
hathach committed 2017-01-17 15:25:04 +07:00
1 parent 5885868343
commit 42a4c9f821
3 files changed
+5 -7

No files matched your search

@@ -47,8 +47,7 @@ void setup() {
}else
{
Serial.print("Open " FILENAME " file to write ... ");
const char *data = "thach dep trai";
if( 0 == fs_open(FILENAME, FS_ACCESS_WRITE, &file) )
{
Serial.println("OK");
+2 -3
View File
@@ -1,7 +1,7 @@
/**************************************************************************/
/*!
@file adafruit_placeholder.h
@author ktown
@file nffs_lib.h
@author hathach
@section LICENSE
@@ -38,7 +38,6 @@
#define _NFFS_LIB_H_
#include "nffs/nffs.h"
#include "fs/fs.h"
#include "fs/fsutil.h"
#endif /* _NFFS_LIB_H_ */
+2 -2
View File
@@ -54,9 +54,9 @@ typedef uint32_t os_stack_t;
(OS_ALIGN((__nmemb), OS_STACK_ALIGNMENT))
/* Enter a critical section, save processor state, and block interrupts */
#define OS_ENTER_CRITICAL(__os_sr) portENTER_CRITICAL()
#define OS_ENTER_CRITICAL(__os_sr) ({ (void) __os_sr; portENTER_CRITICAL(); })
/* Exit a critical section, restore processor state and unblock interrupts */
#define OS_EXIT_CRITICAL(__os_sr) portEXIT_CRITICAL()
#define OS_EXIT_CRITICAL(__os_sr) ({ (void) __os_sr; portEXIT_CRITICAL(); })
#if 0
#define OS_ASSERT_CRITICAL() (assert(os_arch_in_critical()))