aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c')
-rw-r--r--lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c b/lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c
new file mode 100644
index 000000000..3efd66337
--- /dev/null
+++ b/lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_4_1/board.c
@@ -0,0 +1,47 @@
1/*
2 ChibiOS - Copyright (C) 2015 RedoX https://github.com/RedoXyde
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#include "hal.h"
17
18#if HAL_USE_PAL || defined(__DOXYGEN__)
19/**
20 * @brief PAL setup.
21 * @details Digital I/O ports static configuration as defined in @p board.h.
22 * This variable is used by the HAL when initializing the PAL driver.
23 */
24const PALConfig pal_default_config =
25{
26};
27#endif
28
29/**
30 * @brief Early initialization code.
31 * @details This initialization must be performed just after stack setup
32 * and before any other initialization.
33 */
34void __early_init(void) {
35}
36
37void __late_init(void) {
38 MIMXRT1062_clock_init();
39 MIMXRT1062_MPU_init();
40}
41
42/**
43 * @brief Board-specific initialization code.
44 * @todo Add your board-specific code, if any.
45 */
46void boardInit(void) {
47}