aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c
new file mode 100644
index 000000000..9d3861003
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MK22F51212/project_template/board.c
@@ -0,0 +1,27 @@
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_debug_console.h"
12#include "board.h"
13
14/*******************************************************************************
15 * Variables
16 ******************************************************************************/
17
18/*******************************************************************************
19 * Code
20 ******************************************************************************/
21/* Initialize debug console. */
22void BOARD_InitDebugConsole(void)
23{
24 #if (defined BOARD_USE_VIRTUALCOM)
25 DbgConsole_Init(0, 0, DEBUG_CONSOLE_DEVICE_TYPE_USBCDC, 0);
26 #endif
27}