aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c
new file mode 100644
index 000000000..3a1d116cd
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MK65F18/project_template/board.c
@@ -0,0 +1,30 @@
1/*
2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#include <stdint.h>
10#include "fsl_common.h"
11#include "fsl_port.h"
12#include "clock_config.h"
13#include "board.h"
14#include "fsl_debug_console.h"
15
16/*******************************************************************************
17 * Variables
18 ******************************************************************************/
19
20/*******************************************************************************
21 * Code
22 ******************************************************************************/
23/* Initialize debug console. */
24void BOARD_InitDebugConsole(void)
25{
26 uint32_t uartClkSrcFreq;
27
28 uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;
29 DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);
30}