board.h 844 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2018, 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. */
  10. // <<< Use Configuration Wizard in Context Menu >>>
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <stm32f4xx.h>
  14. #include <stm32f4xx_hal.h>
  15. #define STM32_SRAM_SIZE 128
  16. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  17. #if defined(__CC_ARM) || defined(__CLANG_ARM)
  18. extern int Image$$RW_IRAM1$$ZI$$Limit;
  19. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  20. #elif __ICCARM__
  21. #pragma section="HEAP"
  22. #define HEAP_BEGIN (__segment_end("HEAP"))
  23. #else
  24. extern int __bss_end;
  25. #define HEAP_BEGIN ((void *)&__bss_end)
  26. #endif
  27. #define HEAP_END STM32_SRAM_END
  28. void rt_hw_board_init(void);
  29. #endif