Fix mbtk from v1265 GSW

Change-Id: I5d8d395616f284bc74c8b9448cfa347164b5a668
diff --git a/mbtk/include/gsw/gsw_hal_errcode.h b/mbtk/include/gsw/gsw_hal_errcode.h
new file mode 100755
index 0000000..7eafd24
--- /dev/null
+++ b/mbtk/include/gsw/gsw_hal_errcode.h
@@ -0,0 +1,222 @@
+/**
+*  @file  : gsw_hal_errcode.h
+*  @brief : common hal error code
+*  @date : 2022-07-05
+*  @author : Wind
+*  @version : v1.0
+*  @copyright Copyright(C) 2022,Geely
+*/
+#ifndef __GSW_HAL_ERRCODE__H__
+#define __GSW_HAL_ERRCODE__H__
+#include <stdint.h>
+
+#define GSW_HAL_SUCCESS                                 (0x0000)
+
+//common error code
+#define GSW_HAL_NORMAL_FAIL                             (-0x0001)
+#define GSW_HAL_FUNC_UNSUPPORT                          (-0x0002)
+
+#define GSW_HAL_ARG_INVALID                             (-0x0011)
+#define GSW_HAL_NO_MEMORY                               (-0x0012)
+
+//GPIO
+
+//AT
+
+//GNSS
+#define GSW_HAL_GNSS_SUCCESS                            GSW_HAL_SUCCESS
+#define GSW_HAL_ERROR_GNSS_BASE                         (-0x0200)     /**<  Base value for GNSS errors. */ 
+#define GSW_HAL_ERROR_GNSS_FAIL                         (-0x0201)     /**<  Generic failure. */
+#define GSW_HAL_ERROR_GNSS_MCM_SERVICES_NOT_AVAILABLE   (-0x0202)    /**<  MCM services not available. */
+#define GSW_HAL_ERROR_GNSS_GENERIC                      (-0x0203)    /**<  Generic error. */
+#define GSW_HAL_ERROR_GNSS_BADPARM                      (-0x0204)    /**<  Bad parameter. */
+#define GSW_HAL_ERROR_GNSS_MEMORY                       (-0x0205)    /**<  Memory error. */
+#define GSW_HAL_ERROR_GNSS_INVALID_STATE                (-0x0206)    /**<  Invalid state. */
+#define GSW_HAL_ERROR_GNSS_MALFORMED_MSG                (-0x0207)    /**<  Malformed message. */
+#define GSW_HAL_ERROR_GNSS_NO_MEMORY                    (-0x0208)    /**<  No memory. */
+#define GSW_HAL_ERROR_GNSS_INTERNAL                     (-0x0209)    /**<  Internal error. */
+#define GSW_HAL_ERROR_GNSS_ABORTED                      (-0x020a)   /**<  Action was aborted. */
+#define GSW_HAL_ERROR_GNSS_CLIENT_IDS_EXHAUSTED         (-0x020b)   /**<  Client IDs have been exhausted. */
+#define GSW_HAL_ERROR_GNSS_UNABORTABLE_TRANSACTION      (-0x020c)   /**<  Unabortable transaction. */
+#define GSW_HAL_ERROR_GNSS_INVALID_CLIENT_ID            (-0x020d)   /**<  Invalid client ID. */
+#define GSW_HAL_ERROR_GNSS_NO_THRESHOLDS                (-0x020e)   /**<  No thresholds. */
+#define GSW_HAL_ERROR_GNSS_INVALID_HANDLE               (-0x020f)   /**<  Invalid handle. */
+#define GSW_HAL_ERROR_GNSS_INVALID_PROFILE              (-0x0210)   /**<  Invalid profile. */
+#define GSW_HAL_ERROR_GNSS_INVALID_PINID                (-0x0211)   /**<  Invalid PIN ID. */
+#define GSW_HAL_ERROR_GNSS_INCORRECT_PIN                (-0x0212)   /**<  Incorrect PIN. */
+#define GSW_HAL_ERROR_GNSS_NO_NETWORK_FOUND             (-0x0213)   /**<  No network found. */
+#define GSW_HAL_ERROR_GNSS_CALL_FAILED                  (-0x0214)   /**<  Call failed. */
+#define GSW_HAL_ERROR_GNSS_OUT_OF_CALL                  (-0x0215)   /**<  Out of call. */
+#define GSW_HAL_ERROR_GNSS_NOT_PROVISIONED              (-0x0216)   /**<  Not provisioned. */
+#define GSW_HAL_ERROR_GNSS_MISSING_ARG                  (-0x0217)   /**<  Missing argument. */
+#define GSW_HAL_ERROR_GNSS_ARG_TOO_LONG                 (-0x0218)   /**<  Argument is too long. */
+#define GSW_HAL_ERROR_GNSS_INVALID_TX_ID                (-0x0219)   /**<  Invalid Tx ID. */
+#define GSW_HAL_ERROR_GNSS_DEVICE_IN_USE                (-0x021a)   /**<  Device is in use. */
+#define GSW_HAL_ERROR_GNSS_OP_NETWORK_UNSUPPORTED       (-0x021b)   /**<  OP network is not supported. */
+#define GSW_HAL_ERROR_GNSS_OP_DEVICE_UNSUPPORTED        (-0x021c)   /**<  OP device is not supported. */
+#define GSW_HAL_ERROR_GNSS_NO_EFFECT                    (-0x021d)   /**<  No effect. */
+#define GSW_HAL_ERROR_GNSS_NO_FREE_PROFILE              (-0x021e)   /**<  No free profile. */
+#define GSW_HAL_ERROR_GNSS_INVALID_PDP_TYPE             (-0x021f)   /**<  Invalid PDP type. */
+#define GSW_HAL_ERROR_GNSS_INVALID_TECH_PREF            (-0x0220)   /**<  Invalid technical preference. */
+#define GSW_HAL_ERROR_GNSS_INVALID_PROFILE_TYPE         (-0x0221)   /**<  Invalid profile type. */
+#define GSW_HAL_ERROR_GNSS_INVALID_SERVICE_TYPE         (-0x0222)   /**<  Invalid service type. */
+#define GSW_HAL_ERROR_GNSS_INVALID_REGISTER_ACTION      (-0x0223)   /**<  Invalid register action. */
+#define GSW_HAL_ERROR_GNSS_INVALID_PS_ATTACH_ACTION     (-0x0224)   /**<  Invalid PS attach action. */
+#define GSW_HAL_ERROR_GNSS_AUTHENTICATION_FAILED        (-0x0225)   /**<  Authentication failed. */
+#define GSW_HAL_ERROR_GNSS_PIN_BLOCKED                  (-0x0226)   /**<  PIN is blocked. */
+#define GSW_HAL_ERROR_GNSS_PIN_PERM_BLOCKED             (-0x0227)   /**<  PIN is permanently blocked. */
+#define GSW_HAL_ERROR_GNSS_SIM_NOT_INITIALIZED          (-0x0228)   /**<  SIM is not initialized. */
+#define GSW_HAL_ERROR_GNSS_MAX_QOS_REQUESTS_IN_USE      (-0x0229)   /**<  Maximum QoS requests are in use. */
+#define GSW_HAL_ERROR_GNSS_INCORRECT_FLOW_FILTER        (-0x022a)   /**<  Incorrect flow filter. */
+#define GSW_HAL_ERROR_GNSS_NETWORK_QOS_UNAWARE          (-0x022b)   /**<  Network QoS is unaware. */
+#define GSW_HAL_ERROR_GNSS_INVALID_ID                   (-0x022c)   /**<  Invalid ID. */
+#define GSW_HAL_ERROR_GNSS_INVALID_QOS_ID               (-0x022d)   /**<  Invalid QoS ID. */
+#define GSW_HAL_ERROR_GNSS_REQUESTED_NUM_UNSUPPORTED    (-0x022e)   /**<  Requested number is not supported. */
+#define GSW_HAL_ERROR_GNSS_INTERFACE_NOT_FOUND          (-0x022f)   /**<  Interface was not found. */
+#define GSW_HAL_ERROR_GNSS_FLOW_SUSPENDED               (-0x0230)   /**<  Flow is suspended. */
+#define GSW_HAL_ERROR_GNSS_INVALID_DATA_FORMAT          (-0x0231)   /**<  Invalid data format. */
+#define GSW_HAL_ERROR_GNSS_GENERAL                      (-0x0232)   /**<  General error. */
+#define GSW_HAL_ERROR_GNSS_UNKNOWN                      (-0x0233)   /**<  Unknown error. */
+#define GSW_HAL_ERROR_GNSS_INVALID_ARG                  (-0x0234)   /**<  Invalid argument. */
+#define GSW_HAL_ERROR_GNSS_INVALID_INDEX                (-0x0235)   /**<  Invalid index. */
+#define GSW_HAL_ERROR_GNSS_GET_DIALED_INFO              (-0x0236)   /**<  NO dialed. */
+#define GSW_HAL_ERROR_GNSS_GET_APN                      (-0x0237)   /**<  Get apn fail. */
+#define GSW_HAL_ERROR_GNSS_DATA_CALL_DISCONNECT         (-0x0238)   /**<  Disconnect data-call. */
+#define GSW_HAL_ERROR_GNSS_DATA_CALL_DEINIT             (-0x0239)   /**<  Deinit data-call. */
+#define GSW_HAL_ERROR_GNSS_REPEAT_DATA_CALL             (-0x023a)   /**<  Repeat data-call. */
+#define GSW_HAL_ERROR_GNSS_API_UNSUPPORTED              (-0x023b)   /**<  GNSS api interface unsupport. */
+#define GSW_HAL_ERROR_GNSS_NOT_INITIALIZED              (-0x023c)   /**<  GNSS not inited. */
+#define GSW_HAL_ERROR_GNSS_INVALID_REQUEST              (-0x023d)   /**<  Invalid request. */
+#define GSW_HAL_ERROR_GNSS_XTRA_TIME_UPFATE_FAIL        (-0x023e)   /**<  xtra time update fail. */
+#define GSW_HAL_ERROR_GNSS_XTRA_FILE_DOWNLOAD_FAIL      (-0x023f)   /**<  xtra file download fail. */
+#define GSW_HAL_ERROR_GNSS_XTRA_INJECT_DATA_FAIL        (-0x0240)   /**<  xtra data inject fail. */
+#define GSW_HAL_ERROR_GNSS_XTRA_DATA_CALL_DISABLE_FAIL  (-0x0241)   /**<  data call disable fail. */
+
+//PIN
+
+//NW
+
+//OTA
+#define GSW_HAL_ERROR_OTA_BASE                          (-0x0300)
+#define GSW_HAL_ERROR_OTA_FAIL                          (-0x0301)
+#define GSW_HAL_ERROR_OTA_TIMEOUT                       (-0x0302)  /**< ota install timeout */
+#define GSW_HAL_ERROR_OTA_INPROCESS                     (-0x0303)  /**< ota install in process */
+#define GSW_HAL_ERROR_OTA_NO_TASK                       (-0x0304)  /**< ota install no task */
+
+//PM
+
+//VOICE
+
+//WIFI
+#define GSW_HAL_WIFI_API_SUCCESS                                GSW_HAL_SUCCESS    /**<  Success. */
+#define GSW_HAL_ERROR_WIFI_API_BASE                             (-0x0400)
+#define GSW_HAL_ERROR_WIFI_API_FAIL                             (-0x0401)   
+#define GSW_HAL_ERROR_WIFI_API_ERROR_MCM_SERVICES_NOT_AVAILABLE (-0x0402)   /**<  MCM services not available. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_GENERIC                    (-0x0403)   /**<  Generic error. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_BADPARM                    (-0x0404)   /**<  Bad parameter. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_MEMORY                     (-0x0405)   /**<  Memory error. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_STATE              (-0x0406)   /**<  Invalid state. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_MALFORMED_MSG              (-0x0407)   /**<  Malformed message. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NO_MEMORY                  (-0x0408)   /**<  No memory. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INTERNAL                   (-0x0409)   /**<  Internal error. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_ABORTED                    (-0x040a)   /**<  Action was aborted. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_CLIENT_IDS_EXHAUSTED       (-0x040b)   /**<  Client IDs have been exhausted. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_UNABORTABLE_TRANSACTION    (-0x040c)   /**<  Unabortable transaction. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_CLIENT_ID          (-0x040d)   /**<  Invalid client ID. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NO_THRESHOLDS              (-0x040e)   /**<  No thresholds. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_HANDLE             (-0x040f)   /**<  Invalid handle. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PROFILE            (-0x0410)   /**<  Invalid profile. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PINID              (-0x0411)   /**<  Invalid PIN ID. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INCORRECT_PIN              (-0x0412)   /**<  Incorrect PIN. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NO_NETWORK_FOUND           (-0x0413)   /**<  No network found. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_CALL_FAILED                (-0x0414)   /**<  Call failed. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_OUT_OF_CALL                (-0x0415)   /**<  Out of call. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NOT_PROVISIONED            (-0x0416)   /**<  Not provisioned. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_MISSING_ARG                (-0x0417)   /**<  Missing argument. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_ARG_TOO_LONG               (-0x0418)   /**<  Argument is too long. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_TX_ID              (-0x0419)   /**<  Invalid Tx ID. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_DEVICE_IN_USE              (-0x041a)   /**<  Device is in use. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_OP_NETWORK_UNSUPPORTED     (-0x041b)   /**<  OP network is not supported. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_OP_DEVICE_UNSUPPORTED      (-0x041c)   /**<  OP device is not supported. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NO_EFFECT                  (-0x041d)   /**<  No effect. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NO_FREE_PROFILE            (-0x041e)   /**<  No free profile. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PDP_TYPE           (-0x041f)   /**<  Invalid PDP type. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_TECH_PREF          (-0x0420)   /**<  Invalid technical preference. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PROFILE_TYPE       (-0x0421)   /**<  Invalid profile type. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_SERVICE_TYPE       (-0x0422)   /**<  Invalid service type. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_REGISTER_ACTION    (-0x0423)   /**<  Invalid register action. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_PS_ATTACH_ACTION   (-0x0424)   /**<  Invalid PS attach action. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_AUTHENTICATION_FAILED      (-0x0425)   /**<  Authentication failed. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_PIN_BLOCKED                (-0x0426)   /**<  PIN is blocked. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_PIN_PERM_BLOCKED           (-0x0427)   /**<  PIN is permanently blocked. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_SIM_NOT_INITIALIZED        (-0x0428)   /**<  SIM is not initialized. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_MAX_QOS_REQUESTS_IN_USE    (-0x0429)   /**<  Maximum QoS requests are in use. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INCORRECT_FLOW_FILTER      (-0x042a)   /**<  Incorrect flow filter. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_NETWORK_QOS_UNAWARE        (-0x042b)   /**<  Network QoS is unaware. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_ID                 (-0x042c)   /**<  Invalid ID. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_QOS_ID             (-0x042d)   /**<  Invalid QoS ID. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_REQUESTED_NUM_UNSUPPORTED  (-0x042e)   /**<  Requested number is not supported. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INTERFACE_NOT_FOUND        (-0x042f)   /**<  Interface was not found. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_FLOW_SUSPENDED             (-0x0430)   /**<  Flow is suspended. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_DATA_FORMAT        (-0x0431)   /**<  Invalid data format. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_GENERAL                    (-0x0432)   /**<  General error. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_UNKNOWN                    (-0x0433)   /**<  Unknown error. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_ARG                (-0x0434)   /**<  Invalid argument. */
+#define GSW_HAL_ERROR_WIFI_API_ERROR_INVALID_INDEX              (-0x0435)   /**<  Invalid index. */
+
+//Security
+#define GSW_HAL_ERROR_TEE_SUCCESS            (GSW_HAL_SUCCESS)   /** SUCCESS */
+#define GSW_HAL_ERROR_TEE_INIT_FAILED        (-0x00700)          /** INIT FALIED */
+#define GSW_HAL_ERROR_TEE_FAILED             (-0x00701)          /** FAILED */
+#define GSW_HAL_ERROR_TEE_HANDLE             (-0x00702)          /** Input/output pointer is null */
+#define GSW_HAL_ERROR_TEE_DATATYPE           (-0x00703)          /** The specified data type does not exist */
+#define GSW_HAL_ERROR_TEE_DATASIZE           (-0x00704)          /** Input data size exceeds the limit */
+#define GSW_HAL_ERROR_TEE_FILENAMESIZE       (-0x00705)          /** Input filename size exceeds the limit */
+#define GSW_HAL_ERROR_TEE_NOTSUPPORT         (-0x00706)          /** function not support */
+#define GSW_HAL_ERROR_TEE_SFS_WRITE          (-0x00707)          /** An error occurred while writing data to the security file*/
+#define GSW_HAL_ERROR_TEE_SFS_WRITESIZE      (-0x00708)          /** The actual write was not equal expected */
+#define GSW_HAL_ERROR_TEE_SFS_WRITE_LIMIT    (-0x00709)          /** The total memory of Secure file exceeds the limit  */
+#define GSW_HAL_ERROR_TEE_SFS_READ           (-0x0070a)          /** An error occurred while reading data to the security file  */
+#define GSW_HAL_ERROR_TEE_SFS_READSIZE       (-0x0070b)          /** The actual read was larger than expected */
+#define GSW_HAL_ERROR_TEE_SFS_FILE_NOEXIST   (-0x0070c)          /** Not found the secure file  */
+#define GSW_HAL_ERROR_TEE_SFS_FILE_DELETE    (-0x0070d)          /** Failed to delete the file  */
+#define GSW_HAL_ERROR_TEE_AES_KEYSIZE        (-0x0070e)          /** The specified AES key size is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_IVSIZE         (-0x0070f)          /** The specified AES IV size is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_MODE           (-0x00710)          /** The specified AES mode is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_PADDING        (-0x00711)          /** The specified AES padding is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_ENC            (-0x00712)          /** The specified AES encryption is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_DEC            (-0x00713)          /** The specified AES decryption is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_CMAC           (-0x00714)          /** The specified AES cmac is incorrect  */
+#define GSW_HAL_ERROR_TEE_AES_IMP            (-0x00715)          /** The specified AES import is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_KEYSIZE        (-0x00716)          /** The specified RSA key size is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_EXP            (-0x00717)          /** The specified RSA exp is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_SHAID          (-0x00718)          /** The specified RSA sha mode is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_PADDING        (-0x00719)          /** The specified RSA padding is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_ENC            (-0x0071a)          /** The specified RSA encryption is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_DEC            (-0x0071b)          /** The specified RSA decryption is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_SIGN           (-0x0071c)          /** The specified RSA sign is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_VERIFY         (-0x0071d)          /** The specified RSA verify is incorrect  */
+#define GSW_HAL_ERROR_TEE_RSA_IMP            (-0x0071e)          /** The specified RSA import is incorrect  */
+#define GSW_HAL_ERROR_TEE_ECC_KEYSIZE        (-0x0071f)          /** The specified ECC key size is incorrect  */
+#define GSW_HAL_ERROR_TEE_ECC_SHAID          (-0x00720)          /** The specified ECC sha mode is incorrect  */
+#define GSW_HAL_ERROR_TEE_ECC_SIGN           (-0x00721)          /** The specified ECC sign is incorrect  */
+#define GSW_HAL_ERROR_TEE_ECC_VERIFY         (-0x00722)          /** The specified ECC verify is incorrect  */
+#define GSW_HAL_ERROR_TEE_ECC_IMP            (-0x00723)          /** The specified ECC import is incorrect  */
+#define GSW_HAL_ERROR_TEE_SHA_ID             (-0x00724)          /** The specified SHA mode is incorrect  */
+#define GSW_HAL_ERROR_TEE_SHA                (-0x00725)          /** The specified SHA is incorrect  */
+#define GSW_HAL_ERROR_TEE_RANDOM             (-0x00726)          /** The specified RANDOM is incorrect  */
+
+//file
+#define GSW_HAL_ERROR_FILE_BASE                  (-0x0500)
+#define GSW_HAL_ERROR_FILE_NONE                  (-0x0501)
+#define GSW_HAL_ERROR_FILE_POPEN                 (-0x0502)
+#define GSW_HAL_ERROR_FILE_OPEN                  (-0x0503)
+#define GSW_HAL_ERROR_FILE_WRITE                 (-0x0504)
+#define GSW_HAL_ERROR_FILE_READ                  (-0x0505)
+
+//uart
+#define GSW_HAL_ERROR_UART_BASE                  (-0x0600)
+#define GSW_HAL_ERROR_UART_ERROR                 (-0x0601)
+#define GSW_HAL_ERROR_UART_TIMEOUT               (-0x0602)
+
+#endif