1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022/12/25     flyingcys    first version
9  * 2023/03/15     flyingcys    update bsp file structure
10  */
11 
12 #ifndef BOARD_H__
13 #define BOARD_H__
14 
15 #include <rtconfig.h>
16 
17 #include "bflb_uart.h"
18 #include "bflb_gpio.h"
19 #include "bflb_clock.h"
20 #include "bflb_rtc.h"
21 #include "bflb_flash.h"
22 #include "bl808_glb.h"
23 #include "bl808_psram_uhs.h"
24 #include "bl808_tzc_sec.h"
25 #include "bl808_ef_cfg.h"
26 #include "bl808_uhs_phy.h"
27 
28 #define CONFIG_D0_FLASH_ADDR             0x100000
29 #define CONFIG_LP_FLASH_ADDR             0x0C0000
30 
31 extern uint8_t __HeapBase;
32 extern uint8_t __HeapLimit;
33 
34 #define RT_HW_HEAP_BEGIN    (void*)&__HeapBase
35 #define RT_HW_HEAP_END      (void*)&__HeapLimit
36 
37 void rt_hw_board_init(void);
38 
39 #endif
40