Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
f06f50f4
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
未验证
提交
f06f50f4
编写于
4月 05, 2018
作者:
B
Bernard Xiong
提交者:
GitHub
4月 05, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1336 from TanekLiang/cache
[bsp][imxrt1052] add cache interface support
上级
b7c2ef27
327a6b6f
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
512 addition
and
2314 deletion
+512
-2314
bsp/imxrt1052-evk/drivers/SConscript
bsp/imxrt1052-evk/drivers/SConscript
+1
-0
bsp/imxrt1052-evk/drivers/drv_cache.c
bsp/imxrt1052-evk/drivers/drv_cache.c
+75
-0
bsp/imxrt1052-evk/project.ewp
bsp/imxrt1052-evk/project.ewp
+20
-6
bsp/imxrt1052-evk/project.uvoptx
bsp/imxrt1052-evk/project.uvoptx
+13
-2186
bsp/imxrt1052-evk/project.uvprojx
bsp/imxrt1052-evk/project.uvprojx
+403
-122
未找到文件。
bsp/imxrt1052-evk/drivers/SConscript
浏览文件 @
f06f50f4
...
...
@@ -8,6 +8,7 @@ cwd = os.path.join(str(Dir('#')), 'drivers')
src
=
Split
(
"""
board.c
drv_uart.c
drv_cache.c
"""
)
CPPPATH
=
[
cwd
]
...
...
bsp/imxrt1052-evk/drivers/drv_cache.c
0 → 100644
浏览文件 @
f06f50f4
/*
* File : drv_cache.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2018-04-02 tanek first implementation
*/
#include <rtthread.h>
#include <rthw.h>
#include <fsl_cache.h>
void
rt_hw_cpu_icache_enable
(
void
)
{
SCB_EnableICache
();
}
void
rt_hw_cpu_icache_disable
(
void
)
{
SCB_DisableICache
();
}
rt_base_t
rt_hw_cpu_icache_status
(
void
)
{
return
0
;
}
void
rt_hw_cpu_icache_ops
(
int
ops
,
void
*
addr
,
int
size
)
{
if
(
ops
&
RT_HW_CACHE_INVALIDATE
)
{
ICACHE_InvalidateByRange
((
uint32_t
)
addr
,
size
);
}
}
void
rt_hw_cpu_dcache_enable
(
void
)
{
SCB_EnableDCache
();
}
void
rt_hw_cpu_dcache_disable
(
void
)
{
SCB_DisableDCache
();
}
rt_base_t
rt_hw_cpu_dcache_status
(
void
)
{
return
0
;
}
void
rt_hw_cpu_dcache_ops
(
int
ops
,
void
*
addr
,
int
size
)
{
if
(
ops
&
(
RT_HW_CACHE_FLUSH
|
RT_HW_CACHE_INVALIDATE
))
{
DCACHE_CleanInvalidateByRange
((
uint32_t
)
addr
,
size
);
}
else
if
(
ops
&
RT_HW_CACHE_FLUSH
)
{
DCACHE_CleanByRange
((
uint32_t
)
addr
,
size
);
}
else
if
(
ops
&
RT_HW_CACHE_INVALIDATE
)
{
DCACHE_InvalidateByRange
((
uint32_t
)
addr
,
size
);
}
else
{
RT_ASSERT
(
0
);
}
}
bsp/imxrt1052-evk/project.ewp
浏览文件 @
f06f50f4
...
...
@@ -308,7 +308,7 @@
<state>$PROJ_DIR$\Libraries\drivers</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src</state>
<state>$PROJ_DIR$\
..\..\components\net\lwip-2.0.2\src\include\posix
</state>
<state>$PROJ_DIR$\
drivers
</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4</state>
<state>$PROJ_DIR$\.</state>
<state>$PROJ_DIR$\..\..\libcpu\arm\cortex-m7</state>
...
...
@@ -316,10 +316,11 @@
<state>$PROJ_DIR$\..\..\components\dfs\filesystems\devfs</state>
<state>$PROJ_DIR$\Libraries\CMSIS\Include</state>
<state>$PROJ_DIR$\Libraries\utilities</state>
<state>$PROJ_DIR$\..\..\components\drivers\spi</state>
<state>$PROJ_DIR$\applications</state>
<state>$PROJ_DIR$\..\..\components\finsh</state>
<state>$PROJ_DIR$\..\..\components\dfs\filesystems\elmfat</state>
<state>$PROJ_DIR$\
drivers
</state>
<state>$PROJ_DIR$\
..\..\components\net\lwip-2.0.2\src\include\posix
</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include</state>
</option>
<option>
...
...
@@ -1247,7 +1248,7 @@
<state>$PROJ_DIR$\Libraries\drivers</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src</state>
<state>$PROJ_DIR$\
..\..\components\net\lwip-2.0.2\src\include\posix
</state>
<state>$PROJ_DIR$\
drivers
</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4</state>
<state>$PROJ_DIR$\.</state>
<state>$PROJ_DIR$\..\..\libcpu\arm\cortex-m7</state>
...
...
@@ -1255,10 +1256,11 @@
<state>$PROJ_DIR$\..\..\components\dfs\filesystems\devfs</state>
<state>$PROJ_DIR$\Libraries\CMSIS\Include</state>
<state>$PROJ_DIR$\Libraries\utilities</state>
<state>$PROJ_DIR$\..\..\components\drivers\spi</state>
<state>$PROJ_DIR$\applications</state>
<state>$PROJ_DIR$\..\..\components\finsh</state>
<state>$PROJ_DIR$\..\..\components\dfs\filesystems\elmfat</state>
<state>$PROJ_DIR$\
drivers
</state>
<state>$PROJ_DIR$\
..\..\components\net\lwip-2.0.2\src\include\posix
</state>
<state>$PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include</state>
</option>
<option>
...
...
@@ -1898,7 +1900,7 @@
<name>$PROJ_DIR$\drivers\drv_uart.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\
hyper_flash_boot
.c</name>
<name>$PROJ_DIR$\drivers\
drv_cache
.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\drv_sdram.c</name>
...
...
@@ -1907,7 +1909,13 @@
<name>$PROJ_DIR$\drivers\drv_pin.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\drv_hp_rtc.c</name>
<name>$PROJ_DIR$\drivers\drv_rtc.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\drv_spi_bus.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\hyper_flash_boot.c</name>
</file>
<file>
<name>$PROJ_DIR$\drivers\drv_eth.c</name>
...
...
@@ -2227,6 +2235,12 @@
<file>
<name>$PROJ_DIR$\..\..\components\drivers\serial\serial.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\components\drivers\spi\spi_core.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\components\drivers\spi\spi_dev.c</name>
</file>
<file>
<name>$PROJ_DIR$\..\..\components\drivers\src\completion.c</name>
</file>
...
...
bsp/imxrt1052-evk/project.uvoptx
浏览文件 @
f06f50f4
此差异已折叠。
点击以展开。
bsp/imxrt1052-evk/project.uvprojx
浏览文件 @
f06f50f4
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录