include: usb: add alignment attribute to macro USBD_CFG_DATA_DEFINE

It could be observed on native_posix_64 platform that
without alignment attribute the usb_cfg_data structures
are placed with a gap or padding in specified RAM section.
This breaks the possibility to iterate over the structures.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-12-09 10:30:02 +01:00 committed by Maureen Helm
commit dfb7a5952f

View file

@ -68,7 +68,7 @@ extern "C" {
* inside usb data section in the RAM.
*/
#define USBD_CFG_DATA_DEFINE(p, name) \
static __in_section(usb, data_##p, name) __used
static __in_section(usb, data_##p, name) __used __aligned(4)
/*************************************************************************
* USB configuration