board.h 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2018 Shanghai Eastsoft Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-01-14 wangyq the first version
  9. */
  10. // <<< Use Configuration Wizard in Context Menu >>>
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <es32f36xx.h>
  14. #define ES32F3_SRAM_SIZE 0x18000
  15. #define ES32F3_SRAM_END (0x20000000 + ES32F3_SRAM_SIZE)
  16. #if defined(__CC_ARM) || defined(__CLANG_ARM)
  17. extern int Image$$RW_IRAM1$$ZI$$Limit;
  18. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  19. #elif __ICCARM__
  20. #pragma section="HEAP"
  21. #define HEAP_BEGIN (__segment_end("HEAP"))
  22. #else
  23. extern int __bss_end;
  24. #define HEAP_BEGIN ((void *)&__bss_end)
  25. #endif
  26. #define HEAP_END ES32F3_SRAM_END
  27. void rt_hw_board_init(void);
  28. #endif