summaryrefslogtreecommitdiff
path: root/include-mw/function_target.h
blob: 84b7e1cda266528c25c816a718aa033e0650fff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef GUARD_FUNCTION_TARGET_H
#define GUARD_FUNCTION_TARGET_H

#define ARM_FUNC _Pragma("thumb off")
#define THUMB_FUNC _Pragma("thumb on")

#define ENUMS_ALWAYS_INT_ON _Pragma("enumsalwaysint on")
#define ENUMS_ALWAYS_INT_OFF _Pragma("enumsalwaysint off")
#define ENUMS_ALWAYS_INT_RESET _Pragma("enumsalwaysint reset")

#define ALIGN(num) __attribute__ ((aligned(num)))

#endif //GUARD_FUNCTION_TARGET_H