-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCompiler_Cfg.h
More file actions
87 lines (69 loc) · 3.95 KB
/
Compiler_Cfg.h
File metadata and controls
87 lines (69 loc) · 3.95 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef COMPILER_CFG_H
#define COMPILER_CFG_H
/*********************************************************************/
/* Published information */
#define Can_MODULE_ID 0x020u
#define Can_VENDOR_ID 0x002Bu /* vendor id of NXP */
#define Can_AR_RELEASE_MAJOR_VERSION 0x01u
#define Can_AR_RELEASE_MINOR_VERSION 0x00u
#define Can_AR_RELEASE_REVISION_VERSION 0x00u
#define Can_SW_MAJOR_VERSION 0x04u
#define Can_SW_MINOR_VERSION 0x03u
#define Can_SW_PATCH_VERSION 0x01u
/*********************************************************************/
/* 7.1.2 */
/* this is compiler keywords (not C keywords) must by used with function, variables and, pointers to work
in prober way */
/* for ARM C (GCC, ADS) compilers no need for those*/
#define Can_CODE /* used for ordinary code */
#define Can_CODE_FAST /* used for code that shall go into fast code memory segments */
#define Can_CODE_SLOW /* used for code that shall go into slow code memory segments */
#define Can_CALIB /* used for calibration constants */
#define Can_CONFIG_DATA /* used for cused for module configuration constants */
#define Can_CONST /* used for global or static constants */
#define Can_APPL_DATA /* used for global or static pointer */
#define Can_APPL_CONST /* used for global or static pointer to constants */
#define REGSPACE /* used for staitc Pointer to Reg (ptr to volatile) carry adress of value
that changed in any time by interrupts */
/* used for all global or static variables */
#define Can_VAR_NO_INIT /* for variables that are never cleared and never initialized */
#define Can_VAR_CLEARED /* for variables that are cleared to zero after every reset */
#define Can_VAR_POWER_ON_CLEARED /* for variables that are cleared to zero only after power on
reset */
#define Can_VAR_INIT /* for variables that are initialized with values after every
reset */
#define Can_VAR_ON_INIT /* for variables that are initialized with values only after
power on reset */
/* used for all global or static variables that have at least one of the following properties: accessed
bitwise, frequently used, high number of accesses in source code */
#define Can_VAR_FAST_NO_INIT /* for variables that are never cleared and never initialized
*/
#define Can_VAR_FAST_CLEARED /* for variables that are cleared to zero after every reset */
#define Can_VAR_FAST_POWER_ON_CLEARED /* for variables that are cleared to zero only after power on
reset */
#define Can_VAR_FAST_INIT /* for variables that are initialized with values after every
reset */
#define Can_VAR_FAST_ON_INIT /* for variables that are initialized with values only after
power on reset */
/* used for all infrequently accessed global or static variables */
#define Can_VAR_SLOW__NO_INIT /* for variables that are never cleared and never initialized
*/
#define Can_VAR_SLOW__CLEARED /* for variables that are cleared to zero after every reset */
#define Can_VAR_SLOW__POWER_ON_CLEARED /* for variables that are cleared to zero only after power on
reset */
#define Can_VAR_SLOW__INIT /* for variables that are initialized with values after every
reset */
#define Can_VAR_SLOW__ON_INIT /* for variables that are initialized with values only after
power on reset */
/* used for global or static variables which are accessible from a calibration tool */
#define Can_INTERNAL_VAR__NO_INIT /* for variables that are never cleared and never
initialized */
#define Can_INTERNAL_VAR__CLEARED /* for variables that are cleared to zero after every
reset */
#define Can_INTERNAL_VAR__POWER_ON_CLEARED /* for variables that are cleared to zero only after
power on reset */
#define Can_INTERNAL_VAR__INIT /* for variables that are initialized with values after
every reset */
#define Can_INTERNAL_VAR__ON_INIT /* for variables that are initialized with values only
after power on reset */
#endif /* COMPILER_CFG_H */