board.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-09-22 Bernard add board.h to this bsp
  13. */
  14. #ifndef __BOARD_H__
  15. #define __BOARD_H__
  16. #include <stm32f7xx.h>
  17. #include "stm32f7xx_hal.h"
  18. // <<< Use Configuration Wizard in Context Menu >>>
  19. /* board configuration */
  20. #define RT_USING_UART1
  21. #define RT_USING_UART2
  22. #define RT_USING_UART3
  23. // <o> SDCard Driver <1=>SDIO sdcard <0=>SPI MMC card
  24. // <i>Default: 1
  25. #define STM32_USE_SDIO 0
  26. /* whether use board external SDRAM memory */
  27. // <e>Use external SDRAM memory on the board
  28. // <o>Begin Address of External SDRAM
  29. #define EXT_SDRAM_BEGIN 0xC0000000
  30. // <o>Size of External SDRAM
  31. #define EXT_SDRAM_SIZE (0x800000)
  32. #define EXT_SDRAM_END (EXT_SDRAM_BEGIN + EXT_SDRAM_SIZE)
  33. // </e>
  34. #ifdef __CC_ARM
  35. extern int Image$$RW_IRAM1$$ZI$$Limit;
  36. #define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
  37. #elif __ICCARM__
  38. #pragma section="HEAP"
  39. #define HEAP_BEGIN (__segment_end("HEAP"))
  40. #else
  41. extern int __bss_end;
  42. #define HEAP_BEGIN (&__bss_end)
  43. #endif
  44. // <o> Internal SRAM memory size[Kbytes] <8-64>
  45. // <i>Default: 64
  46. #define STM32_SRAM_SIZE (256 * 1024)
  47. #define HEAP_END (0x20010000 + STM32_SRAM_SIZE)
  48. void rt_hw_board_init(void);
  49. #endif