Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
luozhenger
rt-thread
提交
94cb8722
R
rt-thread
项目概览
luozhenger
/
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,发现更多精彩内容 >>
提交
94cb8722
编写于
8月 19, 2016
作者:
xuzhuoyi96
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32f429-disco] Add stm32f42x GPIO index
上级
1ea925f9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
2 deletion
+35
-2
bsp/stm32f429-disco/SConstruct
bsp/stm32f429-disco/SConstruct
+1
-1
bsp/stm32f429-disco/drivers/gpio.c
bsp/stm32f429-disco/drivers/gpio.c
+33
-0
bsp/stm32f429-disco/rtconfig.py
bsp/stm32f429-disco/rtconfig.py
+1
-1
未找到文件。
bsp/stm32f429-disco/SConstruct
浏览文件 @
94cb8722
...
...
@@ -15,7 +15,7 @@ except:
print
RTT_ROOT
exit
(
-
1
)
TARGET
=
'rtthread-stm32f4
x
x.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f4
2
x.'
+
rtconfig
.
TARGET_EXT
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
...
...
bsp/stm32f429-disco/drivers/gpio.c
浏览文件 @
94cb8722
...
...
@@ -86,6 +86,39 @@ static const struct pin_index pins[] =
{
51
,
RCC_AHB1Periph_GPIOA
,
GPIOA
,
GPIO_Pin_7
},
{
52
,
RCC_AHB1Periph_GPIOB
,
GPIOB
,
GPIO_Pin_3
},
{
53
,
RCC_AHB1Periph_GPIOA
,
GPIOA
,
GPIO_Pin_4
},
{
54
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_0
},
{
55
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_1
},
{
56
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_2
},
{
57
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_3
},
{
58
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_4
},
{
59
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_5
},
{
60
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_6
},
{
61
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_7
},
{
62
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_8
},
{
63
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_9
},
{
64
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_10
},
{
65
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_11
},
{
66
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_12
},
{
67
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_13
},
{
68
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_14
},
{
69
,
RCC_AHB1Periph_GPIOF
,
GPIOF
,
GPIO_Pin_15
},
{
70
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_0
},
{
71
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_1
},
{
72
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_2
},
{
73
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_3
},
{
74
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_4
},
{
75
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_5
},
{
76
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_6
},
{
77
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_7
},
{
78
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_8
},
{
79
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_9
},
{
80
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_10
},
{
81
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_11
},
{
82
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_12
},
{
83
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_13
},
{
84
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_14
},
{
85
,
RCC_AHB1Periph_GPIOG
,
GPIOG
,
GPIO_Pin_15
}
};
#define ITEM_NUM(items) sizeof(items)/sizeof(items[0])
...
...
bsp/stm32f429-disco/rtconfig.py
浏览文件 @
94cb8722
...
...
@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
OBJCPY
=
PREFIX
+
'objcopy'
DEVICE
=
' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS
=
DEVICE
+
' -g -Wall -DSTM32F4
07ZG
-DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -D__FPU_USED'
CFLAGS
=
DEVICE
+
' -g -Wall -DSTM32F4
29ZI
-DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -D__FPU_USED'
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS
=
DEVICE
+
' -lm -lgcc -lc'
+
' -nostartfiles -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录