Relocate compiler #defines for PACKED, ALIGNED, SECTION.
This commit is contained in:
@ -28,9 +28,6 @@
|
||||
|
||||
#include "usb_type.h"
|
||||
|
||||
#define ATTR_ALIGNED(x) __attribute__ ((aligned(x)))
|
||||
#define ATTR_SECTION(x) __attribute__ ((section(x)))
|
||||
|
||||
extern bool usb_set_configuration(
|
||||
usb_device_t* const device,
|
||||
const uint_fast8_t configuration_number
|
||||
|
@ -25,6 +25,11 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// TODO: Move this to some common compiler-tricks location.
|
||||
#define ATTR_PACKED __attribute__((packed))
|
||||
#define ATTR_ALIGNED(x) __attribute__ ((aligned(x)))
|
||||
#define ATTR_SECTION(x) __attribute__ ((section(x)))
|
||||
|
||||
typedef struct {
|
||||
uint8_t request_type;
|
||||
uint8_t request;
|
||||
|
Reference in New Issue
Block a user