board.h 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2006-2021, 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 first version
  9. * 2019-04-09 jhb
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <rtthread.h>
  14. #include <stm32l4xx.h>
  15. #include "drv_common.h"
  16. #include "drv_gpio.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
  21. #define STM32_FLASH_SIZE (2048 * 1024)
  22. #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
  23. #define STM32_SRAM3_SIZE (384)
  24. #define STM32_SRAM3_START (0x20040000)
  25. #define STM32_SRAM3_END (STM32_SRAM3_START + STM32_SRAM3_SIZE * 1024)
  26. #define HEAP_BEGIN STM32_SRAM3_START
  27. #define HEAP_END STM32_SRAM3_END
  28. void SystemClock_Config(void);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif