mirror of
https://github.com/ErnyTech/Open-USB-Extreme
synced 2025-01-15 13:07:33 +01:00
toD: Added align attribute on D
This commit is contained in:
parent
cf6a1172ae
commit
63d49487a4
@ -7,13 +7,15 @@ enum USBEXTREME_NAME_EXT_LENGTH = 10;
|
||||
enum USBEXTREME_MAGIC = 0x08;
|
||||
enum USBEXTREME_HEADER_SIZE = usb_extreme_base.sizeof;
|
||||
|
||||
struct usb_extreme_base {
|
||||
align(1) struct usb_extreme_base {
|
||||
align(1):
|
||||
uint8_t[6 + USBEXTREME_ID_LENGTH + USBEXTREME_NAME_LENGTH] empty;
|
||||
uint8_t magic;
|
||||
uint8_t[10] empty2;
|
||||
}
|
||||
|
||||
struct usb_extreme_v0 {
|
||||
align(1) struct usb_extreme_v0 {
|
||||
align(1):
|
||||
char[USBEXTREME_NAME_LENGTH] name;
|
||||
char[USBEXTREME_ID_LENGTH] id;
|
||||
uint8_t n_parts;
|
||||
@ -23,7 +25,8 @@ struct usb_extreme_v0 {
|
||||
uint8_t[USBEXTREME_NAME_EXT_LENGTH] empty2;
|
||||
}
|
||||
|
||||
struct usb_extreme_v1 {
|
||||
align(1) struct usb_extreme_v1 {
|
||||
align(1):
|
||||
char[USBEXTREME_NAME_LENGTH] name;
|
||||
char[USBEXTREME_ID_LENGTH] id;
|
||||
uint8_t n_parts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user