Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SiWx917] Enabling the alarm API's which will be used in rejoin sleep #171

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void sl_si91x_m4_sleep_wakeup(void);
*/
void initialize_m4_alarm(void);
void IRQ026_Handler();

void set_alarm_interrupt_timer(uint16_t interval);
void wakeup_source_config(void);
#endif /* SLI_SI91X_MCU_INTERFACE */
#endif /* SL_SI91X_M4_POWERSAVE_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,10 @@
#define WKP_RAM_USAGE_LOCATION \
0x24061000 /*<!Bootloader RAM usage location upon wake up for A0 */
#endif
#if SL_SI91X_MCU_ALARM_BASED_WAKEUP
static RTC_TIME_CONFIG_T rtc_configuration, alarm_configuration, rtc_get_time;
static uint8_t m4_alarm_initialization_done;
#endif
uint8_t m4_alarm_initialization_done;
#define WIRELESS_WAKEUP_IRQHandler_Periority 8
void sli_m4_ta_interrupt_init(void);
void set_alarm_interrupt_timer(uint16_t interval);
void m4_powersave_app(void);
void wakeup_source_config(void);
void vPortSetupTimerInterrupt(void);
Expand Down Expand Up @@ -127,7 +124,6 @@ void IRQ026_Handler() {
return;
}
#endif /* SL_SI91X_MCU_WIRELESS_BASED_WAKEUP */
#if SL_SI91X_MCU_ALARM_BASED_WAKEUP
void set_alarm_interrupt_timer(uint16_t interval) {
/* Get the RTC time,which is used to update alarm time as per RTC time */
RSI_RTC_GetDateTime(RTC, &rtc_get_time);
Expand Down Expand Up @@ -256,7 +252,6 @@ void RTC_ALARM_IRQHandler(void) {
}
return;
}
#endif /* SL_SI91X_MCU_ALARM_BASED_WAKEUP */

/**
* @fn sl_si91x_m4_sleep_wakeup
Expand Down
Loading