Commit 2b899b67 authored by danicampora's avatar danicampora
Browse files

cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.

parent 6ff9a472
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
//***************************************************************************** //*****************************************************************************
// Local Constants // Local Constants
//***************************************************************************** //*****************************************************************************
#define SL_STOP_TIMEOUT 500 #define SL_STOP_TIMEOUT 250
#define BOOTMGR_HASH_ALGO SHAMD5_ALGO_MD5 #define BOOTMGR_HASH_ALGO SHAMD5_ALGO_MD5
#define BOOTMGR_HASH_SIZE 32 #define BOOTMGR_HASH_SIZE 32
#define BOOTMGR_BUFF_SIZE 512 #define BOOTMGR_BUFF_SIZE 512
......
...@@ -130,7 +130,7 @@ typedef struct _wlan_obj_t { ...@@ -130,7 +130,7 @@ typedef struct _wlan_obj_t {
#define ASSERT_ON_ERROR( x ) ASSERT((x) >= 0 ) #define ASSERT_ON_ERROR( x ) ASSERT((x) >= 0 )
#define IPV4_ADDR_STR_LEN_MAX (16) #define IPV4_ADDR_STR_LEN_MAX (16)
#define SL_STOP_TIMEOUT 500 #define SL_STOP_TIMEOUT 250
#define WLAN_MAX_RX_SIZE 16000 #define WLAN_MAX_RX_SIZE 16000
...@@ -501,7 +501,7 @@ void wlan_sl_disable (void) { ...@@ -501,7 +501,7 @@ void wlan_sl_disable (void) {
xSemaphoreTake (xWlanSemaphore, portMAX_DELAY); xSemaphoreTake (xWlanSemaphore, portMAX_DELAY);
#endif #endif
wlan_obj.mode = -1; wlan_obj.mode = -1;
ASSERT_ON_ERROR (sl_Stop(SL_STOP_TIMEOUT)); sl_Stop(SL_STOP_TIMEOUT);
} }
} }
...@@ -551,7 +551,7 @@ STATIC void wlan_reenable (SlWlanMode_t mode) { ...@@ -551,7 +551,7 @@ STATIC void wlan_reenable (SlWlanMode_t mode) {
#ifdef USE_FREERTOS #ifdef USE_FREERTOS
xSemaphoreTake (xWlanSemaphore, portMAX_DELAY); xSemaphoreTake (xWlanSemaphore, portMAX_DELAY);
#endif #endif
ASSERT_ON_ERROR(sl_Stop(SL_STOP_TIMEOUT)); sl_Stop(SL_STOP_TIMEOUT);
wlan_obj.mode = sl_Start(0, 0, 0); wlan_obj.mode = sl_Start(0, 0, 0);
#ifdef USE_FREERTOS #ifdef USE_FREERTOS
xSemaphoreGive (xWlanSemaphore); xSemaphoreGive (xWlanSemaphore);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment