board.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "stm32f10x.h"
  14. /* board configuration */
  15. // <o> SDCard Driver <1=>SDIO sdcard <0=>SPI MMC card
  16. // <i>Default: 1
  17. #define STM32_USE_SDIO 0
  18. /* whether use board external SRAM memory */
  19. // <e>Use external SRAM memory on the board
  20. // <i>Enable External SRAM memory
  21. #define STM32_EXT_SRAM 0
  22. // <o>Begin Address of External SRAM
  23. // <i>Default: 0x68000000
  24. #define STM32_EXT_SRAM_BEGIN 0x68000000 /* the begining address of external SRAM */
  25. // <o>End Address of External SRAM
  26. // <i>Default: 0x68080000
  27. #define STM32_EXT_SRAM_END 0x68080000 /* the end address of external SRAM */
  28. // </e>
  29. // <o> Internal SRAM memory size[Kbytes] <8-64>
  30. // <i>Default: 64
  31. #define STM32_SRAM_SIZE 64
  32. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  33. #define RT_USING_UART1
  34. #define RT_USING_SPI1
  35. void rt_hw_board_init(void);
  36. void rt_hw_usart_init(void);
  37. #endif
  38. // <<< Use Configuration Wizard in Context Menu >>>