Relocate compiler #defines for PACKED, ALIGNED, SECTION.

This commit is contained in:
Jared Boone
2012-10-13 17:01:42 -07:00
parent d398cfcc1d
commit 7e34950b24
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;