[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_at_interface.c b/mbtk/libgsw_lib/gsw_at_interface.c
index 2d9cefd..6620d25 100755
--- a/mbtk/libgsw_lib/gsw_at_interface.c
+++ b/mbtk/libgsw_lib/gsw_at_interface.c
@@ -14,6 +14,8 @@
 #include <dlfcn.h>

 #include <stdbool.h>

 #include "gsw_at_interface.h"

+#include "gsw_hal_errcode.h"

+

 #ifndef LOG_ERR_LEVEL

 #define LOG_ERR_LEVEL  3      /* error conditions */

 #endif

@@ -101,9 +103,6 @@
         } \

         fun_ptr_log(LOG_ERR_LEVEL, "%s#%s: "GSW_AT"" fmt, ptr_1001 + 1, line_1001, ##args); \

     } while(0)

-    

-

-#define GSW_HAL_MEM_INVAILD -2 //表示入参地址为NULL

 

 #define OUT_MAX_SIZE 1024

 #define LINE __LINE__

@@ -346,7 +345,7 @@
     if (num != soc_max)

     {

         LOGE("temperture if not support,num is %d\n",num);

-        return GSW_HAL_FUNC_UNSUPPORT;

+        return GSW_HAL_SUCCESS;

     }

     if (NULL == temp)

     {