diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/board.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/board.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/board.h new file mode 100644 index 000000000..722f9310f --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/board.h | |||
@@ -0,0 +1,53 @@ | |||
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 "MIMX8MN-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 GPV5_BASE_ADDR (0x32500000) | ||
31 | #define FORCE_INCR_OFFSET (0x4044) | ||
32 | #define FORCE_INCR_BIT_MASK (0x2) | ||
33 | |||
34 | #define BOARD_GPC_BASEADDR GPC | ||
35 | #define BOARD_MU_IRQ_NUM MU_M7_IRQn | ||
36 | |||
37 | #if defined(__cplusplus) | ||
38 | extern "C" { | ||
39 | #endif /* __cplusplus */ | ||
40 | |||
41 | /******************************************************************************* | ||
42 | * API | ||
43 | ******************************************************************************/ | ||
44 | |||
45 | void BOARD_InitDebugConsole(void); | ||
46 | void BOARD_InitMemory(void); | ||
47 | void BOARD_RdcInit(void); | ||
48 | |||
49 | #if defined(__cplusplus) | ||
50 | } | ||
51 | #endif /* __cplusplus */ | ||
52 | |||
53 | #endif /* _BOARD_H_ */ | ||