40 lines
812 B
C
40 lines
812 B
C
/**
|
|
* @file board.h
|
|
* @brief board config header.
|
|
*
|
|
* @copyright Copyright (c) 2022 Semidrive Semiconductor.
|
|
* All rights reserved.
|
|
*/
|
|
#include <sdrv_uart.h>
|
|
|
|
#define DEVICE_BASE(dev) _DEVICE_BASE(dev)
|
|
#define _DEVICE_BASE(dev) APB_##dev##_BASE
|
|
|
|
#define DEVICE_INTR(dev) _DEVICE_INTR(dev)
|
|
#define _DEVICE_INTR(dev) dev##_INTR_NUM
|
|
|
|
extern sdrv_uart_t g_console_uart;
|
|
|
|
/**
|
|
* @brief board reset init
|
|
*/
|
|
void board_reset_init(void);
|
|
|
|
/**
|
|
* @brief board debug console uart init
|
|
*/
|
|
void board_debug_console_init(void);
|
|
|
|
#if CONFIG_ARCH_WITH_MPU
|
|
/**
|
|
* @brief board memory protect unit (mpu) init
|
|
*/
|
|
void board_mpu_init(void);
|
|
#endif
|
|
|
|
/*
|
|
* Call constructor functions.
|
|
* This is required when the project has C++ modules.
|
|
*/
|
|
void call_constructors(void);
|