Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
缘_顺
rt-thread
提交
3b472cb3
R
rt-thread
项目概览
缘_顺
/
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,发现更多精彩内容 >>
提交
3b472cb3
编写于
1月 22, 2019
作者:
S
SummerGift
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32] optimize stm32 headfile
上级
bef1d557
变更
68
隐藏空白更改
内联
并排
Showing
68 changed file
with
137 addition
and
134 deletion
+137
-134
bsp/stm32/libraries/HAL_Drivers/drv_common.c
bsp/stm32/libraries/HAL_Drivers/drv_common.c
+0
-4
bsp/stm32/libraries/HAL_Drivers/drv_common.h
bsp/stm32/libraries/HAL_Drivers/drv_common.h
+0
-1
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
+1
-3
bsp/stm32/libraries/HAL_Drivers/drv_lcd.c
bsp/stm32/libraries/HAL_Drivers/drv_lcd.c
+0
-3
bsp/stm32/libraries/HAL_Drivers/drv_sdram.c
bsp/stm32/libraries/HAL_Drivers/drv_sdram.c
+0
-2
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
+1
-1
bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
+1
-1
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
+1
-0
bsp/stm32/libraries/templates/stm32f10x/SConstruct
bsp/stm32/libraries/templates/stm32f10x/SConstruct
+1
-1
bsp/stm32/libraries/templates/stm32f10x/applications/main.c
bsp/stm32/libraries/templates/stm32f10x/applications/main.c
+1
-1
bsp/stm32/libraries/templates/stm32f10x/board/board.h
bsp/stm32/libraries/templates/stm32f10x/board/board.h
+1
-0
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
+1
-1
bsp/stm32/libraries/templates/stm32f4xx/applications/main.c
bsp/stm32/libraries/templates/stm32f4xx/applications/main.c
+1
-1
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
+1
-0
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
+1
-1
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
+1
-0
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
+1
-1
bsp/stm32/libraries/templates/stm32l4xx/applications/main.c
bsp/stm32/libraries/templates/stm32l4xx/applications/main.c
+1
-1
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
+1
-0
bsp/stm32/stm32f091-st-nucleo/SConstruct
bsp/stm32/stm32f091-st-nucleo/SConstruct
+1
-1
bsp/stm32/stm32f091-st-nucleo/board/board.h
bsp/stm32/stm32f091-st-nucleo/board/board.h
+1
-0
bsp/stm32/stm32f103-atk-nano/SConstruct
bsp/stm32/stm32f103-atk-nano/SConstruct
+1
-1
bsp/stm32/stm32f103-atk-nano/applications/main.c
bsp/stm32/stm32f103-atk-nano/applications/main.c
+1
-1
bsp/stm32/stm32f103-atk-nano/board/board.h
bsp/stm32/stm32f103-atk-nano/board/board.h
+1
-1
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
+1
-1
bsp/stm32/stm32f103-fire-arbitrary/applications/main.c
bsp/stm32/stm32f103-fire-arbitrary/applications/main.c
+1
-1
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
+1
-0
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
+1
-1
bsp/stm32/stm32f103-hw100k-ibox/applications/main.c
bsp/stm32/stm32f103-hw100k-ibox/applications/main.c
+1
-1
bsp/stm32/stm32f103-hw100k-ibox/board/board.h
bsp/stm32/stm32f103-hw100k-ibox/board/board.h
+1
-0
bsp/stm32/stm32f407-atk-explorer/SConstruct
bsp/stm32/stm32f407-atk-explorer/SConstruct
+1
-1
bsp/stm32/stm32f407-atk-explorer/applications/main.c
bsp/stm32/stm32f407-atk-explorer/applications/main.c
+1
-1
bsp/stm32/stm32f407-atk-explorer/board/board.h
bsp/stm32/stm32f407-atk-explorer/board/board.h
+1
-0
bsp/stm32/stm32f407-st-discovery/SConstruct
bsp/stm32/stm32f407-st-discovery/SConstruct
+1
-1
bsp/stm32/stm32f407-st-discovery/applications/main.c
bsp/stm32/stm32f407-st-discovery/applications/main.c
+0
-1
bsp/stm32/stm32f407-st-discovery/board/board.h
bsp/stm32/stm32f407-st-discovery/board/board.h
+1
-0
bsp/stm32/stm32f411-st-nucleo/SConstruct
bsp/stm32/stm32f411-st-nucleo/SConstruct
+1
-1
bsp/stm32/stm32f411-st-nucleo/applications/main.c
bsp/stm32/stm32f411-st-nucleo/applications/main.c
+1
-1
bsp/stm32/stm32f411-st-nucleo/board/board.h
bsp/stm32/stm32f411-st-nucleo/board/board.h
+1
-0
bsp/stm32/stm32f429-armfly-v6/SConstruct
bsp/stm32/stm32f429-armfly-v6/SConstruct
+1
-1
bsp/stm32/stm32f429-armfly-v6/board/board.h
bsp/stm32/stm32f429-armfly-v6/board/board.h
+1
-4
bsp/stm32/stm32f429-atk-apollo/SConstruct
bsp/stm32/stm32f429-atk-apollo/SConstruct
+1
-1
bsp/stm32/stm32f429-atk-apollo/applications/main.c
bsp/stm32/stm32f429-atk-apollo/applications/main.c
+1
-1
bsp/stm32/stm32f429-atk-apollo/board/board.h
bsp/stm32/stm32f429-atk-apollo/board/board.h
+1
-0
bsp/stm32/stm32f429-fire-challenger/SConstruct
bsp/stm32/stm32f429-fire-challenger/SConstruct
+1
-1
bsp/stm32/stm32f429-fire-challenger/applications/main.c
bsp/stm32/stm32f429-fire-challenger/applications/main.c
+1
-1
bsp/stm32/stm32f429-fire-challenger/board/board.h
bsp/stm32/stm32f429-fire-challenger/board/board.h
+1
-0
bsp/stm32/stm32f446-st-nucleo/SConstruct
bsp/stm32/stm32f446-st-nucleo/SConstruct
+1
-1
bsp/stm32/stm32f446-st-nucleo/applications/main.c
bsp/stm32/stm32f446-st-nucleo/applications/main.c
+1
-1
bsp/stm32/stm32f446-st-nucleo/board/board.h
bsp/stm32/stm32f446-st-nucleo/board/board.h
+1
-0
bsp/stm32/stm32f746-st-disco/SConstruct
bsp/stm32/stm32f746-st-disco/SConstruct
+1
-1
bsp/stm32/stm32f746-st-disco/applications/main.c
bsp/stm32/stm32f746-st-disco/applications/main.c
+1
-1
bsp/stm32/stm32f746-st-disco/board/board.h
bsp/stm32/stm32f746-st-disco/board/board.h
+1
-0
bsp/stm32/stm32f767-atk-apollo/SConstruct
bsp/stm32/stm32f767-atk-apollo/SConstruct
+1
-1
bsp/stm32/stm32f767-atk-apollo/applications/main.c
bsp/stm32/stm32f767-atk-apollo/applications/main.c
+1
-1
bsp/stm32/stm32f767-atk-apollo/board/board.h
bsp/stm32/stm32f767-atk-apollo/board/board.h
+1
-0
bsp/stm32/stm32f767-fire-challenger/SConstruct
bsp/stm32/stm32f767-fire-challenger/SConstruct
+1
-1
bsp/stm32/stm32f767-fire-challenger/applications/main.c
bsp/stm32/stm32f767-fire-challenger/applications/main.c
+1
-1
bsp/stm32/stm32f767-fire-challenger/board/board.h
bsp/stm32/stm32f767-fire-challenger/board/board.h
+1
-0
bsp/stm32/stm32f767-st-nucleo/SConstruct
bsp/stm32/stm32f767-st-nucleo/SConstruct
+1
-1
bsp/stm32/stm32f767-st-nucleo/applications/main.c
bsp/stm32/stm32f767-st-nucleo/applications/main.c
+34
-35
bsp/stm32/stm32f767-st-nucleo/board/board.h
bsp/stm32/stm32f767-st-nucleo/board/board.h
+42
-41
bsp/stm32/stm32l432-st-nucleo/SConstruct
bsp/stm32/stm32l432-st-nucleo/SConstruct
+1
-1
bsp/stm32/stm32l432-st-nucleo/applications/main.c
bsp/stm32/stm32l432-st-nucleo/applications/main.c
+1
-1
bsp/stm32/stm32l432-st-nucleo/board/board.h
bsp/stm32/stm32l432-st-nucleo/board/board.h
+1
-0
bsp/stm32/stm32l475-atk-pandora/SConstruct
bsp/stm32/stm32l475-atk-pandora/SConstruct
+1
-1
bsp/stm32/stm32l475-atk-pandora/applications/main.c
bsp/stm32/stm32l475-atk-pandora/applications/main.c
+1
-1
bsp/stm32/stm32l475-atk-pandora/board/board.h
bsp/stm32/stm32l475-atk-pandora/board/board.h
+1
-0
未找到文件。
bsp/stm32/libraries/HAL_Drivers/drv_common.c
浏览文件 @
3b472cb3
...
...
@@ -10,10 +10,6 @@
#include "drv_common.h"
#ifdef RT_USING_PIN
#include "drv_gpio.h"
#endif
#ifdef RT_USING_SERIAL
#include "drv_usart.h"
#endif
...
...
bsp/stm32/libraries/HAL_Drivers/drv_common.h
浏览文件 @
3b472cb3
...
...
@@ -14,7 +14,6 @@
#include <rtthread.h>
#include <rthw.h>
#include <rtdevice.h>
#include <board.h>
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/HAL_Drivers/drv_dma.h
浏览文件 @
3b472cb3
...
...
@@ -12,9 +12,7 @@
#define __DRV_DMA_H_
#include <rtthread.h>
#include "rtdevice.h"
#include <rthw.h>
#include <drv_common.h>
#include <board.h>
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/HAL_Drivers/drv_lcd.c
浏览文件 @
3b472cb3
...
...
@@ -8,14 +8,11 @@
* 2019-01-08 zylx first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#ifdef BSP_USING_LCD
#include <lcd_port.h>
#include <string.h>
#include "drv_gpio.h"
//#define DRV_DEBUG
#define LOG_TAG "drv.lcd"
...
...
bsp/stm32/libraries/HAL_Drivers/drv_sdram.c
浏览文件 @
3b472cb3
...
...
@@ -8,8 +8,6 @@
* 2018-12-04 zylx first version
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#ifdef BSP_USING_SDRAM
...
...
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/libraries/templates/stm32f0xx/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/templates/stm32f10x/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/libraries/templates/stm32f10x/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/libraries/templates/stm32f10x/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/libraries/templates/stm32f4xx/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/libraries/templates/stm32l4xx/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f091-st-nucleo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f091-st-nucleo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f0xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f103-atk-nano/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f103-atk-nano/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PC0 */
#define LED0_PIN GET_PIN(C, 0)
...
...
bsp/stm32/stm32f103-atk-nano/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -11,9 +11,9 @@
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f103-fire-arbitrary/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PF7 */
#define LED0_PIN GET_PIN(F, 7)
...
...
bsp/stm32/stm32f103-fire-arbitrary/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f103-hw100k-ibox/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PE9 */
#define LED0_PIN GET_PIN(E, 9)
...
...
bsp/stm32/stm32f103-hw100k-ibox/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f1xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f407-atk-explorer/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f407-atk-explorer/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -12,7 +12,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PF9 */
#define LED0_PIN GET_PIN(F, 9)
...
...
bsp/stm32/stm32f407-atk-explorer/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f407-st-discovery/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rtthread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f407-st-discovery/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,6 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PD14 */
#define LED0_PIN GET_PIN(D, 14)
...
...
bsp/stm32/stm32f407-st-discovery/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f411-st-nucleo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rtthread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f411-st-nucleo/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PA5 */
#define LED0_PIN GET_PIN(A, 5)
...
...
bsp/stm32/stm32f411-st-nucleo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f429-armfly-v6/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f429-armfly-v6/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,15 +14,12 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef BSP_USING_GPIO
#include "drv_gpio.h"
#endif
#define STM32_SRAM_SIZE (192)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
...
bsp/stm32/stm32f429-atk-apollo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f429-atk-apollo/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/stm32f429-atk-apollo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f429-fire-challenger/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f429-fire-challenger/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -12,7 +12,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PH10 */
#define LED0_PIN GET_PIN(H, 10)
...
...
bsp/stm32/stm32f429-fire-challenger/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f446-st-nucleo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f446-st-nucleo/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED2 pin: PB7 */
#define LED2_PIN GET_PIN(B, 7)
...
...
bsp/stm32/stm32f446-st-nucleo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -15,6 +15,7 @@
#include <rtthread.h>
#include <stm32f4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
...
...
bsp/stm32/stm32f746-st-disco/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f746-st-disco/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED1 pin: PI1 */
#define LED1_PIN GET_PIN(I, 1)
...
...
bsp/stm32/stm32f746-st-disco/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
...
...
bsp/stm32/stm32f767-atk-apollo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f767-atk-apollo/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB1 */
#define LED0_PIN GET_PIN(B, 1)
...
...
bsp/stm32/stm32f767-atk-apollo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f767-fire-challenger/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f767-fire-challenger/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PH10 */
#define LED0_PIN GET_PIN(H, 10)
...
...
bsp/stm32/stm32f767-fire-challenger/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32f767-st-nucleo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32f767-st-nucleo/applications/main.c
浏览文件 @
3b472cb3
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 2019-1-10 e31207077 change to new framework
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED1 pin: PB0 */
#define LED1_PIN GET_PIN(B, 0)
int
main
(
void
)
{
int
count
=
1
;
/* set LED1 pin mode to output */
rt_pin_mode
(
LED1_PIN
,
PIN_MODE_OUTPUT
);
while
(
count
++
)
{
rt_pin_write
(
LED1_PIN
,
PIN_HIGH
);
rt_thread_mdelay
(
500
);
rt_pin_write
(
LED1_PIN
,
PIN_LOW
);
rt_thread_mdelay
(
500
);
}
return
RT_EOK
;
}
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
* 2019-1-10 e31207077 change to new framework
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
/* defined the LED1 pin: PB0 */
#define LED1_PIN GET_PIN(B, 0)
int
main
(
void
)
{
int
count
=
1
;
/* set LED1 pin mode to output */
rt_pin_mode
(
LED1_PIN
,
PIN_MODE_OUTPUT
);
while
(
count
++
)
{
rt_pin_write
(
LED1_PIN
,
PIN_HIGH
);
rt_thread_mdelay
(
500
);
rt_pin_write
(
LED1_PIN
,
PIN_LOW
);
rt_thread_mdelay
(
500
);
}
return
RT_EOK
;
}
bsp/stm32/stm32f767-st-nucleo/board/board.h
浏览文件 @
3b472cb3
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-5 SummerGift change to new framework
* 2019-1-10 e31207077 change to new framework
*/
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (2048 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
extern
int
__bss_end
;
#define HEAP_BEGIN (&__bss_end)
#endif
#define HEAP_END STM32_SRAM_END
void
SystemClock_Config
(
void
);
#endif
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-5 SummerGift change to new framework
* 2019-1-10 e31207077 change to new framework
*/
#ifndef __BOARD_H__
#define __BOARD_H__
#include <rtthread.h>
#include <stm32f7xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (2048 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM_SIZE (512)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
extern
int
__bss_end
;
#define HEAP_BEGIN (&__bss_end)
#endif
#define HEAP_END STM32_SRAM_END
void
SystemClock_Config
(
void
);
#endif
bsp/stm32/stm32l432-st-nucleo/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32l432-st-nucleo/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PB3 */
#define LED0_PIN GET_PIN(B, 3)
...
...
bsp/stm32/stm32l432-st-nucleo/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
bsp/stm32/stm32l475-atk-pandora/SConstruct
浏览文件 @
3b472cb3
...
...
@@ -27,7 +27,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
bsp/stm32/stm32l475-atk-pandora/applications/main.c
浏览文件 @
3b472cb3
...
...
@@ -11,7 +11,7 @@
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "drv_gpio.h"
/* defined the LED0 pin: PE7 */
#define LED0_PIN GET_PIN(E, 7)
...
...
bsp/stm32/stm32l475-atk-pandora/board/board.h
浏览文件 @
3b472cb3
...
...
@@ -14,6 +14,7 @@
#include <rtthread.h>
#include <stm32l4xx.h>
#include "drv_common.h"
#include "drv_gpio.h"
#ifdef __cplusplus
extern
"C"
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录