board.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. * 2018-11-5 SummerGift change to new framework
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <rtthread.h>
  13. #include <stm32f1xx.h>
  14. #include "drv_common.h"
  15. #ifdef BSP_USING_GPIO
  16. #include "drv_gpio.h"
  17. /* Board Pin definitions */
  18. // #define LED0_PIN GET_PIN(C, 0)
  19. #endif
  20. /* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
  21. #define STM32_SRAM_SIZE 20
  22. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  23. #ifdef __CC_ARM
  24. extern int Image$$RW_IRAM1$$ZI$$Limit;
  25. #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
  26. #elif __ICCARM__
  27. #pragma section="CSTACK"
  28. #define HEAP_BEGIN (__segment_end("CSTACK"))
  29. #else
  30. extern int __bss_end;
  31. #define HEAP_BEGIN ((void *)&__bss_end)
  32. #endif
  33. #define HEAP_END STM32_SRAM_END
  34. void SystemClock_Config(void);
  35. void MX_GPIO_Init(void);
  36. #endif /* __BOARD_H__ */