board.h 861 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 first version
  9. * 2023-08-20 Donocean Set STM32_SRAM_SIZE to 128 and heap addr on 0x10000000
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <stm32f4xx.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
  18. #define STM32_FLASH_SIZE (1024 * 1024)
  19. #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
  20. #define STM32_SRAM_SIZE 128
  21. #define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
  22. #define HEAP_BEGIN 0x10000000
  23. #define HEAP_END (HEAP_BEGIN + 0x00010000)
  24. void SystemClock_Config(void);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif