Skip to content

Commit

Permalink
[beken-72xx] Fix GPIO deep sleep wakeup edge (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmister authored Aug 23, 2023
1 parent f387138 commit bd47772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cores/beken-72xx/base/api/lt_sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ void lt_deep_sleep_config_gpio(uint32_t gpio_index_map, bool on_high) {
deep_sleep_param.wake_up_way |= PS_DEEP_WAKEUP_GPIO;
deep_sleep_param.gpio_index_map |= gpio_index_map;
if (on_high) {
deep_sleep_param.gpio_edge_map &= (~gpio_index_map);
} else {
deep_sleep_param.gpio_edge_map |= gpio_index_map;
} else {
deep_sleep_param.gpio_edge_map &= (~gpio_index_map);
}
}

Expand Down

0 comments on commit bd47772

Please sign in to comment.