未验证 提交 4595ada2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4774 from Wang-Huachen/master

[bsp][zynqmp-r5-axu4ev]修复使用xil_cache.h可能找不到函数定义的问题
/*
* Copyright (c) 2020-2021, WangHuachen
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XLI_SLEEP_H
#define XLI_SLEEP_H
......
/*
* Copyright (c) 2020-2021, WangHuachen
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XIL_ASSERT_H /* prevent circular inclusions */
#define XIL_ASSERT_H /* by using protection macros */
......
/*
* Copyright (c) 2020-2021, WangHuachen
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XIL_CACHE_H
#define XIL_CACHE_H
#include <rthw.h>
#ifdef __cplusplus
extern "C" {
#endif
......
#ifndef XIL_PRINTF_H
#define XIL_PRINTF_H
/*
* Copyright (c) 2020-2021, WangHuachen
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XIL_PRINTF_H
#define XIL_PRINTF_H
#include <rtthread.h>
......
/*
* Copyright (C) 2010-2020 Xilinx, Inc.
* Copyright (c) 2020-2021, WangHuachen
* All rights reserved.
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XIL_TYPES_H /* prevent circular inclusions */
#define XIL_TYPES_H /* by using protection macros */
......@@ -70,6 +80,30 @@ typedef void (*XInterruptHandler) (void *InstancePtr);
*/
typedef void (*XExceptionHandler) (void *InstancePtr);
/**
* @brief Returns 32-63 bits of a number.
* @param n : Number being accessed.
* @return Bits 32-63 of number.
*
* @note A basic shift-right of a 64- or 32-bit quantity.
* Use this to suppress the "right shift count >= width of type"
* warning when that quantity is 32-bits.
*/
#if defined (__aarch64__) || defined (__arch64__)
#define UPPER_32_BITS(n) ((u32)(((n) >> 16) >> 16))
#else
#define UPPER_32_BITS(n) 0U
#endif
/**
* @brief Returns 0-31 bits of a number
* @param n : Number being accessed.
* @return Bits 0-31 of number
*/
#define LOWER_32_BITS(n) ((u32)(n))
/************************** Constant Definitions *****************************/
#ifndef TRUE
......
/*
* Copyright (C) 2014-2020 Xilinx, Inc.
* Copyright (c) 2020-2021, WangHuachen
* All rights reserved.
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef XPLATFORM_INFO_H /* prevent circular inclusions */
#define XPLATFORM_INFO_H /* by using protection macros */
......
......@@ -7,8 +7,6 @@
* Date Author Notes
* 2021-5-10 WangHuachen the first version
*/
#include "board.h"
#include <netif/ethernetif.h>
#include "lwipopts.h"
......
/*
* Copyright (c) 2020-2021, WangHuachen
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2020-11-30 WangHuachen the first version
*/
#ifndef __ZYNQMP_R5_H__
#define __ZYNQMP_R5_H__
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册