aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h
new file mode 100644
index 000000000..e078d8c4f
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MM3/project_template/board.h
@@ -0,0 +1,48 @@
1/*
2 * Copyright 2018 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 "MIMX8MM-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 kSerialPort_Uart
21#define BOARD_DEBUG_UART_BAUDRATE 115200u
22#define BOARD_DEBUG_UART_BASEADDR UART4_BASE
23#define BOARD_DEBUG_UART_INSTANCE 4U
24#define BOARD_DEBUG_UART_CLK_FREQ \
25 CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootUart4)) / \
26 (CLOCK_GetRootPostDivider(kCLOCK_RootUart4)) / 10
27#define BOARD_UART_IRQ UART4_IRQn
28#define BOARD_UART_IRQ_HANDLER UART4_IRQHandler
29
30#define BOARD_GPC_BASEADDR GPC
31#define BOARD_MU_IRQ_NUM MU_M4_IRQn
32#if defined(__cplusplus)
33extern "C" {
34#endif /* __cplusplus */
35
36/*******************************************************************************
37 * API
38 ******************************************************************************/
39
40void BOARD_InitDebugConsole(void);
41void BOARD_InitMemory(void);
42void BOARD_RdcInit(void);
43
44#if defined(__cplusplus)
45}
46#endif /* __cplusplus */
47
48#endif /* _BOARD_H_ */