[Feature][T108][system][task-view-1692]Merged gsw hal code
Only Configure: No
Affected branch: GSW_V1453
Affected module: libgsw
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no
Change-Id: I7fb669b6afc6e2f92a1e86ec8543498eb73120b4
diff --git a/mbtk/libgsw_lib/gsw_oem_rw_interface.c b/mbtk/libgsw_lib/gsw_oem_rw_interface.c
index 8d34023..2ca2382 100755
--- a/mbtk/libgsw_lib/gsw_oem_rw_interface.c
+++ b/mbtk/libgsw_lib/gsw_oem_rw_interface.c
@@ -261,3 +261,31 @@
//deinit_fun_handle();
return GSW_HAL_SUCCESS;
}
+/**
+ * @brief SDK interface to read data from spec page of flash
+ * @param [in] read data
+ * @param [in] size, it must be less than (64 * 4096 - 8)Byte
+ * @retval 0: success
+ * @retval other: fail
+ */
+int gsw_oem_read_data(void *data, unsigned int *len)
+{
+ int ret = 0;
+
+ return ret;
+}
+
+/**
+ * @brief SDK interface to write data to spec page of flash
+ * @param [in] write data
+ * @param [in] size, it must be less than (64 * 4096 - 8)Byte
+ * @retval 0: success
+ * @retval other: fail
+ */
+int gsw_oem_write_data(void *data, unsigned int len)
+{
+ int ret = 0;
+
+ return ret;
+}
+