mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[ion] WakeUp: wake up on rising AND falling edge of VbusPin
This commit is contained in:
@@ -36,9 +36,9 @@ void onUSBPlugging() {
|
||||
SYSCFG.EXTICR3()->setEXTI(USB::Config::VbusPin.pin(), USB::Config::VbusPin.group());
|
||||
|
||||
EXTI.EMR()->set(USB::Config::VbusPin.pin(), true);
|
||||
#if EPSILON_LED_WHILE_CHARGING
|
||||
//#if EPSILON_LED_WHILE_CHARGING
|
||||
EXTI.FTSR()->set(USB::Config::VbusPin.pin(), true);
|
||||
#endif
|
||||
//#endif
|
||||
EXTI.RTSR()->set(USB::Config::VbusPin.pin(), true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user