Skip to content

Commit 3dd0ebe

Browse files
authored
Merge pull request #2158 from armink/lts-v3.1.x
Lts v3.1.x
2 parents d113eb0 + 18dfb50 commit 3dd0ebe

File tree

923 files changed

+379628
-13410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

923 files changed

+379628
-13410
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
### Summary of this Pull Request (PR) 拉取/合并请求的简述
2+
3+
**Add description here.** **请在这里加入描述**
4+
5+
### Intent for your PR 拉取/合并请求的目的
6+
7+
Choose one (Mandatory): 必须选择一项
8+
9+
- [ ] This PR is for a code-review and is intended to get feedback 本拉取/合并请求是一个草稿版本
10+
- [ ] This PR is mature, and ready to be integrated into the repo 本拉取/合并请求是一个成熟版本
11+
12+
### Reviewers (Mandatory): 代码审阅者(必须指定)
13+
14+
(@<github.com username(s)> Ex: @user1, @user2)
15+
16+
### Code Quality: 代码质量
17+
18+
As part of this pull request, I've considered the following:
19+
我在这个拉取/合并请求中已经考虑了:
20+
21+
- [ ] Already check the difference between PR and old code 已经仔细查看过代码改动的对比
22+
- [ ] Style guide is adhered to, including spacing, naming and other style 代码风格正确,包括缩进空格,命名及其他风格
23+
- [ ] All redundant code is removed and cleaned up 没有垃圾代码,代码尽量精简,不包含`#if 0`代码,不包含已经被注释了的代码
24+
- [ ] All modifications are justified and not affect other components or BSP 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP
25+
- [ ] I've commented appropriately where code is tricky 对难懂代码均提供对应的注释
26+
- [ ] Code in this PR is of high quality 本拉取/合并请求代码是高质量的
27+
28+
### Testing:代码测试
29+
30+
I've tested the code using the following test programs (provide list here):
31+
我已经在如下场合跑过对应的测试:
32+
33+
- [ ] application 1
34+
- [ ] application 2
35+
- [ ] ...(add others here)

bsp/CME_M7/rtconfig.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define RT_USING_DEVICE
5656
#define RT_USING_DEVICE_IPC
5757
#define RT_USING_SERIAL
58+
#define RT_SERIAL_USING_DMA
5859

5960
/* SECTION: Console options */
6061
#define RT_USING_CONSOLE
@@ -100,8 +101,14 @@
100101
/* Enable DHCP */
101102
// #define RT_LWIP_DHCP
102103

103-
/* the number of simulatenously active TCP connections*/
104-
#define RT_LWIP_TCP_PCB_NUM 3
104+
#define RT_MEMP_NUM_NETCONN 12
105+
#define RT_LWIP_PBUF_NUM 3
106+
#define RT_LWIP_RAW_PCB_NUM 2
107+
#define RT_LWIP_UDP_PCB_NUM 4
108+
#define RT_LWIP_TCP_PCB_NUM 8
109+
#define RT_LWIP_TCP_SEG_NUM 40
110+
#define RT_LWIP_TCP_SND_BUF 4380
111+
#define RT_LWIP_TCP_WND 4380
105112

106113
/* ip address of target */
107114
#define RT_LWIP_IPADDR "192.168.1.30"

bsp/CME_M7/rtconfig.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
PLATFORM = 'armcc'
1616
EXEC_PATH = 'C:/Keil'
1717
elif CROSS_TOOL == 'iar':
18-
PLATFORM = 'iar'
19-
EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation'
18+
print('================ERROR============================')
19+
print('Not support iar yet!')
20+
print('=================================================')
21+
exit(0)
2022

2123
if os.getenv('RTT_EXEC_PATH'):
2224
EXEC_PATH = os.getenv('RTT_EXEC_PATH')
@@ -64,15 +66,14 @@
6466
LINK = 'armlink'
6567
TARGET_EXT = 'axf'
6668

67-
DEVICE = ' --cortex-m3'
69+
DEVICE = ' --cpu Cortex-M3'
6870
CFLAGS = DEVICE + ' --c99 --apcs=interwork'
6971
AFLAGS = DEVICE
70-
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter nuc472_flash.sct'
72+
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter CME_M7.sct'
7173

