board.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. * 2021-09-07 FuC Suit for Vango V85xx
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <target.h>
  14. #include "drv_gpio.h"
  15. #include "drv_spi.h"
  16. /* Internal SRAM memory size[Kbytes] <8-64>, Default: 32*/
  17. #define V85XX_SRAM_SIZE 32
  18. #define V85XX_SRAM_END (0x20000000 + V85XX_SRAM_SIZE * 1024)
  19. #if defined(__CC_ARM) || defined(__CLANG_ARM)
  20. extern int Image$$RW_IRAM1$$ZI$$Limit;
  21. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  22. #elif __ICCARM__
  23. #pragma section="CSTACK"
  24. #define HEAP_BEGIN (__segment_end("CSTACK"))
  25. #else
  26. extern int __bss_end;
  27. #define HEAP_BEGIN ((void *)&__bss_end)
  28. #endif
  29. #define HEAP_END V85XX_SRAM_END
  30. /* #define DEBUG */
  31. #ifdef DEBUG
  32. #define DEBUG_PRINTF(...) rt_kprintf(__VA_ARGS__)
  33. #else
  34. #define DEBUG_PRINTF(...)
  35. #endif
  36. #endif