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) 33 extern "C" { 34 #endif /* __cplusplus */ 35 36 /******************************************************************************* 37 * API 38 ******************************************************************************/ 39 40 void BOARD_InitDebugConsole(void); 41 void BOARD_InitMemory(void); 42 void BOARD_RdcInit(void); 43 44 #if defined(__cplusplus) 45 } 46 #endif /* __cplusplus */ 47 48 #endif /* _BOARD_H_ */ 49