rt-thread-official/bsp/wch/risc-v/ch32v307v-r1/board/board.h

31 lines
653 B
C
Raw Normal View History

2022-08-24 09:51:35 +08:00
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-08-23 liYony first version
*/
/* <<< Use Configuration Wizard in Context Menu >>> */
2022-08-24 09:51:35 +08:00
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
2022-08-24 09:51:35 +08:00
#include "ch32v30x.h"
#include "drv_gpio.h"
#include "drv_pwm.h"
2022-08-24 09:51:35 +08:00
/* board configuration */
#define SRAM_SIZE 96
#define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
extern int _ebss, _susrstack;
2022-08-24 09:51:35 +08:00
#define HEAP_BEGIN ((void *)&_ebss)
#define HEAP_END ((void *)&_susrstack)
2022-08-24 09:51:35 +08:00
void rt_hw_board_init(void);
#endif /* __BOARD_H__ */