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

[FL-2399, FL-2261] Tickless sleep shenanigans #1168

Merged
merged 43 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8f1e07d
Disable USART in sleep
gsurkov Apr 21, 2022
f824471
Merge remote-tracking branch 'origin' into gsurkov/2399_deepsleep
gsurkov Apr 21, 2022
0301817
Restore UART state on suspend/resume
gsurkov Apr 21, 2022
55f8f2a
FuriHal: Enable stop mode and add insomnia to I2C and SPI
skotopes Apr 21, 2022
3acb21b
Remove IDLE interrupt
gsurkov Apr 21, 2022
dc8346b
FuriHal: add FPU isr and disable all FPU interrupt, add core2 stop mo…
skotopes Apr 21, 2022
14be76c
FuriHal: tie stop mode debug with debug rtc flag
skotopes Apr 21, 2022
9e3f6de
FuriHal: adjust flash latency on clock switch, tie mcu debug with RTC…
skotopes Apr 22, 2022
01ea3e3
FuriHal: move resource init to early stage
skotopes Apr 22, 2022
6563392
Add EXTI pending check, enable debug traps with compile-time flag
gsurkov Apr 22, 2022
5c37066
Wrap sleep debug functions in conditional compilation
gsurkov Apr 22, 2022
0705766
Remove erroneous changed
gsurkov Apr 22, 2022
b5bee82
Do not use CSS, remove it from everywhere
gsurkov Apr 22, 2022
69524ca
Merge remote-tracking branch 'origin' into gsurkov/2399_deepsleep
gsurkov Apr 22, 2022
82677e6
Enable/disable USB on VBUS connect (prototype)
gsurkov Apr 22, 2022
1abeed8
FuriHal: add LPMS and DEEPSLEEP magic, workaround state inconsistency…
skotopes Apr 25, 2022
80a0014
FuriHal: honor c1 LMPS
skotopes Apr 25, 2022
2d8827b
USB mode switch fix
nminaylov Apr 25, 2022
1a5a263
Applications: add flags and insomnia bypass system
skotopes Apr 25, 2022
1be0aee
Correct spelling
skotopes Apr 26, 2022
517195d
FuriHal: cleanup insomnia usage, reset sleep flags on wakeup, add shu…
skotopes Apr 27, 2022
f7c32be
Merge remote-tracking branch 'origin/dev' into gsurkov/2399_deepsleep
skotopes Apr 27, 2022
9fdb8fc
FuriHal: extra check on reinit request
skotopes Apr 27, 2022
7aad576
FuriHal: rename gpio_display_rst pin to gpio_display_rst_n
skotopes Apr 27, 2022
5a2e5c3
FuriHal: add debug HAL
skotopes Apr 27, 2022
0288e8a
FuriHal: add some magic to core2 reload procedure, fix issue with cra…
skotopes Apr 27, 2022
8629da4
FuriHal: cleanup ble glue, add BLE_GLUE_DEBUG flag
skotopes Apr 27, 2022
225d2b3
FuriHal: ble reinit API, move os timer to LPTIM1 for deep sleep capab…
skotopes Apr 27, 2022
d2002c3
FuriHal: take insomnia while shutdown
skotopes Apr 27, 2022
67fb70d
Remove USB switch on/off on VBUS change
gsurkov Apr 28, 2022
e522bf4
Better tick skew handling
gsurkov Apr 28, 2022
d10f38b
Improve tick consistency under load
gsurkov Apr 28, 2022
3485804
Add USB_HP dummy IRQ handler
gsurkov Apr 28, 2022
d6b22ff
Move interrupt check closer to sleep
gsurkov Apr 28, 2022
e5bfdcb
Clean up includes
gsurkov Apr 28, 2022
b6c96d2
Re-enable Insomnia globally
gsurkov Apr 28, 2022
13a4174
Merge branch 'dev' into gsurkov/2399_deepsleep
gsurkov Apr 28, 2022
3e3b688
Merge branch 'dev' into gsurkov/2399_deepsleep
skotopes Apr 29, 2022
0732448
FuriHal: enable CSS
skotopes Apr 29, 2022
1e3b83a
FuriHal: remove questionable core2 clock shenanigans
skotopes Apr 29, 2022
40e52f2
FuriHal: use core1 RCC registers in idle timer config
skotopes Apr 29, 2022
08fe172
FuriHal: return back CSS handlers, add lptim isr dispatching
skotopes Apr 29, 2022
03c9f54
Merge branch 'dev' into gsurkov/2399_deepsleep
skotopes Apr 29, 2022
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
4 changes: 1 addition & 3 deletions applications/accessor/accessor_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ void AccessorApp::run(void) {
}

AccessorApp::AccessorApp() {
furi_hal_power_insomnia_enter();
notification = static_cast<NotificationApp*>(furi_record_open("notification"));
onewire_host = onewire_host_alloc();
furi_hal_power_enable_otg();
Expand All @@ -42,7 +41,6 @@ AccessorApp::~AccessorApp() {
furi_hal_power_disable_otg();
furi_record_close("notification");
onewire_host_free(onewire_host);
furi_hal_power_insomnia_exit();
}

AccessorAppViewManager* AccessorApp::get_view_manager() {
Expand Down Expand Up @@ -139,4 +137,4 @@ WIEGAND* AccessorApp::get_wiegand() {

OneWireHost* AccessorApp::get_one_wire() {
return onewire_host;
}
}
Loading