board.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. * 2019-04-09 WillianChan add stm32f469-st-disco bsp
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #include <rtthread.h>
  14. #include "stm32mp1xx.h"
  15. #include "stm32mp1xx_hal.h"
  16. #include "drv_common.h"
  17. #include "drv_gpio.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. #define STM32_FLASH_START_ADRESS ((uint32_t)0x10000000)
  22. #if defined(BSP_USING_OPENAMP)
  23. #define STM32_FLASH_SIZE (64 * 1024)
  24. #else
  25. #define STM32_FLASH_SIZE (256 * 1024)
  26. #endif
  27. #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
  28. #if defined(BSP_USING_OPENAMP)
  29. #define STM32_SRAM_BEGIN (uint32_t)0x10020000
  30. #else
  31. #define STM32_SRAM_BEGIN (uint32_t)0x2FFF0000
  32. #endif
  33. #define STM32_SRAM_SIZE (64)
  34. #define STM32_SRAM_END (STM32_SRAM_BEGIN + (STM32_SRAM_SIZE * 1024))
  35. #define HEAP_BEGIN STM32_SRAM_BEGIN
  36. #define HEAP_END STM32_SRAM_END
  37. #define HEAP_END STM32_SRAM_END
  38. void SystemClock_Config(void);
  39. extern void _Error_Handler(char *s, int num);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif