1 /*
2  * Copyright (c) 2021, Shenzhen Academy of Aerospace Technology
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2021-11-16     Dystopia     the first version
9  */
10 
11 #include "board.h"
12 #include "interrupt.h"
13 #include "drv_timer.h"
14 #include "common.h"
15 
16 #include <rtthread.h>
17 
18 /**
19  * This function will initial board.
20  */
rt_hw_board_init(void)21 void rt_hw_board_init(void)
22 {
23     // initial CPU core
24     keystone_cpu_init();
25 
26     // initial interrupt controller
27     rt_hw_interrupt_init();
28 
29     // initial system timer
30     rt_hw_system_timer_init();
31 
32     /* initialize memory system */
33     rt_kprintf("heap: 0x%08x - 0x%08x\n", RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
34     rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
35 
36     rt_hw_system_timer_start();
37 }
38