72-
CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC'
73-
LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB'
74+
LFLAGS += ' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
7475

75-
EXEC_PATH += '/arm/bin40/'
76+
EXEC_PATH += '/ARM/ARMCC/bin'
7677

7778
if BUILD == 'debug':
7879
CFLAGS += ' -g -O0'

bsp/allwinner_tina/.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ CONFIG_RT_USING_DFS_DEVFS=y
120120
#
121121
CONFIG_RT_USING_DEVICE_IPC=y
122122
CONFIG_RT_USING_SERIAL=y
123+
CONFIG_RT_SERIAL_USING_DMA=y
123124
# CONFIG_RT_USING_CAN is not set
124125
# CONFIG_RT_USING_HWTIMER is not set
125126
# CONFIG_RT_USING_CPUTIME is not set

bsp/allwinner_tina/libcpu/start_gcc.S

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _vector_reset:
4848
_vector_undef:
4949
.word vector_undef
5050
_vector_swi:
51-
.word vector_swi
51+
.word SVC_Handler
5252
_vector_pabt:
5353
.word vector_pabt
5454
_vector_dabt:
@@ -314,7 +314,9 @@ rt_hw_context_switch_interrupt_do:
314314
str lr, [r0, #14*4]
315315
.endm
316316

317-
.align 5
317+
.align 5
318+
.weak SVC_Handler
319+
SVC_Handler:
318320
vector_swi:
319321
push_svc_reg
320322
bl rt_hw_trap_swi

bsp/allwinner_tina/rtconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111

112112
#define RT_USING_DEVICE_IPC
113113
#define RT_USING_SERIAL
114+
#define RT_SERIAL_USING_DMA
114115
/* RT_USING_CAN is not set */
115116
/* RT_USING_HWTIMER is not set */
116117
/* RT_USING_CPUTIME is not set */

bsp/allwinner_tina/rtconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# toolchains options
44
ARCH ='arm'
5-
CPU ='R6'
5+
CPU ='arm9'
66
CROSS_TOOL ='gcc'
77

88
if os.getenv('RTT_ROOT'):

bsp/amebaz/.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ CONFIG_FINSH_ARG_MAX=10
106106
CONFIG_RT_USING_DEVICE_IPC=y
107107
CONFIG_RT_PIPE_BUFSZ=512
108108
CONFIG_RT_USING_SERIAL=y
109+
CONFIG_RT_SERIAL_USING_DMA=y
109110
# CONFIG_RT_USING_CAN is not set
110111
# CONFIG_RT_USING_HWTIMER is not set
111112
# CONFIG_RT_USING_CPUTIME is not set

bsp/amebaz/drivers/wlan/drv_wifi.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,16 @@ int rthw_wifi_register(struct ameba_wifi *wifi)
9191

9292
if ((wifi->flag & WIFI_INIT_FLAG) == 0)
9393
{
94+
wlan = rt_malloc(sizeof(struct rt_wlan_device));
95+
RT_ASSERT(wlan != RT_NULL);
9496
if (wifi->type == WIFI_TYPE_STA)
95-
wlan = rt_wlan_dev_register(RT_WLAN_DEVICE_STA_NAME, &ops, 0, wifi);
97+
{
98+
rt_wlan_dev_register(wlan, RT_WLAN_DEVICE_STA_NAME, &ops, 0, wifi);
99+
}
96100
if (wifi->type == WIFI_TYPE_AP)
97-
wlan = rt_wlan_dev_register(RT_WLAN_DEVICE_AP_NAME, &ops, 0, wifi);
101+
{
102+
rt_wlan_dev_register(wlan, RT_WLAN_DEVICE_AP_NAME, &ops, 0, wifi);
103+
}
98104
wifi->flag |= WIFI_INIT_FLAG;
99105
wifi->wlan = wlan;
100106
LOG_D("F:%s L:%d wifi:0x%08x wlan:0x%08x\n", __FUNCTION__, __LINE__, wifi, wlan);

bsp/amebaz/rtconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#define RT_USING_DEVICE_IPC
7676
#define RT_PIPE_BUFSZ 512
7777
#define RT_USING_SERIAL
78+
#define RT_SERIAL_USING_DMA
7879

7980
/* Using WiFi */
8081

0 commit comments

Comments
 (0)