1
0

board.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // <<< Use Configuration Wizard in Context Menu >>>
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include <stm32f4xx.h>
  18. /* board configuration */
  19. // <o> SDCard Driver <1=>SDIO sdcard <0=>SPI MMC card
  20. // <i>Default: 1
  21. #define STM32_USE_SDIO 0
  22. /* whether use board external SRAM memory */
  23. // <e>Use external SRAM memory on the board
  24. // <i>Enable External SRAM memory
  25. #define STM32_EXT_SRAM 0
  26. // <o>Begin Address of External SRAM
  27. // <i>Default: 0x68000000
  28. #define STM32_EXT_SRAM_BEGIN 0x68000000 /* the begining address of external SRAM */
  29. // <o>End Address of External SRAM
  30. // <i>Default: 0x68080000
  31. #define STM32_EXT_SRAM_END 0x68080000 /* the end address of external SRAM */
  32. // </e>
  33. // <o> Internal SRAM memory size[Kbytes] <8-64>
  34. // <i>Default: 64
  35. #ifdef __ICCARM__
  36. // Use *.icf ram symbal, to avoid hardcode.
  37. extern char __ICFEDIT_region_RAM_end__;
  38. #define STM32_SRAM_END &__ICFEDIT_region_RAM_end__
  39. #else
  40. #define STM32_SRAM_SIZE 128
  41. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  42. #endif
  43. void rt_hw_board_init(void);
  44. #endif
  45. // <<< Use Configuration Wizard in Context Menu >>>