board.h 656 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-09-15 flyingcys 1st version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #ifdef __CC_ARM
  13. extern int Image$$RW_IRAM1$$ZI$$Limit;
  14. #define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
  15. #elif __ICCARM__
  16. #pragma section="CSTACK"
  17. #define HEAP_BEGIN (__segment_end("CSTACK"))
  18. #else
  19. extern int __bss_end__;
  20. #define HEAP_BEGIN (&__bss_end__)
  21. #endif
  22. #define HEAP_END (0x20028000UL)
  23. #define HARDWARE_VERSION 0x0003U
  24. #include "pin_config.h"
  25. void rt_hw_board_init(void);
  26. #endif