blob: 437bab131d32e4d02c7a525c5df33d2a705ecc16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* 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 >>> */
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include "ch32v30x.h"
#include "drv_gpio.h"
#include "drv_pwm.h"
/* board configuration */
#define SRAM_SIZE 96
#define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
#define CH32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define CH32_FLASH_SIZE (224 * 1024)
#define CH32_FLASH_END_ADDRESS ((uint32_t)(CH32_FLASH_START_ADRESS + CH32_FLASH_SIZE))
extern int _ebss, _susrstack;
#define HEAP_BEGIN ((void *)&_ebss)
#define HEAP_END ((void *)&_susrstack)
void rt_hw_board_init(void);
#endif /* __BOARD_H__ */
|