aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src
diff options
context:
space:
mode:
Diffstat (limited to 'usbh/src')
-rw-r--r--usbh/src/pipe.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs
index 537eba0..abdba2a 100644
--- a/usbh/src/pipe.rs
+++ b/usbh/src/pipe.rs
@@ -308,19 +308,6 @@ impl Pipe<'_, '_> {
Ok(bytes_sent)
}
- pub(crate) fn dtgl_set(&mut self) {
- self.regs.statusset.write(|w| w.dtgl().set_bit());
- }
-
- pub(crate) fn dtgl_clear(&mut self) {
- self.regs.statusclr.write(|w| unsafe {
- // No function for this. FIXME: need to patch the SVD for
- // PSTATUSCLR.DTGL at bit0. No? This is in the SVD, but
- // not the rust output.
- w.bits(1)
- });
- }
-
pub(crate) fn dtgl(&mut self, ep: &mut Endpoint, token: PToken) {
// TODO: this makes no sense to me, and docs are unclear. If
// the status bit is set, set it again? if it's clear then
@@ -345,6 +332,19 @@ impl Pipe<'_, '_> {
}
}
+ pub(crate) fn dtgl_set(&mut self) {
+ self.regs.statusset.write(|w| w.dtgl().set_bit());
+ }
+
+ pub(crate) fn dtgl_clear(&mut self) {
+ self.regs.statusclr.write(|w| unsafe {
+ // No function for this. FIXME: need to patch the SVD for
+ // PSTATUSCLR.DTGL at bit0. No? This is in the SVD, but
+ // not the rust output.
+ w.bits(1)
+ });
+ }
+
// This is the only function that calls `millis`. If we can make
// this just take the current timestamp, we can make this
// non-blocking.