diff options
| author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
|---|---|---|
| committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
| commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
| tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c | |
Diffstat (limited to 'lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c')
| -rw-r--r-- | lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c b/lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c new file mode 100644 index 000000000..309491152 --- /dev/null +++ b/lib/chibios-contrib/os/hal/boards/EXP430FR6989/board.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* | ||
| 2 | ChibiOS - Copyright (C) 2016 Andrew Wygle aka awygle | ||
| 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 | #include "hal.h" | ||
| 18 | |||
| 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 | */ | ||
| 24 | #if HAL_USE_PAL || defined(__DOXYGEN__) | ||
| 25 | const PALConfig pal_default_config = | ||
| 26 | { | ||
| 27 | {VAL_IOPORT1_OUT, VAL_IOPORT1_DIR, VAL_IOPORT1_REN, VAL_IOPORT1_SEL0, | ||
| 28 | VAL_IOPORT1_SEL1}, | ||
| 29 | {VAL_IOPORT2_OUT, VAL_IOPORT2_DIR, VAL_IOPORT2_REN, VAL_IOPORT2_SEL0, | ||
| 30 | VAL_IOPORT2_SEL1}, | ||
| 31 | {VAL_IOPORT3_OUT, VAL_IOPORT3_DIR, VAL_IOPORT3_REN, VAL_IOPORT3_SEL0, | ||
| 32 | VAL_IOPORT3_SEL1}, | ||
| 33 | {VAL_IOPORT4_OUT, VAL_IOPORT4_DIR, VAL_IOPORT4_REN, VAL_IOPORT4_SEL0, | ||
| 34 | VAL_IOPORT4_SEL1}, | ||
| 35 | {VAL_IOPORT5_OUT, VAL_IOPORT5_DIR, VAL_IOPORT5_REN, VAL_IOPORT5_SEL0, | ||
| 36 | VAL_IOPORT5_SEL1}, | ||
| 37 | {VAL_IOPORT0_OUT, VAL_IOPORT0_DIR, VAL_IOPORT0_REN, VAL_IOPORT0_SEL0, | ||
| 38 | VAL_IOPORT0_SEL1} | ||
| 39 | }; /* Set UART TX pin correctly */ | ||
| 40 | #endif /* HAL_USE_PAL */ | ||
| 41 | |||
| 42 | /** | ||
| 43 | * Board-specific initialization code. | ||
| 44 | */ | ||
| 45 | void boardInit(void) { | ||
| 46 | |||
| 47 | /* | ||
| 48 | * External interrupts setup, all disabled initially. | ||
| 49 | */ | ||
| 50 | _disable_interrupts(); | ||
| 51 | |||
| 52 | } | ||
