File tree 3 files changed +13
-115
lines changed
src/platform/silabs/rs911x
3 files changed +13
-115
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #pragma once
17
18
18
- #ifndef _WFX_RSI_H_
19
- #define _WFX_RSI_H_
19
+ #include <event_groups.h>
20
20
21
- #include "event_groups.h"
21
+ #ifndef RSI_BLE_ENABLE
22
+ #define RSI_BLE_ENABLE (1)
23
+ #endif
22
24
23
25
/*
24
26
* Interface to RSI Sapis
30
32
#define WFX_RSI_CONFIG_MAX_JOIN (5) /* Max join retries */
31
33
// TODO: Default values are usually in minutes, but this is in ms. Confirm if this is correct
32
34
#define WFX_RSI_DHCP_POLL_INTERVAL (250) /* Poll interval in ms for DHCP */
35
+ #define WFX_RSI_NUM_TIMERS (2) /* Number of RSI timers to alloc */
33
36
34
37
typedef enum
35
38
{
@@ -78,7 +81,9 @@ typedef struct wfx_rsi_s
78
81
TaskHandle_t drv_task ;
79
82
TaskHandle_t wlan_task ;
80
83
TaskHandle_t init_task ;
84
+ #ifdef RSI_BLE_ENABLE
81
85
TaskHandle_t ble_task ;
86
+ #endif
82
87
uint16_t dev_state ;
83
88
uint16_t ap_chan ; /* The chan our STA is using */
84
89
wfx_wifi_provision_t sec ;
@@ -97,6 +102,7 @@ typedef struct wfx_rsi_s
97
102
} WfxRsi_t ;
98
103
99
104
extern WfxRsi_t wfx_rsi ;
105
+
100
106
#ifdef __cplusplus
101
107
extern "C" {
102
108
#endif
@@ -112,11 +118,12 @@ int32_t wfx_rsi_disconnect();
112
118
int32_t wfx_wifi_rsi_init (void );
113
119
#if SL_ICD_ENABLED
114
120
void sl_wfx_host_si91x_sleep_wakeup ();
121
+ #if SLI_SI917
115
122
int32_t wfx_rsi_power_save (rsi_power_save_profile_mode_t sl_si91x_ble_state , sl_si91x_performance_profile_t sl_si91x_wifi_state );
123
+ #else
124
+ int32_t wfx_rsi_power_save ();
125
+ #endif /* SLI_SI917 */
116
126
#endif /* SL_ICD_ENABLED */
117
-
118
127
#ifdef __cplusplus
119
128
}
120
129
#endif
121
-
122
- #endif /* _WFX_RSI_H_ */
Original file line number Diff line number Diff line change 27
27
28
28
#ifndef WFX_SL_BLE_INIT
29
29
#define WFX_SL_BLE_INIT
30
- #ifndef RSI_BLE_ENABLE
31
- #define RSI_BLE_ENABLE (1)
32
- #endif // RSI_BLE_ENABLE
33
30
34
31
// BLE include file to refer BLE APIs
35
32
#include "FreeRTOS.h"
You can’t perform that action at this time.
0 commit comments