2019-03-29 17:04:48 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017-2019, MindMotion AE Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2019-03-13 henryhuang first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOARD_H__
|
|
|
|
#define BOARD_H__
|
|
|
|
#include <rtthread.h>
|
2023-07-05 18:20:08 +08:00
|
|
|
#include <HAL_device.h>
|
2019-03-29 17:04:48 +08:00
|
|
|
|
|
|
|
#define SRAM_SIZE 0x2000
|
|
|
|
|
|
|
|
#define SRAM_END (SRAM_BASE + SRAM_SIZE)
|
2021-12-30 03:14:07 +08:00
|
|
|
#if defined(__ARMCC_VERSION)
|
2019-03-29 17:04:48 +08:00
|
|
|
extern int Image$$RW_IRAM1$$ZI$$Limit;
|
|
|
|
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
|
|
|
|
#elif __ICCARM__
|
|
|
|
#pragma section = "HEAP"
|
|
|
|
#define HEAP_BEGIN (__segment_end("HEAP"))
|
|
|
|
#else
|
|
|
|
extern int __bss_end;
|
|
|
|
#define HEAP_BEGIN ((void *)&__bss_end)
|
|
|
|
#endif
|
|
|
|
#define HEAP_END SRAM_END
|
|
|
|
#define HEAP_SIZE (HEAP_END - (rt_uint32_t)HEAP_BEGIN)
|
|
|
|
extern void rt_hw_board_init(void);
|
|
|
|
#endif
|