Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
96b1da17
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看板
提交
96b1da17
编写于
9月 20, 2017
作者:
L
lin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modified not use c99
上级
e8eaaed1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
47 addition
and
36 deletion
+47
-36
bsp/apollo2/board/uart.c
bsp/apollo2/board/uart.c
+7
-6
bsp/apollo2/libraries/drivers/hal/am_hal_cachectrl.c
bsp/apollo2/libraries/drivers/hal/am_hal_cachectrl.c
+12
-12
bsp/apollo2/project.uvprojx
bsp/apollo2/project.uvprojx
+25
-15
bsp/apollo2/template.uvprojx
bsp/apollo2/template.uvprojx
+3
-3
未找到文件。
bsp/apollo2/board/uart.c
浏览文件 @
96b1da17
...
...
@@ -55,11 +55,11 @@ struct am_uart
*/
am_hal_uart_config_t
g_sUartConfig
=
{
.
ui32BaudRate
=
115200
,
.
ui32DataBits
=
AM_HAL_UART_DATA_BITS_8
,
.
bTwoStopBits
=
false
,
.
ui32Parity
=
AM_HAL_UART_PARITY_NONE
,
.
ui32FlowCtrl
=
AM_HAL_UART_FLOW_CTRL_NONE
,
115200
,
// ui32BaudRate
AM_HAL_UART_DATA_BITS_8
,
// ui32DataBits
false
,
// bTwoStopBits
AM_HAL_UART_PARITY_NONE
,
// ui32Parity
AM_HAL_UART_FLOW_CTRL_NONE
,
// ui32FlowCtrl
};
/**
...
...
@@ -246,9 +246,10 @@ static int am_getc(struct rt_serial_device *serial)
static
void
uart_isr
(
struct
rt_serial_device
*
serial
)
{
uint32_t
status
;
struct
am_uart
*
uart
;
RT_ASSERT
(
serial
!=
RT_NULL
);
struct
am_uart
*
uart
=
(
struct
am_uart
*
)
serial
->
parent
.
user_data
;
uart
=
(
struct
am_uart
*
)
serial
->
parent
.
user_data
;
RT_ASSERT
(
uart
!=
RT_NULL
);
...
...
bsp/apollo2/libraries/drivers/hal/am_hal_cachectrl.c
浏览文件 @
96b1da17
...
...
@@ -57,18 +57,18 @@
//*****************************************************************************
const
am_hal_cachectrl_config_t
am_hal_cachectrl_defaults
=
{
.
ui32EnableCache
=
1
,
.
ui32LRU
=
0
,
.
ui32EnableNCregions
=
0
,
.
ui32Config
=
AM_HAL_CACHECTRL_CACHECFG_CONFIG_2WAY_512
,
.
ui32SerialCacheMode
=
0
,
.
ui32FlashCachingEnables
=
3
,
.
ui32EnableCacheClockGating
=
1
,
.
ui32EnableLightSleep
=
0
,
.
ui32Dly
=
1
,
.
ui32SMDly
=
1
,
.
ui32EnableDataClockGating
=
1
,
.
ui32EnableCacheMonitoring
=
0
,
1
,
// ui32EnableCache
0
,
// ui32LRU
0
,
// ui32EnableNCregions
AM_HAL_CACHECTRL_CACHECFG_CONFIG_2WAY_512
,
// ui32Config
0
,
// ui32SerialCacheMode
3
,
// ui32FlashCachingEnables
1
,
// ui32EnableCacheClockGating
0
,
// ui32EnableLightSleep
1
,
// ui32Dly
1
,
// ui32SMDly
1
,
// ui32EnableDataClockGating
0
,
// ui32EnableCacheMonitoring
};
//*****************************************************************************
...
...
bsp/apollo2/project.uvprojx
浏览文件 @
96b1da17
...
...
@@ -79,7 +79,7 @@
<nStopB2X>
0
</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>
0
</RunUserProg1>
<RunUserProg1>
1
</RunUserProg1>
<RunUserProg2>
0
</RunUserProg2>
<UserProg1Name>
fromelf --bin !L --output rtthread.bin
</UserProg1Name>
<UserProg2Name></UserProg2Name>
...
...
@@ -354,7 +354,7 @@
<Optim>
1
</Optim>
<oTime>
0
</oTime>
<SplitLS>
0
</SplitLS>
<OneElfS>
1
</OneElfS>
<OneElfS>
0
</OneElfS>
<Strict>
0
</Strict>
<EnumInt>
0
</EnumInt>
<PlainCh>
0
</PlainCh>
...
...
@@ -363,7 +363,7 @@
<wLevel>
2
</wLevel>
<uThumb>
0
</uThumb>
<uSurpInc>
0
</uSurpInc>
<uC99>
1
</uC99>
<uC99>
0
</uC99>
<useXO>
0
</useXO>
<v6Lang>
1
</v6Lang>
<v6LangP>
1
</v6LangP>
...
...
@@ -373,7 +373,7 @@
<MiscControls></MiscControls>
<Define>
AM_PART_APOLLO2, AM_PACKAGE_BGA, keil
</Define>
<Undefine></Undefine>
<IncludePath>
applications;.;board;libraries\drivers;libraries\startup;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh
</IncludePath>
<IncludePath>
applications;.;board;libraries\drivers;libraries\startup;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\
drivers\include;..\..\components\
finsh
</IncludePath>
</VariousControls>
</Cads>
<Aads>
...
...
@@ -417,34 +417,39 @@
<GroupName>
Applications
</GroupName>
<Files>
<File>
<FileName>
application.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
applications\application.c
</FilePath>
</File>
<File>
<FileName>
startup.c
</FileName>
<FileName>
main.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
applications\
startup
.c
</FilePath>
<FilePath>
applications\
main
.c
</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>
Board
</GroupName>
<Files>
<File>
<FileName>
adc.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\adc.c
</FilePath>
</File>
<File>
<FileName>
board.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\board.c
</FilePath>
</File>
<File>
<FileName>
hw_led
.c
</FileName>
<FileName>
gpio
.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\
hw_led
.c
</FilePath>
<FilePath>
board\
gpio
.c
</FilePath>
</File>
<File>
<FileName>
hw_uart
.c
</FileName>
<FileName>
led
.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\hw_uart.c
</FilePath>
<FilePath>
board\led.c
</FilePath>
</File>
<File>
<FileName>
uart.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
board\uart.c
</FilePath>
</File>
</Files>
</Group>
...
...
@@ -626,6 +631,11 @@
<Group>
<GroupName>
DeviceDrivers
</GroupName>
<Files>
<File>
<FileName>
pin.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\drivers\misc\pin.c
</FilePath>
</File>
<File>
<FileName>
serial.c
</FileName>
<FileType>
1
</FileType>
...
...
bsp/apollo2/template.uvprojx
浏览文件 @
96b1da17
...
...
@@ -79,7 +79,7 @@
<nStopB2X>
0
</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>
0
</RunUserProg1>
<RunUserProg1>
1
</RunUserProg1>
<RunUserProg2>
0
</RunUserProg2>
<UserProg1Name>
fromelf --bin !L --output rtthread.bin
</UserProg1Name>
<UserProg2Name></UserProg2Name>
...
...
@@ -354,7 +354,7 @@
<Optim>
1
</Optim>
<oTime>
0
</oTime>
<SplitLS>
0
</SplitLS>
<OneElfS>
1
</OneElfS>
<OneElfS>
0
</OneElfS>
<Strict>
0
</Strict>
<EnumInt>
0
</EnumInt>
<PlainCh>
0
</PlainCh>
...
...
@@ -363,7 +363,7 @@
<wLevel>
2
</wLevel>
<uThumb>
0
</uThumb>
<uSurpInc>
0
</uSurpInc>
<uC99>
1
</uC99>
<uC99>
0
</uC99>
<useXO>
0
</useXO>
<v6Lang>
1
</v6Lang>
<v6LangP>
1
</v6LangP>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录