2020-09-11 10:11:25 +08:00
|
|
|
/*
|
2021-08-06 17:21:19 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2020-09-11 10:11:25 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-08-20 zx.chen add T-HEAD header file csi_core.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "csi_core.h"
|
|
|
|
#include "drv_usart.h"
|
|
|
|
|
|
|
|
extern int __bss_end__;
|
|
|
|
#define SYS_HEAP_BEGIN (&__bss_end__)
|
|
|
|
|
|
|
|
#include "core_rv32.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern usart_handle_t console_handle;
|
|
|
|
extern void ioreuse_initial(void);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2021-07-14 20:12:55 +08:00
|
|
|
* This function will initial smart-evb board.
|
2020-09-11 10:11:25 +08:00
|
|
|
*/
|
|
|
|
void rt_hw_board_init(void)
|
|
|
|
{
|
|
|
|
#ifdef RT_USING_COMPONENTS_INIT
|
|
|
|
rt_components_board_init();
|
|
|
|
#endif
|
|
|
|
/* initialize hardware usart */
|
|
|
|
rt_hw_usart_init();
|
|
|
|
|
|
|
|
#ifdef RT_USING_CONSOLE
|
|
|
|
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RT_USING_HEAP
|
|
|
|
rt_system_heap_init((void *)SYS_HEAP_BEGIN, (void *)E906FD_IRAM_END);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/*@}*/
|