<tdclass="cellrowborder"valign="top"width="14.78%"headers="mcps1.2.5.1.2 "><pid="p668274310317"><aname="p668274310317"></a><aname="p668274310317"></a>LiteOS-M and LiteOS-A platforms</p>
<tdclass="cellrowborder"valign="top"width="14.78%"headers="mcps1.2.5.1.2 "><pid="p668274310317"><aname="p668274310317"></a><aname="p668274310317"></a>LiteOS Cortex-M and LiteOS Cortex-A</p>
</td>
<tdclass="cellrowborder"valign="top"width="32.22%"headers="mcps1.2.5.1.3 "><pid="p193638017460"><aname="p193638017460"></a><aname="p193638017460"></a>Provides KV storage for applications.</p>
</td>
...
...
@@ -70,7 +70,7 @@ The Utils library is developed using the C language.
<tdclass="cellrowborder"valign="top"width="32.22%"headers="mcps1.2.5.1.3 "><pid="p113646084618"><aname="p113646084618"></a><aname="p113646084618"></a>Provides unified file operation interfaces that can be used on different underlying chip components.</p>
</td>
...
...
@@ -79,7 +79,7 @@ The Utils library is developed using the C language.
<tdclass="cellrowborder"valign="top"width="14.78%"headers="mcps1.2.5.1.2 "><pid="p1912957139"><aname="p1912957139"></a><aname="p1912957139"></a>LiteOS-M and LiteOS-A platforms</p>
<tdclass="cellrowborder"valign="top"width="14.78%"headers="mcps1.2.5.1.2 "><pid="p5406226171912"><aname="p5406226171912"></a><aname="p5406226171912"></a>LiteOS Cortex-M and LiteOS Cortex-A</p>
</td>
<tdclass="cellrowborder"valign="top"width="32.22%"headers="mcps1.2.5.1.3 "><pid="p15364170194610"><aname="p15364170194610"></a><aname="p15364170194610"></a>Provides unified timer operation interfaces that can be used on different underlying chip components.</p>
</td>
...
...
@@ -88,7 +88,7 @@ The Utils library is developed using the C language.
<tdclass="cellrowborder"valign="top"width="32.22%"headers="mcps1.2.5.1.3 "><pid="p4822295710"><aname="p4822295710"></a><aname="p4822295710"></a>Provides the capability of performing operations for peripherals.</p>
</td>
...
...
@@ -101,12 +101,12 @@ The Utils library is developed using the C language.
-**KV store**
Obtaining an interface
```
Obtaining an interface
char key1[] = "rw.sys.version";
char value1[32] = {0};
int ret = UtilsGetValue(key1, value1, 32);
Setting the interface
char key14[] = "key_14";
ret = UtilsSetValue(key14, defValue);
...
...
@@ -121,10 +121,12 @@ The Utils library is developed using the C language.
printf("file handle = %d\n", fd);
int ret = UtilsFileWrite(fd, def, strlen(def));
printf("write ret = %d\n", ret);
// stat
int fileLen = 0;
ret = UtilsFileStat(fileName, &fileLen);
printf("file size = %d\n", fileLen);
// seek
int fd1 = UtilsFileOpen(fileName, O_RDWR_FS, 0);
ret = UtilsFileSeek(fd1, 5, SEEK_SET_FS);
...
...
@@ -133,6 +135,7 @@ The Utils library is developed using the C language.
int readLen = UtilsFileRead(fd1, buf, 32);
ret = UtilsFileClose(fd1);
printf("read len = %d : buf = %s\n", readLen, buf);