board.h 899 B

123456789101112131415161718192021222324252627282930313233
  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. * 2018-11-5 SummerGift change to new framework
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <rtthread.h>
  13. #include <stm32l4xx.h>
  14. #include "drv_common.h"
  15. #define STM32_SRAM1_SIZE (96)
  16. #define STM32_SRAM1_START (0x20000000)
  17. #define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)
  18. #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
  19. #define STM32_FLASH_SIZE (512 * 1024)
  20. #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
  21. #define HEAP_BEGIN STM32_SRAM1_START
  22. #define HEAP_END STM32_SRAM1_END
  23. void SystemClock_Config(void);
  24. void MX_GPIO_Init(void);
  25. #endif