1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2009-09-22     Bernard      add board.h to this bsp
9  * 2017-10-20     ZYH          emmm...setup for HAL Libraries
10  */
11 
12 /* <<< Use Configuration Wizard in Context Menu >>> */
13 #ifndef __BOARD_H__
14 #define __BOARD_H__
15 
16 #include "ch32v10x.h"
17 #include <rthw.h>
18 #include "drivers/dev_pin.h"
19 #define CH32V10X_PIN_NUMBERS   64
20 
21 /* board configuration */
22 #define SRAM_SIZE  20
23 #define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
24 
25 extern int _ebss;
26 #define HEAP_BEGIN  ((void *)&_ebss)
27 #define HEAP_END    (SRAM_END-_stack_size)
28 
29 
30 /* extern volatile unsigned long  interrupter_sp_saver */
31 void rt_hw_board_init(void);
32 
33 #endif /* __BOARD_H__ */
34