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/ext_reg.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/ext_reg.rs')
-rw-r--r-- | usbh/src/pipe/ext_reg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usbh/src/pipe/ext_reg.rs b/usbh/src/pipe/ext_reg.rs index 023ce9f..9778f1b 100644 --- a/usbh/src/pipe/ext_reg.rs +++ b/usbh/src/pipe/ext_reg.rs @@ -5,7 +5,7 @@ /// Reset: 0xxxxxxxx /// Property: NA #[derive(Clone, Copy, Debug)] -#[repr(C)] +#[repr(C, packed)] pub(crate) struct ExtReg(u16); pub(crate) struct R { |