/* * File : board.h * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2009, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author Notes * 2009-09-22 Bernard add board.h to this bsp * 2017-10-20 ZYH emmm...setup for HAL Libraries */ // <<< Use Configuration Wizard in Context Menu >>> #ifndef __BOARD_H__ #define __BOARD_H__ #include "ch32v30x.h" #define CH32V30X_PIN_NUMBERS 100 /* board configuration */ #define SRAM_SIZE 64 #define SRAM_END (0x20000000 + SRAM_SIZE * 1024) extern int _ebss; #define HEAP_BEGIN ((void *)&_ebss) //#define __stack_size 32768 //#define HEAP_END ((void *)(SRAM_END-__stack_size)) #define HEAP_END ((void *)SRAM_END) void rt_hw_board_init(void); #endif /* __BOARD_H__ */