board.h 785 B

123456789101112131415161718192021222324252627282930313233
  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. * 2009-09-22 Bernard add board.h to this bsp
  9. * 2017-10-20 ZYH emmm...setup for HAL Libraries
  10. */
  11. /* <<< Use Configuration Wizard in Context Menu >>> */
  12. #ifndef __BOARD_H__
  13. #define __BOARD_H__
  14. #include "ch32v10x.h"
  15. #include <rthw.h>
  16. #include "drivers/pin.h"
  17. #define CH32V10X_PIN_NUMBERS 64
  18. /* board configuration */
  19. #define SRAM_SIZE 20
  20. #define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
  21. extern int _ebss;
  22. #define HEAP_BEGIN ((void *)&_ebss)
  23. #define HEAP_END (SRAM_END-_stack_size)
  24. /* extern volatile unsigned long interrupter_sp_saver */
  25. void rt_hw_board_init(void);
  26. #endif /* __BOARD_H__ */