48 lines
918 B
C
48 lines
918 B
C
/*
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2018-11-5 SummerGift first version
|
|
*/
|
|
|
|
#ifndef __BOARD_H__
|
|
#define __BOARD_H__
|
|
|
|
#include <rtthread.h>
|
|
#include <stm32h7xx.h>
|
|
#include "drv_common.h"
|
|
#include "drv_gpio.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
|
|
|
|
#endif
|
|
|
|
#define STM32_FLASH_START_ADDRESS ((uint32_t)0x90000000)
|
|
#define STM32_FLASH_SIZE (8192 * 1024)
|
|
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADDRESS + STM32_FLASH_SIZE))
|
|
|
|
#define STM32_SRAM_SIZE (512)
|
|
#define STM32_SRAM_END (0x24000000 + STM32_SRAM_SIZE * 1024)
|
|
|
|
extern char __heap_start__;
|
|
extern char __heap_end__;
|
|
|
|
#define HEAP_BEGIN ((void *)&__heap_start__)
|
|
#define HEAP_END ((void *)&__heap_end__)
|
|
|
|
|
|
void SystemClock_Config(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|