board.h 512 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-01-04 iysheng first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <gd32f10x.h>
  13. #include "drv_gpio.h"
  14. #define GD32_SRAM_SIZE 48
  15. #define GD32_SRAM_END (0x20000000 + GD32_SRAM_SIZE * 1024)
  16. extern int __bss_end;
  17. #define HEAP_BEGIN (&__bss_end)
  18. #define HEAP_END GD32_SRAM_END
  19. #endif