Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
3faca6d5
R
rt-thread
项目概览
2345VOR
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3faca6d5
编写于
9月 24, 2015
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] update stm32f7-disco
code cleanup.
上级
91ae73e4
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
38 addition
and
51 deletion
+38
-51
bsp/stm32f7-disco/applications/application.c
bsp/stm32f7-disco/applications/application.c
+1
-31
bsp/stm32f7-disco/drivers/drv_led.c
bsp/stm32f7-disco/drivers/drv_led.c
+28
-1
bsp/stm32f7-disco/drivers/stm32f7xx_it.c
bsp/stm32f7-disco/drivers/stm32f7xx_it.c
+0
-13
bsp/stm32f7-disco/rtconfig.h
bsp/stm32f7-disco/rtconfig.h
+7
-6
libcpu/arm/cortex-m7/context_rvds.S
libcpu/arm/cortex-m7/context_rvds.S
+2
-0
未找到文件。
bsp/stm32f7-disco/applications/application.c
浏览文件 @
3faca6d5
...
...
@@ -26,35 +26,9 @@
#include <rtthread.h>
#include <components.h>
#include "drv_led.h"
static
void
led_thread_entry
(
void
*
parameter
)
{
led_hw_init
();
while
(
1
)
{
led_on
();
rt_thread_delay
(
RT_TICK_PER_SECOND
);
led_off
();
rt_thread_delay
(
RT_TICK_PER_SECOND
);
}
}
void
rt_init_thread_entry
(
void
*
parameter
)
{
rt_thread_t
tid
;
rt_components_init
();
tid
=
rt_thread_create
(
"led"
,
led_thread_entry
,
RT_NULL
,
512
,
12
,
5
);
if
(
tid
!=
RT_NULL
)
rt_thread_startup
(
tid
);
}
int
rt_application_init
()
...
...
@@ -64,11 +38,7 @@ int rt_application_init()
tid
=
rt_thread_create
(
"init"
,
rt_init_thread_entry
,
RT_NULL
,
2048
,
RT_THREAD_PRIORITY_MAX
/
3
,
20
);
if
(
tid
!=
RT_NULL
)
rt_thread_startup
(
tid
);
if
(
tid
!=
RT_NULL
)
rt_thread_startup
(
tid
);
return
0
;
}
/*@}*/
bsp/stm32f7-disco/drivers/drv_led.c
浏览文件 @
3faca6d5
...
...
@@ -21,9 +21,22 @@
* Date Author Notes
* 2015-08-01 xiaonong the first version
*/
#include <rtthread.h>
#include <board.h>
#include "drv_led.h"
static
void
led_thread_entry
(
void
*
parameter
)
{
while
(
1
)
{
led_on
();
rt_thread_delay
(
RT_TICK_PER_SECOND
);
led_off
();
rt_thread_delay
(
RT_TICK_PER_SECOND
);
}
}
int
led_hw_init
(
void
)
{
GPIO_InitTypeDef
GPIO_InitStruct
;
...
...
@@ -39,5 +52,19 @@ int led_hw_init(void)
HAL_GPIO_Init
(
GPIOI
,
&
GPIO_InitStruct
);
return
0
;
}
INIT_BOARD_EXPORT
(
led_hw_init
);
int
led_init
(
void
)
{
rt_thread_t
tid
;
tid
=
rt_thread_create
(
"led"
,
led_thread_entry
,
RT_NULL
,
512
,
12
,
5
);
if
(
tid
!=
RT_NULL
)
rt_thread_startup
(
tid
);
return
0
;
}
INIT_APP_EXPORT
(
led_init
);
bsp/stm32f7-disco/drivers/stm32f7xx_it.c
浏览文件 @
3faca6d5
...
...
@@ -69,19 +69,6 @@ void NMI_Handler(void)
{
}
/**
* @brief This function handles Memory Manage exception.
* @param None
* @retval None
*/
void
MemManage_Handler
(
void
)
{
/* Go to infinite loop when Memory Manage exception occurs */
while
(
1
)
{
}
}
/**
* @brief This function handles Bus Fault exception.
* @param None
...
...
bsp/stm32f7-disco/rtconfig.h
浏览文件 @
3faca6d5
...
...
@@ -14,7 +14,7 @@
// <item description="256">256</item>
// </integer>
#define RT_THREAD_PRIORITY_MAX 32
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
// <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100
0
" />
#define RT_TICK_PER_SECOND 1000
// <integer name="IDLE_THREAD_STACK_SIZE" description="The stack size of idle thread" default="512" />
#define IDLE_THREAD_STACK_SIZE 512
...
...
@@ -141,16 +141,16 @@
// <item description="LFN with dynamic LFN working buffer on the heap">3</item>
// </integer>
#define RT_DFS_ELM_USE_LFN 3
// <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="
936
">
#define RT_DFS_ELM_CODE_PAGE
936
// <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="
437
">
#define RT_DFS_ELM_CODE_PAGE
437
// <bool name="RT_DFS_ELM_CODE_PAGE_FILE" description="Using OEM code page file" default="false" />
#define RT_DFS_ELM_CODE_PAGE_FILE
//
#define RT_DFS_ELM_CODE_PAGE_FILE
// <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="256" />
#define RT_DFS_ELM_MAX_LFN 256
// <integer name="RT_DFS_ELM_MAX_SECTOR_SIZE" description="Maximal size of sector" default="512" />
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
// <bool name="RT_DFS_ELM_USE_ERASE" description="Enable erase feature for flash" default="true" />
#define RT_DFS_ELM_USE_ERASE
//
#define RT_DFS_ELM_USE_ERASE
// <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
// #define RT_USING_DFS_YAFFS2
// <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
...
...
@@ -160,7 +160,7 @@
// <bool name="RT_USING_DFS_ROMFS" description="Using ROMFS" default="false" />
//#define RT_USING_DFS_ROMFS
// <bool name="RT_USING_DFS_NFS" description="Using NFS" default="false" />
#define RT_USING_DFS_NFS
//
#define RT_USING_DFS_NFS
// <string name="RT_NFS_HOST_EXPORT" description="The exported NFS host path" default="192.168.1.10:/" />
#define RT_NFS_HOST_EXPORT "192.168.137.1:/"
// </section>
...
...
@@ -223,6 +223,7 @@
// </section>
// </RDTConfigurator>
/* enable SDRAM */
#define RT_USING_EXT_SDRAM
...
...
libcpu/arm/cortex-m7/context_rvds.S
浏览文件 @
3faca6d5
...
...
@@ -221,7 +221,9 @@ rt_hw_interrupt_thread_switch PROC
IMPORT
rt_hw_hard_fault_exception
EXPORT
HardFault_Handler
EXPORT
MemManage_Handler
HardFault_Handler
PROC
MemManage_Handler
; get current context
MRS
r0
,
psp
; get fault thread stack pointer
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录