Skip to content

Commit 2b98f47

Browse files
authored
Merge pull request #2 from RT-Thread/master
更新
2 parents 1a7f95f + dcf7bce commit 2b98f47

File tree

1,868 files changed

+2011977
-744
lines changed

Some content is hidden

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

1,868 files changed

+2011977
-744
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ env:
8181
- RTT_BSP='stm32l475-iot-disco' RTT_TOOL_CHAIN='sourcery-arm'
8282
- RTT_BSP='stm32l476-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
8383
- RTT_BSP='stm32h743-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
84+
- RTT_BSP='stm32/stm32f103-atk-nano' RTT_TOOL_CHAIN='sourcery-arm'
85+
- RTT_BSP='stm32/stm32f103-fire-arbitrary' RTT_TOOL_CHAIN='sourcery-arm'
86+
- RTT_BSP='stm32/stm32f407-atk-explorer' RTT_TOOL_CHAIN='sourcery-arm'
87+
- RTT_BSP='stm32/stm32f429-atk-apollo' RTT_TOOL_CHAIN='sourcery-arm'
88+
- RTT_BSP='stm32/stm32f429-fire-challenger' RTT_TOOL_CHAIN='sourcery-arm'
8489
# - RTT_BSP='taihu' RTT_TOOL_CHAIN='sourcery-ppc'
8590
# - RTT_BSP='upd70f3454' # iar
8691
# - RTT_BSP='x86' # x86

bsp/CME_M7/rtconfig.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,14 @@
100100
/* Enable DHCP */
101101
// #define RT_LWIP_DHCP
102102

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

106112
/* ip address of target */
107113
#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/libcpu/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void rt_hw_interrupt_umask(int vector)
132132
* @return old handler
133133
*/
134134
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
135-
void *param, char *name)
135+
void *param, const char *name)
136136
{
137137
rt_isr_handler_t old_handler = RT_NULL;
138138
rt_uint32_t pend_addr, en_addr, data;

bsp/allwinner_tina/libcpu/interrupt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ typedef struct tina_intc *tina_intc_t;
102102
void rt_hw_interrupt_init(void);
103103
void rt_hw_interrupt_mask(int vector);
104104
void rt_hw_interrupt_umask(int vector);
105-
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, void *param, char *name);
105+
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, void *param, const char *name);
106106

107107
#endif /* __INTERRUPT_H__ */

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.py

Lines changed: 2 additions & 2 deletions
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'):
@@ -55,4 +55,4 @@
5555
CXXFLAGS = CFLAGS
5656

5757
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm\n'
58-
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
58+
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'

bsp/apollo2/rtconfig.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,14 @@
6464
LINK = 'armlink'
6565
TARGET_EXT = 'axf'
6666

67-
DEVICE = ' --device DARMSTM'
68-
CFLAGS = DEVICE + ' --apcs=interwork'
67+
DEVICE = ' --cpu Cortex-M4'
68+
CFLAGS = DEVICE + ' --c99 --apcs=interwork'
6969
AFLAGS = DEVICE
70-
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-apollo2.map --scatter rtthread-apollo2.sct'
70+
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-apollo2.map --scatter rtthread.sct'
7171

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

76-
EXEC_PATH += '/arm/bin40/'
74+
EXEC_PATH += '/ARM/ARMCC/bin'
7775

7876
if BUILD == 'debug':
7977
CFLAGS += ' -g -O0'

bsp/asm9260t/platform/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void rt_hw_interrupt_umask(int irq)
151151
* @return old handler
152152
*/
153153
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
154-
void *param, char *name)
154+
void *param, const char *name)
155155
{
156156
rt_isr_handler_t old_handler = RT_NULL;
157157

bsp/at91sam9260/platform/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void rt_hw_interrupt_umask(int irq)
319319
* @return old handler
320320
*/
321321
rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
322-
void *param, char *name)
322+
void *param, const char *name)
323323
{
324324
rt_isr_handler_t old_handler = RT_NULL;
325325

0 commit comments

Comments
 (0)