Reverted the __packed and __aligned change.
We should not add compiler extensions, it is not our job. We are not a selfcontained project as kernel is so we should not introduce things like this. If we need to add some abstraction for this in the future to support compilers doing these things differently then we will do that the same way we dealt with the depricated attribute.
This commit is contained in:
@@ -69,7 +69,7 @@ struct _usbd_device {
|
||||
DATA_IN, LAST_DATA_IN, STATUS_IN,
|
||||
DATA_OUT, LAST_DATA_OUT, STATUS_OUT,
|
||||
} state;
|
||||
struct usb_setup_data req __aligned(4);
|
||||
struct usb_setup_data req __attribute__((aligned(4)));
|
||||
uint8_t *ctrl_buf;
|
||||
uint16_t ctrl_len;
|
||||
void (*complete)(usbd_device *usbd_dev,
|
||||
|
||||
Reference in New Issue
Block a user