Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
44:8ebe6b70f932
Parent:
43:28202405094d
Parent:
41:a924aa709b6f
Child:
45:b85384e7d825
--- a/include/d7a_fs.h	Tue Aug 30 16:59:12 2016 +0000
+++ b/include/d7a_fs.h	Tue Aug 30 17:15:31 2016 +0000
@@ -57,6 +57,7 @@
 #define FS_OP_NULL      0
 #define FS_OP_RD        1
 #define FS_OP_WR        4
+#define FS_OP_SYNC      6  // Write File Properties
 #define FS_OP_TOUCH     7  // Not in ALP but '7' is still in 'write' actions area
 #define FS_OP_STAT      16
 #define FS_OP_DSTAT     30 // Not in ALP: Variant of STAT for distant files
@@ -98,7 +99,6 @@
 #define FS_MEM_TYPE(t)      ((t)&0x0F)
 #define FS_COM_TYPE(t)      ((t)&0x30)
 #define FS_DISTANT_TYPE(t)  ((t)&0x70)
-#define FS_DISTANT_INFO(t)  ((t)&0xf0)
 
 enum {
     // Markers
@@ -109,11 +109,11 @@
         EEPROM  = 2,
         RAM     = 3,
         OTP     = 4,
-        UNKNOWN = 0xF,
+        UNKNOWN = 0x0F,
         // PSRAM
         // DDR
         // ...etc
-    // COM Type for 'distant' files
+
         FS_COM_UART    = (0<<4),
         FS_COM_SPI     = (1<<4),
         FS_COM_I2C     = (2<<4),
@@ -130,6 +130,7 @@
         HOST    = FS_TYPE_DISTANT + FS_COM_UART, // Common Alias for FS_DISTANT_TYPE(t) usage
 };
 
+
 // D7AactP "trigger" TODO: is it really applicable ?
 enum { LIST=0, READ, WRITE, WRITE_FLUSH};
 
@@ -140,7 +141,6 @@
         ASSERT(status == FS_STAT_OK, "Read file error %d (FID:%d OFF:%d LEN:%d)\r\n", status, (fid), (offset), (len));\
     } while(0);
 
-
 void d7a_fs_open(const d7a_fs_callbacks_t* config);
 void d7a_fs_new_pkt(d7a_com_rx_msg_t* pkt);
 d7a_com_rx_msg_t* d7a_fs_wait_pkt( uint32_t millisec = osWaitForever );