Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
da56076b
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看板
未验证
提交
da56076b
编写于
12月 04, 2018
作者:
B
Bernard Xiong
提交者:
GitHub
12月 04, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2028 from aozima/bsp_dev
修复一系列BSP编译错误
上级
96c0a42f
a3b4e785
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
64 addition
and
39 deletion
+64
-39
bsp/CME_M7/rtconfig.h
bsp/CME_M7/rtconfig.h
+8
-2
bsp/CME_M7/rtconfig.py
bsp/CME_M7/rtconfig.py
+8
-7
bsp/apollo2/rtconfig.py
bsp/apollo2/rtconfig.py
+5
-7
bsp/frdm-k64f/MK64F.sct
bsp/frdm-k64f/MK64F.sct
+1
-1
bsp/frdm-k64f/rtconfig.py
bsp/frdm-k64f/rtconfig.py
+4
-5
bsp/lpc176x/SConstruct
bsp/lpc176x/SConstruct
+0
-1
bsp/mb9bf500r/rtconfig.py
bsp/mb9bf500r/rtconfig.py
+4
-2
bsp/mini4020/rtconfig.h
bsp/mini4020/rtconfig.h
+1
-0
bsp/nv32f100x/rtconfig.py
bsp/nv32f100x/rtconfig.py
+5
-3
bsp/rm48x50/rtconfig.py
bsp/rm48x50/rtconfig.py
+4
-0
bsp/samd21/rtconfig.py
bsp/samd21/rtconfig.py
+4
-0
bsp/samd21/sam_d2x_asflib/SConscript
bsp/samd21/sam_d2x_asflib/SConscript
+10
-4
bsp/stm32f107/drivers/stm32_eth.c
bsp/stm32f107/drivers/stm32_eth.c
+2
-2
bsp/stm32f40x/drivers/stm32f4xx_eth.c
bsp/stm32f40x/drivers/stm32f4xx_eth.c
+2
-2
bsp/stm32f429-disco/drivers/drv_lcd.c
bsp/stm32f429-disco/drivers/drv_lcd.c
+2
-2
bsp/stm32f429-disco/drivers/drv_touch.c
bsp/stm32f429-disco/drivers/drv_touch.c
+4
-1
未找到文件。
bsp/CME_M7/rtconfig.h
浏览文件 @
da56076b
...
...
@@ -100,8 +100,14 @@
/* Enable DHCP */
// #define RT_LWIP_DHCP
/* the number of simulatenously active TCP connections*/
#define RT_LWIP_TCP_PCB_NUM 3
#define RT_MEMP_NUM_NETCONN 12
#define RT_LWIP_PBUF_NUM 3
#define RT_LWIP_RAW_PCB_NUM 2
#define RT_LWIP_UDP_PCB_NUM 4
#define RT_LWIP_TCP_PCB_NUM 8
#define RT_LWIP_TCP_SEG_NUM 40
#define RT_LWIP_TCP_SND_BUF 4380
#define RT_LWIP_TCP_WND 4380
/* ip address of target */
#define RT_LWIP_IPADDR "192.168.1.30"
...
...
bsp/CME_M7/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -15,8 +15,10 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar'
EXEC_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
print
(
'================ERROR============================'
)
print
(
'Not support iar yet!'
)
print
(
'================================================='
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
@@ -64,15 +66,14 @@ elif PLATFORM == 'armcc':
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --c
ortex-m
3'
DEVICE
=
' --c
pu Cortex-M
3'
CFLAGS
=
DEVICE
+
' --c99 --apcs=interwork'
AFLAGS
=
DEVICE
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter
nuc472_flash
.sct'
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter
CME_M7
.sct'
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
LFLAGS
+=
' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
EXEC_PATH
+=
'/
arm/bin40/
'
EXEC_PATH
+=
'/
ARM/ARMCC/bin
'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O0'
...
...
bsp/apollo2/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -64,16 +64,14 @@ elif PLATFORM == 'armcc':
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --
device DARMSTM
'
CFLAGS
=
DEVICE
+
' --apcs=interwork'
DEVICE
=
' --
cpu Cortex-M4
'
CFLAGS
=
DEVICE
+
' --
c99 --
apcs=interwork'
AFLAGS
=
DEVICE
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread-apollo2.map --scatter rtthread
-apollo2
.sct'
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread-apollo2.map --scatter rtthread.sct'
CFLAGS
+=
' --c99'
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
LFLAGS
+=
' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
EXEC_PATH
+=
'/
arm/bin40/
'
EXEC_PATH
+=
'/
ARM/ARMCC/bin
'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O0'
...
...
bsp/frdm-k64f/MK64F.sct
浏览文件 @
da56076b
...
...
@@ -7,7 +7,7 @@ LR_IROM1 0x00000000 0x100000 { ; load region size_region (1000k)
}
; 8_byte_aligned(62 vect * 4 bytes) = 8_byte_aligned(0x194) = 0x198
; 0x40000 - 0x198 = 0x3FE68
RW_IRAM
1 0x1FFF0198 0x3FE68
{
RW_IRAM
2 0x20000000 0x30000
{
.ANY (+RW +ZI)
}
}
...
...
bsp/frdm-k64f/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -64,17 +64,16 @@ elif PLATFORM == 'armcc':
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
DEVICE
+
' --apcs=interwork'
CFLAGS
=
DEVICE
+
' --
c99 --
apcs=interwork'
AFLAGS
=
DEVICE
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread-k64f.map --scatter MK64F.sct'
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
LFLAGS
+=
' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
EXEC_PATH
+=
'/
arm/bin40/
'
EXEC_PATH
+=
'/
ARM/ARMCC/bin
'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -
-c99 -
g -O0'
CFLAGS
+=
' -g -O0'
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
...
...
bsp/lpc176x/SConstruct
浏览文件 @
da56076b
...
...
@@ -14,7 +14,6 @@ TARGET = 'rtthread-lpc17xx.' + rtconfig.TARGET_EXT
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
...
...
bsp/mb9bf500r/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -18,8 +18,10 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar'
EXEC_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
print
(
'================ERROR============================'
)
print
(
'Not support iar yet!'
)
print
(
'================================================='
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/mini4020/rtconfig.h
浏览文件 @
da56076b
...
...
@@ -63,6 +63,7 @@
/* SECTION: Device System */
/* Using Device System */
#define RT_USING_DEVICE
#define RT_USING_DEVICE_IPC
/* SECTION: Console options */
/* the buffer size of console */
...
...
bsp/nv32f100x/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -11,11 +11,13 @@ if os.getenv('RTT_CC'):
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
print
(
'================ERROR============================'
)
print
(
'Not support gcc yet!'
)
print
(
'================================================='
)
exit
(
0
)
elif
CROSS_TOOL
==
'keil'
:
print
(
'================ERROR============================'
)
print
(
'Not support
iar
yet!'
)
print
(
'Not support
keil
yet!'
)
print
(
'================================================='
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
...
...
bsp/rm48x50/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -14,6 +14,10 @@ if CROSS_TOOL == 'gcc':
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
print
(
'================ERROR============================'
)
print
(
'Not support keil yet!'
)
print
(
'================================================='
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
print
(
'================ERROR============================'
)
print
(
'Not support IAR yet!'
)
...
...
bsp/samd21/rtconfig.py
浏览文件 @
da56076b
...
...
@@ -18,6 +18,10 @@ DEVICE_TYPE = '__SAMD21J18A__'
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin'
print
(
'================ERROR============================'
)
print
(
'Not support gcc yet!'
)
print
(
'================================================='
)
exit
(
0
)
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
...
...
bsp/samd21/sam_d2x_asflib/SConscript
浏览文件 @
da56076b
...
...
@@ -31,13 +31,19 @@ if rtconfig.DEVICE_SERIES == 'SAMD20':
path
+=
[
cwd
+
'/sam0/'
,
cwd
+
'/sam0/utils/cmsis/samd20/include/'
]
path
+=
[
cwd
+
'/sam0/utils/cmsis/samd20/source/'
]
src
+=
Glob
(
'./sam0/utils/cmsis/samd20/source/*.c'
)
src
+=
Glob
(
'./sam0/utils/cmsis/samd20/source/arm/*.s'
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
Glob
(
'./sam0/utils/cmsis/samd20/source/gcc/*.s'
)
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
src
+=
Glob
(
'./sam0/utils/cmsis/samd20/source/arm/*.s'
)
elif
rtconfig
.
DEVICE_SERIES
==
'SAMD21'
:
#D21
path
+=
[
cwd
+
'/sam0/utils/cmsis/samd21/include/'
]
path
+=
[
cwd
+
'/sam0/utils/cmsis/samd21/source/'
]
src
+=
Glob
(
'./sam0/utils/cmsis/samd21/source/*.c'
)
src
+=
Glob
(
'./sam0/utils/cmsis/samd21/source/arm/*.s'
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
Glob
(
'./sam0/utils/cmsis/samd21/source/gcc/*.s'
)
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
src
+=
Glob
(
'./sam0/utils/cmsis/samd21/source/arm/*.s'
)
#sam0/drivers/system
path
+=
[
cwd
+
'/sam0/drivers/system/'
]
...
...
@@ -68,8 +74,8 @@ elif rtconfig.DEVICE_SERIES == 'SAMD21':
path
+=
[
cwd
+
'/sam0/drivers/sercom'
,
cwd
+
'/sam0/drivers/sercom/usart'
]
src
+=
Glob
(
'./sam0/drivers/sercom/*.c'
)
src
+=
Glob
(
'./sam0/drivers/sercom/usart/*.c'
)
SrcRemove
(
src
,
'sercom_interrupt.c'
)
SrcRemove
(
src
,
'usart_interrupt.c'
)
SrcRemove
(
src
,
'
./sam0/drivers/sercom/
sercom_interrupt.c'
)
SrcRemove
(
src
,
'
./sam0/drivers/sercom/usart/
usart_interrupt.c'
)
CPPDEFINES
+=
[
'USART_CALLBACK_MODE=false'
]
#sam0/drivers/port
...
...
bsp/stm32f107/drivers/stm32_eth.c
浏览文件 @
da56076b
...
...
@@ -3141,7 +3141,7 @@ static void register_multicast_address(struct rt_stm32_eth *stm32_eth, const uin
#endif
/* (LWIP_IPV4 && LWIP_IGMP) || (LWIP_IPV6 && LWIP_IPV6_MLD) */
#if LWIP_IPV4 && LWIP_IGMP
static
err_t
igmp_mac_filter
(
struct
netif
*
netif
,
const
ip4_addr_t
*
ip4_addr
,
u8_t
action
)
static
err_t
igmp_mac_filter
(
struct
netif
*
netif
,
const
ip4_addr_t
*
ip4_addr
,
enum
netif_mac_filter_action
action
)
{
uint8_t
mac
[
6
];
const
uint8_t
*
p
=
(
const
uint8_t
*
)
ip4_addr
;
...
...
@@ -3167,7 +3167,7 @@ static err_t igmp_mac_filter( struct netif *netif, const ip4_addr_t *ip4_addr, u
#endif
/* LWIP_IPV4 && LWIP_IGMP */
#if LWIP_IPV6 && LWIP_IPV6_MLD
static
err_t
mld_mac_filter
(
struct
netif
*
netif
,
const
ip6_addr_t
*
ip6_addr
,
u8_t
action
)
static
err_t
mld_mac_filter
(
struct
netif
*
netif
,
const
ip6_addr_t
*
ip6_addr
,
enum
netif_mac_filter_action
action
)
{
uint8_t
mac
[
6
];
const
uint8_t
*
p
=
(
const
uint8_t
*
)
&
ip6_addr
->
addr
[
3
];
...
...
bsp/stm32f40x/drivers/stm32f4xx_eth.c
浏览文件 @
da56076b
...
...
@@ -3467,7 +3467,7 @@ static void register_multicast_address(struct rt_stm32_eth *stm32_eth, const uin
#endif
/* (LWIP_IPV4 && LWIP_IGMP) || (LWIP_IPV6 && LWIP_IPV6_MLD) */
#if LWIP_IPV4 && LWIP_IGMP
static
err_t
igmp_mac_filter
(
struct
netif
*
netif
,
const
ip4_addr_t
*
ip4_addr
,
u8_t
action
)
static
err_t
igmp_mac_filter
(
struct
netif
*
netif
,
const
ip4_addr_t
*
ip4_addr
,
enum
netif_mac_filter_action
action
)
{
uint8_t
mac
[
6
];
const
uint8_t
*
p
=
(
const
uint8_t
*
)
ip4_addr
;
...
...
@@ -3493,7 +3493,7 @@ static err_t igmp_mac_filter( struct netif *netif, const ip4_addr_t *ip4_addr, u
#endif
/* LWIP_IPV4 && LWIP_IGMP */
#if LWIP_IPV6 && LWIP_IPV6_MLD
static
err_t
mld_mac_filter
(
struct
netif
*
netif
,
const
ip6_addr_t
*
ip6_addr
,
u8_t
action
)
static
err_t
mld_mac_filter
(
struct
netif
*
netif
,
const
ip6_addr_t
*
ip6_addr
,
enum
netif_mac_filter_action
action
)
{
uint8_t
mac
[
6
];
const
uint8_t
*
p
=
(
const
uint8_t
*
)
&
ip6_addr
->
addr
[
3
];
...
...
bsp/stm32f429-disco/drivers/drv_lcd.c
浏览文件 @
da56076b
...
...
@@ -919,8 +919,6 @@ FINSH_FUNCTION_EXPORT(lcd_blit_line, draw blit line in lcd display);
static
int
rt_hw_lcd_init
(
void
)
{
_lcd_low_level_init
();
static
struct
rt_device
lcd_device
;
static
struct
rt_device_graphic_ops
ili9341_ops
=
...
...
@@ -932,6 +930,8 @@ static int rt_hw_lcd_init(void)
ili9341_lcd_blit_line
};
_lcd_low_level_init
();
/* register lcd device */
lcd_device
.
type
=
RT_Device_Class_Graphic
;
lcd_device
.
init
=
lcd_init
;
...
...
bsp/stm32f429-disco/drivers/drv_touch.c
浏览文件 @
da56076b
...
...
@@ -67,7 +67,10 @@ static int32_t touch_read (uint8_t reg, uint8_t *val)
static
int32_t
touch_write
(
uint8_t
reg
,
uint8_t
val
)
{
struct
rt_i2c_msg
msgs
;
rt_uint8_t
buf
[
2
]
=
{
reg
,
val
};
rt_uint8_t
buf
[
2
];
buf
[
0
]
=
reg
;
buf
[
1
]
=
val
;
msgs
.
addr
=
TSC_I2C_ADDR
;
msgs
.
flags
=
RT_I2C_WR
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录