rt-thread-official/bsp/nuvoton/numaker-m467hj/board/board.h

39 lines
1017 B
C

/**************************************************************************//**
*
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-2-23 Wayne First version
*
******************************************************************************/
#ifndef __BOARD_H__
#define __BOARD_H__
#include "rtconfig.h"
// <o> Internal SRAM memory size[Kbytes]
#define SRAM_SIZE (512)
#define SRAM_END (0x20000000 + SRAM_SIZE * 1024)
#if defined(__ARMCC_VERSION)
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
extern int __bss_end;
#define HEAP_BEGIN ((void *)&__bss_end)
#endif
#define HEAP_END (void *)SRAM_END
void rt_hw_board_init(void);
void rt_hw_cpu_reset(void);
#endif /* BOARD_H_ */