Skip to content

Commit

Permalink
Adds the BTN0 wakeup source
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Oct 3, 2024
1 parent 991c52b commit 25823b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@

sl_status_t sl_si91x_power_manager_wakeup_init(void)
{
sl_status_t status=SL_STATUS_OK;
sl_status_t status = SL_STATUS_OK;

status = sli_si91x_power_manager_gpio_init();
if (status != SL_STATUS_OK) {
return status;
}

return status;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/***************************************************************************//**
/***************************************************************************/ /**
* @file sl_si91x_power_manager_wakeup_handler.h.jinja
* @brief Power Manager Service Wakeup Handler APIs
*******************************************************************************
Expand Down Expand Up @@ -32,13 +32,12 @@

#include "sl_status.h"


#include "sl_si91x_driver_gpio.h"

#include "sl_si91x_power_manager_wakeup_source_config.h"


sl_status_t sl_si91x_power_manager_wakeup_init(void);


sl_status_t sli_si91x_power_manager_gpio_init(void);

#endif // SL_SI91X_POWER_MANAGER_WAKEUP_HANDLER_H
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern "C" {
// </e>

// <e>GPIO Wakeup
#define SL_ENABLE_GPIO_WAKEUP_SOURCE 0
#define SL_ENABLE_GPIO_WAKEUP_SOURCE 1

// <q ENABLE_NPSS_GPIO_0> Enable NPSS GPIO 0
// <i> Default: 0
Expand All @@ -71,7 +71,7 @@ extern "C" {

// <q ENABLE_NPSS_GPIO_2> Enable NPSS GPIO 2
// <i> Default: 0
#define ENABLE_NPSS_GPIO_2 0
#define ENABLE_NPSS_GPIO_2 1

// <q ENABLE_NPSS_GPIO_3> Enable NPSS GPIO 3
// <i> Default: 0
Expand Down

0 comments on commit 25823b4

Please sign in to comment.