Remove nested CS
This commit is contained in:
parent
75352d181c
commit
2315a39293
@ -1226,13 +1226,11 @@ impl<'d, T: Instance> embassy_usb_driver::EndpointIn for Endpoint<'d, T, In> {
|
|||||||
w.set_xfrsiz(buf.len() as _);
|
w.set_xfrsiz(buf.len() as _);
|
||||||
});
|
});
|
||||||
|
|
||||||
critical_section::with(|_| {
|
|
||||||
// Enable endpoint
|
// Enable endpoint
|
||||||
r.diepctl(index).modify(|w| {
|
r.diepctl(index).modify(|w| {
|
||||||
w.set_cnak(true);
|
w.set_cnak(true);
|
||||||
w.set_epena(true);
|
w.set_epena(true);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
// Write data to FIFO
|
// Write data to FIFO
|
||||||
for chunk in buf.chunks(4) {
|
for chunk in buf.chunks(4) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user