diff options
Diffstat (limited to 'lib/chibios/os/common/startup/e200/devices/SPC563Mxx/boot.h')
-rw-r--r-- | lib/chibios/os/common/startup/e200/devices/SPC563Mxx/boot.h | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/e200/devices/SPC563Mxx/boot.h b/lib/chibios/os/common/startup/e200/devices/SPC563Mxx/boot.h new file mode 100644 index 000000000..c1a298365 --- /dev/null +++ b/lib/chibios/os/common/startup/e200/devices/SPC563Mxx/boot.h | |||
@@ -0,0 +1,119 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /** | ||
18 | * @file boot.h | ||
19 | * @brief Boot parameters for the SPC563Mxx. | ||
20 | * @{ | ||
21 | */ | ||
22 | |||
23 | #ifndef BOOT_H | ||
24 | #define BOOT_H | ||
25 | |||
26 | /*===========================================================================*/ | ||
27 | /* Module constants. */ | ||
28 | /*===========================================================================*/ | ||
29 | |||
30 | /** | ||
31 | * @name BUCSR registers definitions | ||
32 | * @{ | ||
33 | */ | ||
34 | #define BUCSR_BPEN 0x00000001 | ||
35 | #define BUCSR_BALLOC_BFI 0x00000200 | ||
36 | /** @} */ | ||
37 | |||
38 | /** | ||
39 | * @name MSR register definitions | ||
40 | * @{ | ||
41 | */ | ||
42 | #define MSR_UCLE 0x04000000 | ||
43 | #define MSR_SPE 0x02000000 | ||
44 | #define MSR_WE 0x00040000 | ||
45 | #define MSR_CE 0x00020000 | ||
46 | #define MSR_EE 0x00008000 | ||
47 | #define MSR_PR 0x00004000 | ||
48 | #define MSR_FP 0x00002000 | ||
49 | #define MSR_ME 0x00001000 | ||
50 | #define MSR_FE0 0x00000800 | ||
51 | #define MSR_DE 0x00000200 | ||
52 | #define MSR_FE1 0x00000100 | ||
53 | #define MSR_IS 0x00000020 | ||
54 | #define MSR_DS 0x00000010 | ||
55 | #define MSR_RI 0x00000002 | ||
56 | /** @} */ | ||
57 | |||
58 | /*===========================================================================*/ | ||
59 | /* Module pre-compile time settings. */ | ||
60 | /*===========================================================================*/ | ||
61 | |||
62 | /* | ||
63 | * BUCSR default settings. | ||
64 | */ | ||
65 | #if !defined(BOOT_BUCSR_DEFAULT) || defined(__DOXYGEN__) | ||
66 | #define BOOT_BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BALLOC_BFI) | ||
67 | #endif | ||
68 | |||
69 | /* | ||
70 | * MSR default settings. | ||
71 | */ | ||
72 | #if !defined(BOOT_MSR_DEFAULT) || defined(__DOXYGEN__) | ||
73 | #define BOOT_MSR_DEFAULT (MSR_SPE | MSR_WE | MSR_CE | MSR_ME) | ||
74 | #endif | ||
75 | |||
76 | /* | ||
77 | * Boot default settings. | ||
78 | */ | ||
79 | #if !defined(BOOT_PERFORM_CORE_INIT) || defined(__DOXYGEN__) | ||
80 | #define BOOT_PERFORM_CORE_INIT 1 | ||
81 | #endif | ||
82 | |||
83 | /* | ||
84 | * VLE mode default settings. | ||
85 | */ | ||
86 | #if !defined(BOOT_USE_VLE) || defined(__DOXYGEN__) | ||
87 | #define BOOT_USE_VLE 1 | ||
88 | #endif | ||
89 | |||
90 | /* | ||
91 | * RAM relocation flag. | ||
92 | */ | ||
93 | #if !defined(BOOT_RELOCATE_IN_RAM) || defined(__DOXYGEN__) | ||
94 | #define BOOT_RELOCATE_IN_RAM 0 | ||
95 | #endif | ||
96 | |||
97 | /*===========================================================================*/ | ||
98 | /* Derived constants and error checks. */ | ||
99 | /*===========================================================================*/ | ||
100 | |||
101 | /*===========================================================================*/ | ||
102 | /* Module data structures and types. */ | ||
103 | /*===========================================================================*/ | ||
104 | |||
105 | /*===========================================================================*/ | ||
106 | /* Module macros. */ | ||
107 | /*===========================================================================*/ | ||
108 | |||
109 | /*===========================================================================*/ | ||
110 | /* External declarations. */ | ||
111 | /*===========================================================================*/ | ||
112 | |||
113 | /*===========================================================================*/ | ||
114 | /* Module inline functions. */ | ||
115 | /*===========================================================================*/ | ||
116 | |||
117 | #endif /* BOOT_H */ | ||
118 | |||
119 | /** @} */ | ||