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 WillianChan add stm32f469-st-disco bsp 10 */ 11 12 #ifndef __BOARD_H__ 13 #define __BOARD_H__ 14 15 #include <rtthread.h> 16 #include "stm32mp1xx.h" 17 #include "stm32mp1xx_hal.h" 18 #include "drv_common.h" 19 #include "drv_gpio.h" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #define STM32_FLASH_START_ADRESS ((uint32_t)0x10000000) 26 #define STM32_FLASH_SIZE (192 * 1024) 27 #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) 28 29 30 #define STM32_SRAM_SIZE (64) 31 #define STM32_SRAM_END (0x10030000 + 64 * 1024) 32 33 #if defined(__ARMCC_VERSION) 34 extern int Image$$RW_IRAM1$$ZI$$Limit; 35 #define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit) 36 #elif __ICCARM__ 37 #pragma section="CSTACK" 38 #define HEAP_BEGIN (__segment_end("CSTACK")) 39 #else 40 extern int __bss_end; 41 #define HEAP_BEGIN (&__bss_end) 42 #endif 43 #define HEAP_END STM32_SRAM_END 44 45 void SystemClock_Config(void); 46 47 extern void _Error_Handler(char *s, int num); 48 49 #ifdef __cplusplus 50 } 51 #endif 52 53 #endif 54