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