2022-11-24 16:08:56 +08:00
|
|
|
/*
|
2023-02-22 18:22:33 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2022-11-24 16:08:56 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-10-10 Sherman first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOARD_H__
|
|
|
|
#define __BOARD_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define RA_SRAM_SIZE 640 /* The SRAM size of the chip needs to be modified */
|
|
|
|
#define RA_SRAM_END (0x20000000 + RA_SRAM_SIZE * 1024)
|
|
|
|
|
|
|
|
#ifdef __ARMCC_VERSION
|
|
|
|
extern int Image$$RAM_END$$ZI$$Base;
|
|
|
|
#define HEAP_BEGIN ((void *)&Image$$RAM_END$$ZI$$Base)
|
|
|
|
#elif __ICCARM__
|
|
|
|
#pragma section="CSTACK"
|
|
|
|
#define HEAP_BEGIN (__segment_end("CSTACK"))
|
|
|
|
#else
|
|
|
|
extern int __RAM_segment_used_end__;
|
|
|
|
#define HEAP_BEGIN (&__RAM_segment_used_end__)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define HEAP_END RA_SRAM_END
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|