mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[usb] Change apps and relocate usb stack on ram.
When the device is plugged to a USB host. Change-Id: I5d7ae3c86cacce509b6ccca2746984f7e806cb49
This commit is contained in:
@@ -31,7 +31,6 @@ bool RunLoop::step() {
|
||||
int eventDuration = Timer::TickDuration;
|
||||
int timeout = eventDuration;
|
||||
Ion::Events::Event event = Ion::Events::getEvent(&timeout);
|
||||
assert(event.isDefined());
|
||||
eventDuration -= timeout;
|
||||
|
||||
assert(eventDuration >= 0);
|
||||
@@ -54,6 +53,12 @@ bool RunLoop::step() {
|
||||
}
|
||||
}
|
||||
|
||||
if (event == Ion::Events::USBEnumeration) {
|
||||
dispatchEvent(event);
|
||||
}
|
||||
|
||||
assert(event.isDefined());
|
||||
|
||||
#if ESCHER_LOG_EVENTS_BINARY
|
||||
Ion::Console::writeChar((char)event.id());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user