aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/usb/pipe.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-07-24 17:37:22 -0400
committerBrian Cully <bjc@kublai.com>2019-07-24 17:37:22 -0400
commit5b48a5c2f5526f088187fa341f64368994c9f517 (patch)
tree11728c1b24cf7e01ed568341ca6d5f1c86f5e104 /app/src/usb/pipe.rs
parent87015d0256e5c3888681da6d469e515b58efbb5f (diff)
downloadsamd21-demo-5b48a5c2f5526f088187fa341f64368994c9f517.tar.gz
samd21-demo-5b48a5c2f5526f088187fa341f64368994c9f517.zip
Remove packed structs.
These were causing hard faults when trying to deref a borrow, presumably because of a lack of field alignment. This does mean structs aren't the correct size (e.g., USBConfigurationDescription is 10 bytes instead of 9 on thumb6), so another solution needs to be fonud for getting data in and out of structs with a minimum of overhead.
Diffstat (limited to 'app/src/usb/pipe.rs')
-rw-r--r--app/src/usb/pipe.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/usb/pipe.rs b/app/src/usb/pipe.rs
index 908c8e5..2efb29b 100644
--- a/app/src/usb/pipe.rs
+++ b/app/src/usb/pipe.rs
@@ -465,7 +465,7 @@ impl PipeDesc {
}
#[derive(Clone, Copy, Debug)]
-#[repr(C, packed)]
+#[repr(C)]
// 16 bytes per bank.
pub(crate) struct BankDesc {
pub addr: Addr,