Files
xiuos/Ubiquitous/XiZi_IIoT/board/imx8mp/include/board.h
T
2025-02-26 19:42:02 +08:00

67 lines
2.0 KiB
C

/*
* Copyright 2019-2020 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _BOARD_H_
#define _BOARD_H_
#include "clock_config.h"
#include "fsl_clock.h"
#include "fsl_audiomix.h"
/*******************************************************************************
* Definitions
******************************************************************************/
/*! @brief The board name */
#define BOARD_NAME "MIMX8MP-EVK"
#define MANUFACTURER_NAME "NXP"
#define BOARD_DOMAIN_ID (1U)
/* The UART to use for debug messages. */
#define BOARD_DEBUG_UART_TYPE kSerialPort_Uart
#define BOARD_DEBUG_UART_BAUDRATE (115200U)
#define BOARD_DEBUG_UART_BASEADDR UART4_BASE
#define BOARD_DEBUG_UART_INSTANCE (4U)
#define BOARD_DEBUG_UART_CLK_FREQ \
CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootUart4)) / \
(CLOCK_GetRootPostDivider(kCLOCK_RootUart4)) / 10
#define BOARD_UART_IRQ UART4_IRQn
#define BOARD_UART_IRQ_HANDLER UART4_IRQHandler
#define BOARD_GPC_BASEADDR GPC
#define BOARD_MU_IRQ MU1_M7_IRQn
#define BOARD_CODEC_I2C I2C3
#define BOARD_CODEC_I2C_INSTANCE (3U)
#define BOARD_CODEC_I2C_CLOCK_FREQ (16000000U)
/* Shared memory base for RPMsg communication. */
#define VDEV0_VRING_BASE (0x55000000U)
#define RESOURCE_TABLE_OFFSET (0xFF000)
extern int __HeapBase;
extern int __HeapLimit;
#define HEAP_BEGIN (&__HeapBase)
#define HEAP_END (&__HeapLimit)
#define HEAP_SIZE ((uint32_t)HEAP_END - (uint32_t)HEAP_BEGIN)
#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */
/*******************************************************************************
* API
******************************************************************************/
void BOARD_InitDebugConsole(void);
void BOARD_InitMemory(void);
void BOARD_RdcInit(void);
void InitBoardHardware();
#if defined(__cplusplus)
}
#endif /* __cplusplus */
#endif /* _BOARD_H_ */