mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-09 15:55:37 +00:00
Add logging from usb-4-solution.rs
This commit is contained in:
parent
dfb8685d73
commit
b67660a753
1 changed files with 8 additions and 2 deletions
|
@ -48,9 +48,15 @@ fn on_event(usbd: &USBD, ep0in: &mut Ep0In, state: &mut State, event: Event) {
|
|||
|
||||
match event {
|
||||
// TODO change `state` as specified in chapter 9.1 USB Device States, of the USB specification
|
||||
Event::UsbReset => todo!(),
|
||||
Event::UsbReset => {
|
||||
log::info!("USB reset condition detected");
|
||||
todo!();
|
||||
}
|
||||
|
||||
Event::UsbEp0DataDone => ep0in.end(usbd),
|
||||
Event::UsbEp0DataDone => {
|
||||
log::info!("EP0IN: transfer complete");
|
||||
ep0in.end(usbd);
|
||||
}
|
||||
|
||||
Event::UsbEp0Setup => {
|
||||
if ep0setup(usbd, ep0in, state).is_err() {
|
||||
|
|
Loading…
Reference in a new issue