added function to enable power saving mode for es_wifi driver (Inventek Systems ISM43362-M3G-L44 )
Fork of DISCO_L475VG_IOT01A_wifi by
Revision 2:9bbbcd0eff1c, committed 2018-01-13
- Comitter:
- jaafaryn
- Date:
- Sat Jan 13 23:37:46 2018 +0000
- Parent:
- 1:b37920c1ddb9
- Commit message:
- added function to enable power saving mode
Changed in this revision
--- a/es_wifi.c Tue Dec 19 19:29:15 2017 +0000 +++ b/es_wifi.c Sat Jan 13 23:37:46 2018 +0000 @@ -851,7 +851,7 @@ * @retval Operation Status. */ -ES_WIFI_Status_t ES_WIFI_SetPowerSaveMode(ES_WIFIObject_t *Obj, uint8_t beacon_int, uint16_t sleep_ms) +ES_WIFI_Status_t ES_WIFI_SetPowerSaveMode(ES_WIFIObject_t *Obj, uint8_t beacon_int, uint32_t sleep_ms) { ES_WIFI_Status_t ret; sprintf((char*)Obj->CmdData,"ZP=2,%d\r", beacon_int);
--- a/es_wifi.h Tue Dec 19 19:29:15 2017 +0000 +++ b/es_wifi.h Sat Jan 13 23:37:46 2018 +0000 @@ -302,7 +302,7 @@ IO_Send_Func IO_Send, IO_Receive_Func IO_Receive); -ES_WIFI_Status_t ES_WIFI_SetPowerSaveMode(ES_WIFIObject_t *Obj, uint8_t beacon_int, uint16_t sleep_ms); +ES_WIFI_Status_t ES_WIFI_SetPowerSaveMode(ES_WIFIObject_t *Obj, uint8_t beacon_int, uint32_t sleep_ms); #ifdef __cplusplus }
--- a/wifi.c Tue Dec 19 19:29:15 2017 +0000 +++ b/wifi.c Sat Jan 13 23:37:46 2018 +0000 @@ -141,7 +141,7 @@ * @param sleep_ms: time in ms spent in sleep mode (typically: 1000ms -> 5000ms) * @retval Operation Status. */ -WIFI_Status_t WIFI_SetPowerSaveMode(uint8_t beacon_int, uint16_t sleep_ms) { +WIFI_Status_t WIFI_SetPowerSaveMode(uint8_t beacon_int, uint32_t sleep_ms) { WIFI_Status_t ret = WIFI_STATUS_ERROR; if(ES_WIFI_SetPowerSaveMode(&EsWifiObj, beacon_int, sleep_ms) == ES_WIFI_STATUS_OK) { ret = WIFI_STATUS_OK;
--- a/wifi.h Tue Dec 19 19:29:15 2017 +0000 +++ b/wifi.h Sat Jan 13 23:37:46 2018 +0000 @@ -183,7 +183,7 @@ WIFI_Status_t WIFI_GetModuleID(char *Id); WIFI_Status_t WIFI_GetModuleFwRevision(char *rev); WIFI_Status_t WIFI_GetModuleName(char *ModuleName); -WIFI_Status_t WIFI_SetPowerSaveMode(uint8_t beacon_int, uint16_t sleep_ms); +WIFI_Status_t WIFI_SetPowerSaveMode(uint8_t beacon_int, uint32_t sleep_ms); #ifdef __cplusplus } #endif