4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-31 00:10:24 +08:00

25 lines
483 B
C
Raw Normal View History

2020-04-14 22:17:27 +08:00
#ifndef _BOARD_H_
#define _BOARD_H_
#include <rtthread.h>
#include "nrf.h"
#if defined(__CC_ARM) || defined(__CLANG_ARM)
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 (0x20000000 + 64*1024)
2020-04-14 22:17:27 +08:00
void rt_hw_board_init(void);
#endif