aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h
new file mode 100644
index 000000000..4a442bd06
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MQ6/project_template/board.h
@@ -0,0 +1,46 @@
1/*
2 * Copyright 2017 NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef _BOARD_H_
9#define _BOARD_H_
10#include "clock_config.h"
11#include "fsl_clock.h"
12/*******************************************************************************
13 * Definitions
14 ******************************************************************************/
15/*! @brief The board name */
16#define BOARD_NAME "MIMX8MQ-EVK"
17#define MANUFACTURER_NAME "NXP"
18#define BOARD_DOMAIN_ID (1)
19/* The UART to use for debug messages. */
20#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_UART
21#define BOARD_DEBUG_UART_BAUDRATE 115200u
22#define BOARD_DEBUG_UART_BASEADDR UART2_BASE
23#define BOARD_DEBUG_UART_INSTANCE 2U
24#define BOARD_DEBUG_UART_CLK_FREQ \
25 CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootUart2)) / \
26 (CLOCK_GetRootPostDivider(kCLOCK_RootUart2)) / 10
27#define BOARD_UART_IRQ UART2_IRQn
28#define BOARD_UART_IRQ_HANDLER UART2_IRQHandler
29
30#if defined(__cplusplus)
31extern "C" {
32#endif /* __cplusplus */
33
34/*******************************************************************************
35 * API
36 ******************************************************************************/
37
38void BOARD_InitDebugConsole(void);
39void BOARD_InitMemory(void);
40void BOARD_RdcInit(void);
41
42#if defined(__cplusplus)
43}
44#endif /* __cplusplus */
45
46#endif /* _BOARD_H_ */