blob: e5d5436df8049aea08478e064cd11ced2ad66dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef _DEFINES_H
#define _DEFINES_H
#define __attribute_const__ __attribute__((__const__))
/* type properties */
#ifndef __packed
#define __packed __attribute__((packed))
#endif
#ifndef __aligned
#define __aligned(alignment) __attribute__((aligned(alignment)))
#endif
#ifndef __unused
#define __unused __attribute__((unused))
#endif
/* linkage */
#ifndef __section
#define __section(name) __attribute__((section(name)))
#endif
/* force placement in zero-waitstate memory */
#define __ramtext __section(".ramtext")
#endif /* !_DEFINES_H */
|