board.h 574 B

123456789101112131415161718192021222324252627
  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. * 2022-08-23 liYony first version
  9. */
  10. // <<< Use Configuration Wizard in Context Menu >>>
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include "ch32v30x.h"
  14. /* board configuration */
  15. #define SRAM_SIZE 96
  16. #define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
  17. extern int _ebss;
  18. #define HEAP_BEGIN ((void *)&_ebss)
  19. #define HEAP_END (SRAM_END-_stack_size)
  20. void rt_hw_board_init(void);
  21. #endif /* __BOARD_H__ */