You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
840 B
37 lines
840 B
5 months ago
|
/*
|
||
|
* Copyright (c) 2006-2024, RT-Thread Development Team
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2024-04-11 liYony the first version
|
||
|
*/
|
||
|
|
||
|
#ifndef __BOARD_H__
|
||
|
#define __BOARD_H__
|
||
|
|
||
|
#include <zynqmp.h>
|
||
|
|
||
|
extern unsigned char __bss_end;
|
||
|
|
||
|
#define HEAP_BEGIN ((void*)&__bss_end)
|
||
|
|
||
|
#ifdef RT_USING_SMART
|
||
|
#define HEAP_END ((size_t)KERNEL_VADDR_START + 64 * 1024 * 1024)
|
||
|
#define PAGE_START HEAP_END
|
||
|
#define PAGE_END ((size_t)KERNEL_VADDR_START + 128 * 1024 * 1024)
|
||
|
#else
|
||
|
#define KERNEL_VADDR_START 0x0
|
||
|
|
||
|
#define HEAP_END (KERNEL_VADDR_START + 64 * 1024 * 1024)
|
||
|
#define PAGE_START HEAP_END
|
||
|
#define PAGE_END ((size_t)PAGE_START + 64 * 1024 * 1024)
|
||
|
#endif
|
||
|
|
||
|
void rt_hw_board_init(void);
|
||
|
|
||
|
int rt_hw_uart_init(void);
|
||
|
|
||
|
#endif /* __BOARD_H__ */
|