diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-27 14:52:27 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-27 14:52:27 -0400 |
commit | e0a9f75354564b22ef41b4a3a58e5ff321a3fc25 (patch) | |
tree | f6a1c4b5d9000c5ddc657e44ca2ec60a1aea3d9a /usbh/src/pipe/addr.rs | |
parent | 4421c02a3e98d8b9e3af8db207dfeb9d276e2962 (diff) | |
download | samd21-demo-e0a9f75354564b22ef41b4a3a58e5ff321a3fc25.tar.gz samd21-demo-e0a9f75354564b22ef41b4a3a58e5ff321a3fc25.zip |
WIP: we have lights on the keyboard!
Diffstat (limited to 'usbh/src/pipe/addr.rs')
-rw-r--r-- | usbh/src/pipe/addr.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usbh/src/pipe/addr.rs b/usbh/src/pipe/addr.rs index 3ff2d2d..98199d1 100644 --- a/usbh/src/pipe/addr.rs +++ b/usbh/src/pipe/addr.rs @@ -87,8 +87,10 @@ pub(crate) struct AddrW<'a> { } impl<'a> AddrW<'a> { pub unsafe fn bits(self, v: u32) -> &'a mut W { - // Address must be 32-bit aligned. - assert!((v & 0x3) == 0); + // Address must be 32-bit aligned. cf ยง32.8.7.2 of SAMD21 data + // sheet. + + //assert!((v & 0x3) == 0); self.w.bits = v; self.w } |