diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-30 09:48:19 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-30 09:48:19 -0400 |
commit | d94d88faa9c0e1a5c18b21962964dfdda3011a1d (patch) | |
tree | c6b55724f512b0ca221ccf5925006c7e568a2991 /usbh/src/pipe/status_bk.rs | |
parent | c20e974373e9daeb81278794bc73033b88eb756c (diff) | |
download | samd21-demo-d94d88faa9c0e1a5c18b21962964dfdda3011a1d.tar.gz samd21-demo-d94d88faa9c0e1a5c18b21962964dfdda3011a1d.zip |
Use `repr(packed)` on pipe descriptors structure.
Ensure offsets and sizes are correct with tests.
Diffstat (limited to 'usbh/src/pipe/status_bk.rs')
-rw-r--r-- | usbh/src/pipe/status_bk.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usbh/src/pipe/status_bk.rs b/usbh/src/pipe/status_bk.rs index 4ddb420..489fc62 100644 --- a/usbh/src/pipe/status_bk.rs +++ b/usbh/src/pipe/status_bk.rs @@ -5,7 +5,7 @@ /// Reset: 0xxxxxxx /// Property: NA #[derive(Clone, Copy, Debug)] -#[repr(C)] +#[repr(C, packed)] pub(crate) struct StatusBk(u8); pub(crate) struct R { |