Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
b57278f8
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b57278f8
编写于
5月 16, 2021
作者:
W
Wang-Huachen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove redundant code in zynqmp-r5-axu4ev bsp
上级
41d55a4d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
42 deletion
+0
-42
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/netif/xadapter.h
...axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/netif/xadapter.h
+0
-4
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xadapter.c
...mp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xadapter.c
+0
-23
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif.c
...p-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif.c
+0
-3
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif_dma.c
...-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif_dma.c
+0
-4
libcpu/arm/zynqmp-r5/cache.c
libcpu/arm/zynqmp-r5/cache.c
+0
-8
未找到文件。
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/netif/xadapter.h
浏览文件 @
b57278f8
...
...
@@ -55,11 +55,7 @@ struct xemac_s {
enum
xemac_types
type
;
int
topology_index
;
void
*
state
;
#if 0
sys_sem_t sem_rx_data_available;
#else
struct
eth_device
*
rt_eth_device
;
#endif
#if defined(OS_IS_FREERTOS) && defined(__arm__) && !defined(ARMR5)
TimerHandle_t
xTimer
;
#endif
...
...
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xadapter.c
浏览文件 @
b57278f8
...
...
@@ -197,29 +197,6 @@ xemac_add(struct netif *netif,
}
}
#if 0
/*
* The input thread calls lwIP to process any received packets.
* This thread waits until a packet is received (sem_rx_data_available),
* and then calls xemacif_input which processes 1 packet at a time.
*/
void
xemacif_input_thread(struct netif *netif)
{
struct xemac_s *emac = (struct xemac_s *)netif->state;
while (1) {
/* sleep until there are packets to process
* This semaphore is set by the packet receive interrupt
* routine.
*/
sys_sem_wait(&emac->sem_rx_data_available);
/* move all received packets to lwIP */
xemacif_input(netif);
}
}
#endif
int
xemacif_input
(
struct
netif
*
netif
)
{
...
...
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif.c
浏览文件 @
b57278f8
...
...
@@ -353,9 +353,6 @@ static err_t low_level_init(struct netif *netif)
netif
->
flags
|=
NETIF_FLAG_IGMP
;
#endif
#if 0
sys_sem_new(&xemac->sem_rx_data_available, 0);
#endif
/* obtain config of this emac */
mac_config
=
(
XEmacPs_Config
*
)
xemacps_lookup_config
((
unsigned
)(
UINTPTR
)
netif
->
state
);
...
...
bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/xemacpsif_dma.c
浏览文件 @
b57278f8
...
...
@@ -513,11 +513,7 @@ void emacps_recv_handler(void *arg)
/* free up the BD's */
XEmacPs_BdRingFree
(
rxring
,
bd_processed
,
rxbdset
);
setup_rx_bds
(
xemacpsif
,
rxring
);
#if 0
sys_sem_signal(&xemac->sem_rx_data_available);
#else
eth_device_ready
(
xemac
->
rt_eth_device
);
#endif
}
#ifdef OS_IS_FREERTOS
...
...
libcpu/arm/zynqmp-r5/cache.c
浏览文件 @
b57278f8
...
...
@@ -108,14 +108,6 @@ void Xil_DCacheInvalidate(void)
currmask
=
mfcpsr
();
mtcpsr
(
currmask
|
IRQ_FIQ_MASK
);
#if 0
stack_end = (u32 )&_stack_end;
stack_start = (u32 )&__undef_stack;
stack_size = stack_start-stack_end;
/* Flush stack memory to save return address */
Xil_DCacheFlushRange(stack_end, stack_size);
#endif
mtcp
(
XREG_CP15_CACHE_SIZE_SEL
,
0
);
/*invalidate all D cache*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录