You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wiseconnect: Drop orphan functions sl_si91x_trigger_sleep()
Wiseconnect has been original developed for FreeRTOS.
sl_si91x_trigger_sleep() directly relies of FreeRTOS services. This
function does not compile. However, it is never called and can be safely
removed.
Upstream-status: Pending
Signed-off-by: Jérôme Pouiller <[email protected]>
* @brief Configure the default hardware configuration required for 'WiSeMCU' mode.
219
-
* @param[in] sleepType - Select the retention or non-retention mode of processor; refer to 'SLEEP_TYPE_T'.
220
-
* \n SLEEP_WITH_RETENTION : When used, user must configure the RAMs to be retained during sleep by using the 'RSI_PS_SetRamRetention()' function.
221
-
* @param[in] lf_clk_mode - This parameter is used to switch the processor clock from high frequency clock to low-frequency clock. This is used in some critical power save cases.
222
-
* \n '0' : ' \ref DISABLE_LF_MODE' Normal mode of operation , recommended in most applications.
223
-
* \n '1' : ' \ref LF_32_KHZ_RC' Processor clock is configured to low-frequency RC clock.
224
-
* \n '2' : ' \ref LF_32_KHZ_XTAL' Processor clock is configured to low-frequency XTAL clock.
225
-
* @param[in] stack_address - Stack pointer address to be used by bootloader.
226
-
* @param[in] jump_cb_address - Control block memory address or function address to be branched up on Wake-up
227
-
* @param[in] vector_offset - IVT offset to be programmed by boot-loader up on Wake-up.
228
-
* @param[in] mode - Possible parameters as follows:
229
-
* \n \ref RSI_WAKEUP_FROM_FLASH_MODE : Wakes from flash with retention. Upon wake up, control jumps to wake up handler in flash.
230
-
* In this mode, ULPSS RAMs are used to store the stack pointer and Wake-up handler address.
231
-
* \n \ref RSI_WAKEUP_WITH_OUT_RETENTION : Without retention sleep common for both FLASH/RAM based execution.
232
-
* In this mode, ULPSS RAMs are used to store the stack pointer and control block address.
233
-
* if stack_addr and jump_cb_addr are not valid, then 0x2404_0C00 and 0x2404_0000 are used
234
-
* for stack and control block address respectively.
235
-
* \n \ref RSI_WAKEUP_WITH_RETENTION : With retention branches to wake up handler in RAM.
236
-
* In this mode, ULPSS RAMs are used to store the wake up handler address.
237
-
* \n \ref RSI_WAKEUP_WITH_RETENTION_WO_ULPSS_RAM : In this mode, ULPSS RAMs are not used by boot-loader, instead it uses the NPSS battery flip flops.
238
-
* \n \ref RSI_WAKEUP_WO_RETENTION_WO_ULPSS_RAM : In this mode, ULPSS RAMs are not used by boot-loader, instead it uses the NPSS battery flip flops to store
239
-
* the stack and derives the control block address by adding 0XC00
240
-
* to the stack address stored in battery flops.
241
-
* @return Void
242
-
*/
243
-
244
-
voidsl_si91x_trigger_sleep(SLEEP_TYPE_TsleepType,
245
-
uint8_tlf_clk_mode,
246
-
uint32_tstack_address,
247
-
uint32_tjump_cb_address,
248
-
uint32_tvector_offset,
249
-
uint32_tmode)
250
-
{
251
-
// Turn on the ULPSS RAM domains and retain ULPSS RAMs
252
-
if ((mode!=RSI_WAKEUP_WITH_RETENTION_WO_ULPSS_RAM) || (mode!=RSI_WAKEUP_WO_RETENTION_WO_ULPSS_RAM)) {
0 commit comments