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