diff options
Diffstat (limited to 'lib/chibios/os/common/startup/e200/devices/SPC560Bxx/boot.h')
-rw-r--r-- | lib/chibios/os/common/startup/e200/devices/SPC560Bxx/boot.h | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/e200/devices/SPC560Bxx/boot.h b/lib/chibios/os/common/startup/e200/devices/SPC560Bxx/boot.h new file mode 100644 index 000000000..c60af003c --- /dev/null +++ b/lib/chibios/os/common/startup/e200/devices/SPC560Bxx/boot.h | |||
@@ -0,0 +1,114 @@ | |||
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 SPC560Bxx. | ||
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_WE 0x00040000 | ||
43 | #define MSR_CE 0x00020000 | ||
44 | #define MSR_EE 0x00008000 | ||
45 | #define MSR_PR 0x00004000 | ||
46 | #define MSR_ME 0x00001000 | ||
47 | #define MSR_DE 0x00000200 | ||
48 | #define MSR_IS 0x00000020 | ||
49 | #define MSR_DS 0x00000010 | ||
50 | #define MSR_RI 0x00000002 | ||
51 | /** @} */ | ||
52 | |||
53 | /*===========================================================================*/ | ||
54 | /* Module pre-compile time settings. */ | ||
55 | /*===========================================================================*/ | ||
56 | |||
57 | /* | ||
58 | * BUCSR default settings. | ||
59 | */ | ||
60 | #if !defined(BOOT_BUCSR_DEFAULT) || defined(__DOXYGEN__) | ||
61 | #define BOOT_BUCSR_DEFAULT (BUCSR_BPEN | BUCSR_BALLOC_BFI) | ||
62 | #endif | ||
63 | |||
64 | /* | ||
65 | * MSR default settings. | ||
66 | */ | ||
67 | #if !defined(BOOT_MSR_DEFAULT) || defined(__DOXYGEN__) | ||
68 | #define BOOT_MSR_DEFAULT (MSR_WE | MSR_CE | MSR_ME) | ||
69 | #endif | ||
70 | |||
71 | /* | ||
72 | * Boot default settings. | ||
73 | */ | ||
74 | #if !defined(BOOT_PERFORM_CORE_INIT) || defined(__DOXYGEN__) | ||
75 | #define BOOT_PERFORM_CORE_INIT 1 | ||
76 | #endif | ||
77 | |||
78 | /* | ||
79 | * VLE mode default settings. | ||
80 | */ | ||
81 | #if !defined(BOOT_USE_VLE) || defined(__DOXYGEN__) | ||
82 | #define BOOT_USE_VLE 1 | ||
83 | #endif | ||
84 | |||
85 | /* | ||
86 | * RAM relocation flag. | ||
87 | */ | ||
88 | #if !defined(BOOT_RELOCATE_IN_RAM) || defined(__DOXYGEN__) | ||
89 | #define BOOT_RELOCATE_IN_RAM 0 | ||
90 | #endif | ||
91 | |||
92 | /*===========================================================================*/ | ||
93 | /* Derived constants and error checks. */ | ||
94 | /*===========================================================================*/ | ||
95 | |||
96 | /*===========================================================================*/ | ||
97 | /* Module data structures and types. */ | ||
98 | /*===========================================================================*/ | ||
99 | |||
100 | /*===========================================================================*/ | ||
101 | /* Module macros. */ | ||
102 | /*===========================================================================*/ | ||
103 | |||
104 | /*===========================================================================*/ | ||
105 | /* External declarations. */ | ||
106 | /*===========================================================================*/ | ||
107 | |||
108 | /*===========================================================================*/ | ||
109 | /* Module inline functions. */ | ||
110 | /*===========================================================================*/ | ||
111 | |||
112 | #endif /* BOOT_H */ | ||
113 | |||
114 | /** @} */ | ||