mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 03:29:58 +02:00
19 lines
377 B
C++
19 lines
377 B
C++
#include <ion.h>
|
|
#include "regs/regs.h"
|
|
#include "keyboard.h"
|
|
#include "led.h"
|
|
#include "display.h"
|
|
|
|
void Ion::Power::suspend() {
|
|
LED::Device::suspend();
|
|
Display::Device::suspend();
|
|
|
|
CM4.SCR()->setSLEEPDEEP(true);
|
|
Keyboard::Device::generateWakeUpEventForKey(Ion::Keyboard::Key::J1);
|
|
msleep(300);
|
|
asm("wfe");
|
|
|
|
Display::Device::resume();
|
|
LED::Device::resume();
|
|
}
|