mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-31 22:58:08 +00:00
re coments: move TODO instructions in usb-2
This commit is contained in:
parent
f2cc43b55f
commit
c3d680e76d
|
@ -60,13 +60,15 @@ fn on_event(_usbd: &USBD, event: Event) {
|
||||||
wvalue
|
wvalue
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO modify `advanced/common/usb` to make this work
|
|
||||||
let request = Request::parse(bmrequesttype, brequest, wvalue, windex, wlength)
|
let request = Request::parse(bmrequesttype, brequest, wvalue, windex, wlength)
|
||||||
.expect("Error parsing request");
|
.expect("Error parsing request");
|
||||||
match request {
|
match request {
|
||||||
Request::GetDescriptor { descriptor, length }
|
Request::GetDescriptor { descriptor, length }
|
||||||
if descriptor == Descriptor::Device =>
|
if descriptor == Descriptor::Device =>
|
||||||
{
|
{
|
||||||
|
// TODO modify `Request::parse()` in `advanced/common/usb/lib.rs`
|
||||||
|
// so that this branch is reached
|
||||||
|
|
||||||
log::info!("GET_DESCRIPTOR Device [length={}]", length);
|
log::info!("GET_DESCRIPTOR Device [length={}]", length);
|
||||||
|
|
||||||
log::info!("Goal reached; move to the next section");
|
log::info!("Goal reached; move to the next section");
|
||||||
|
|
Loading…
Reference in a new issue