board.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /* whether use board external SRAM memory */
  16. // <e>Use external SRAM memory on the board
  17. // <i>Enable External SRAM memory
  18. #define STM32_EXT_SRAM 0
  19. // <o>Begin Address of External SRAM
  20. // <i>Default: 0x68000000
  21. #define STM32_EXT_SRAM_BEGIN 0x68000000 /* the begining address of external SRAM */
  22. // <o>End Address of External SRAM
  23. // <i>Default: 0x68080000
  24. #define STM32_EXT_SRAM_END 0x68080000 /* the end address of external SRAM */
  25. // </e>
  26. // <o> Internal SRAM memory size[Kbytes] <8-64>
  27. // <i>Default: 64
  28. #define STM32_SRAM_SIZE 64
  29. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  30. // <<< Use Configuration Wizard in Context Menu >>>
  31. #define USING_BXCAN1
  32. void rt_hw_board_init(void);
  33. #endif /* __BOARD_H__ */