diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/K32L3A60/project_template/board.c')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/K32L3A60/project_template/board.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/K32L3A60/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/K32L3A60/project_template/board.c new file mode 100644 index 000000000..db5597587 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/K32L3A60/project_template/board.c | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | #include <stdint.h> | ||
9 | #include "fsl_common.h" | ||
10 | #include "fsl_debug_console.h" | ||
11 | #include "board.h" | ||
12 | /******************************************************************************* | ||
13 | * Variables | ||
14 | ******************************************************************************/ | ||
15 | |||
16 | /******************************************************************************* | ||
17 | * Code | ||
18 | ******************************************************************************/ | ||
19 | /* Initialize debug console. */ | ||
20 | void BOARD_InitDebugConsole(void) | ||
21 | { | ||
22 | CLOCK_SetIpSrc(kCLOCK_Lpuart0, kCLOCK_IpSrcFircAsync); | ||
23 | |||
24 | uint32_t uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ; | ||
25 | |||
26 | DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq); | ||
27 | } | ||