Meco Man
7973ede5a8
增加RT_USING_POSIX_FS
2021-11-29 00:53:46 -05:00
Bernard Xiong
1cea0c8c79
Merge pull request #5279 from OpenNuvoton/nuvoton
...
[Nuvoton] Update drivers.
2021-11-25 20:03:58 +08:00
Meco Man
df9a23c534
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
2021-11-17 15:57:15 -05:00
liuxianliang
8e518f234a
[fix] format
2021-11-15 15:58:31 +08:00
yukelab
be2006f325
fix sys_arch.c
2021-11-15 15:30:21 +08:00
yukelab
cda78884aa
ping cmd with specified netif in lwip-2.1.2
...
using LWIP_HOOK_IP4_ROUTE_SRC hook find specified netif route, using
cmd `ping 192.168.xx.xx e0`, ping dest using e0 netif. if not found
netif, using default netif, the effect is same as the cmd `ping 192.168.xx.xx` that only ping with default netif.
2021-11-15 15:30:20 +08:00
Wayne
17cbdda13d
Merge branch 'RT-Thread:master' into nuvoton
2021-11-15 11:28:34 +08:00
Wayne Lin
9b44e57a60
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
2021-11-10 16:01:38 +08:00
Meco Man
1adcc181aa
add delay.c as default
2021-11-08 10:52:37 -05:00
Meco Man
251e17b41a
调整SAL依赖项
2021-11-07 21:29:28 -05:00
Meco Man
664a1d6a75
增加 RT_USING_POSIX_SELECT RT_USING_POSIX_POLL
2021-11-07 20:53:57 -05:00
Meco Man
0009d1f393
[posix]将pthread收缩到posix选项之下,将选定DFS后由DFS选定POSIX 改为选择posix后选择dfs
2021-11-06 19:32:57 -04:00
Meco Man
bd24c67d06
define RT_USING_BIG_ENDIAN for the long-term version
2021-10-18 17:41:14 -04:00
Meco Man
ee4b7916a3
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
2021-09-22 16:45:21 -04:00
Meco Man
d6b60300a5
[.ignore_format] 将ignore_format分散到各个文件夹中,不必集中在根目录下
2021-09-20 15:46:53 -04:00
guo
160d448660
Merge pull request #5051 from mysterywolf/be_libc
...
[libc标准化] 使用标准poll.h代替dfs_poll.h
2021-09-13 10:45:09 +08:00
Meco Man
b35fffd659
[remove rtlibc]修复缺失的头文件导致的报错
2021-09-11 14:43:09 -04:00
Meco Man
c360688714
使用poll.h代替dfs_poll.h
2021-09-11 11:56:54 -04:00
Bernard Xiong
4423b487c5
Merge pull request #5044 from BernardXiong/libc_pr
...
[libc] remove rtlibc
2021-09-11 20:00:39 +08:00
BernardXiong
0b13409c16
[BSP] fix compiling issue with libc
2021-09-11 18:09:22 +08:00
Grissiom
1ebf7b5196
[Netif] Fix the eth_tx_msg protection
...
The ethernetif use semaphore netif->tx_ack to protect the local variable
`struct eth_tx_msg msg` in function `ethernetif_linkoutput`. But the
function could be called in multiple context: LwIP "tcpip" thread, "erx"
thread(on linkup) and any user thread that call `udp_sendto`. So the
global semaphore protection is not sufficient. It could only wakeup the
top priority waiting thread instead of the thread that owns the `msg`
and may result the `msg` next in the mailbox got destructed.
So to use a `rt_completion` within the `struct eth_tx_msg` and
synchronize on that. This could deal the ownership issue in an easy way.
2021-09-11 13:11:57 +08:00
Bernard Xiong
8da9f78d72
[libc] remove rtlibc
2021-09-11 11:07:51 +08:00
guo
877bb072cf
Merge pull request #5014 from mysterywolf/finsh
...
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
2021-09-05 19:49:43 +08:00
Meco Man
e18d44940f
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
2021-09-05 01:57:26 -04:00
malongwei
f1e1b6b2e3
fix at_client.c
2021-09-03 20:16:35 +08:00
malongwei
c229d8b2b5
fix at_client.c
2021-09-01 21:19:22 +08:00
guo
553b57e3a9
Merge pull request #4897 from ImFovery/master
...
Update sockets.c
2021-08-31 16:15:44 +08:00
马志远
221da7f464
Remove C Style Command Shell
2021-08-23 17:30:05 +08:00
rtthread-bot
d545b2af04
Merge remote-tracking branch 'rtt_gitee/gitee_master'
2021-08-10 16:25:59 +00:00
liuduanfei
a24852b6ea
update components/net/lwip_dhcpd/dhcp_server.c.
...
修改代码格式。添加空格
2021-08-10 09:06:12 +00:00
liuduanfei
745c7e0a7f
update components/net/lwip_dhcpd/dhcp_server.c.
...
消除编译警告
2021-08-10 08:57:12 +00:00
Bernard Xiong
0880b43498
Merge pull request #4911 from mysterywolf/rt_delayed_work_init
...
[workqueue] remove rt_delayed_work_init()
2021-08-09 08:52:19 +08:00
Meco Man
396297a993
[ethernetif] replace rt_memcpy with SMEMCPY
2021-08-03 10:33:17 +08:00
Meco Man
4cac267927
[lwip] implement RT_USING_ASM_MEMCPY
2021-08-03 10:27:48 +08:00
Meco Man
94ed55f34d
[workqueue] remove rt_delayed_work_init()
2021-08-01 17:26:01 +08:00
ImFovery
406cebe735
Update sockets.c
...
1、更正lwip_accept()中调用netconn_peer()失败时,netconn_delete()会被调用两次,从而导致进入rt_assert_handler()错误。
原因:(https://savannah.nongnu.org/bugs/?55536 ) bug #55536 : lwIP 2.1.2: netconn_delete() called twice from lwip_accept()
2021-07-29 10:08:39 +08:00
sszlbg
bf88963a3e
Merge branch 'master' into at_client-rt_realloc_iss
...
# Conflicts:
# components/net/at/src/at_client.c
2021-07-25 17:00:00 +08:00
Meco Man
004e8bbf0f
[SAL] 修复一处笔误
2021-07-23 03:52:35 +08:00
guo
73bd7a7d66
Merge pull request #4868 from wenbodong2015/at_memleak
...
解决at_socket内存泄漏问题
2021-07-19 13:46:15 +08:00
wenbodong2015
0f6586c660
优化at_socket内存泄露的修改
2021-07-16 00:25:53 +08:00
sszl
88d4faf687
更新old_urc_table为new_urc_table
2021-07-14 11:01:21 +08:00
Wayne Lin
a4818ad3dd
Fix error code and return value.
2021-07-12 18:21:04 +08:00
guozhanxin
40e7d5a23d
Merge remote-tracking branch 'remotes/gitee/master'
2021-07-12 10:14:20 +08:00
wenbodong2015
b9d24aff61
解决at_socket在极限情况下内存泄漏问题
...
AT模块在执行AT+CLOSE并返回OK后,在实际关闭前(上报URC前)仍然有
可能接收到数据。所以接收数据时需要判断状态是否为AT_SOCKET_CONNECT。
另,at_recv_notice_cb在拒绝数据包时,没有释放数据包内存,从而导致
内在泄漏。
2021-07-10 23:14:14 +08:00
wenbodong2015
e38a8e9378
解决at_socket编译失败的问题
...
失败现象为“找不到EAGAIN”,此问题由libc改动引发。
2021-07-10 23:10:11 +08:00
malongwei
180d0e1224
add at_utils_send virtual function
2021-07-08 12:02:29 +08:00
malongwei
e7b63ed7ab
fix at_vprintf and at_vprintfln and end_sign response
2021-07-07 23:49:42 +08:00
Bernard Xiong
77ad3361d9
Merge pull request #4836 from luhuadong/develop
...
[components][net][at] indent using 4 spaces
2021-07-02 12:11:14 +08:00
NightIsDark
247d1a50d7
git rebase commit
2021-07-01 14:06:12 +08:00
NightIsDark
550ad698e0
格式错误修订
2021-07-01 14:06:12 +08:00
NightIsDark
ce7d1c6ca6
修订PR邮箱错误无法签署CLA的问题
2021-07-01 14:06:12 +08:00
NightIsDark
122f90922e
Revert "多网卡应用下,accept创建的socket应该和server使用一样的网卡(默认网卡不一定正确)"
...
This reverts commit 05124def81684a2bf73b89513e2ffaf88a03f806.
2021-07-01 14:06:12 +08:00
NightIsDark
a245403f4d
多网卡应用下,accept创建的socket应该和server使用一样的网卡(默认网卡不一定正确)
2021-07-01 14:06:12 +08:00
luhuadong
b17cf429db
[components][net][at] indent using 4 spaces
2021-06-30 23:38:30 +08:00
qiyongzhong0
9dea54ae8b
Modify line 818 of the at_socket.c file from LOG_E to LOG_D
2021-06-28 14:28:31 +08:00
liuxianliang
0e1266ac10
[remove] redundant script.
2021-06-28 11:47:13 +08:00
liuxianliang
4a884cd8ba
[update] change default lwip stack to lwip2.0.3
2021-06-28 11:45:27 +08:00
liuxianliang
81ccffb5e4
[fix] delete useless code.
2021-06-28 11:44:29 +08:00
liuxianliang
9f45c13ac9
[update] the "event_callback" will be change by RT-Thread dfs.
2021-06-28 11:18:28 +08:00
liuxianliang
ff4a936812
[add] the support of lwip 2.0.3.
2021-06-25 15:58:43 +08:00
guo
95cea205b1
Merge pull request #4812 from rtthread-bot/rtt_bot
...
[update] RT-Thread Robot automatic submission
2021-06-23 13:45:38 +08:00
rtthread-bot
82560192a0
Merge remote-tracking branch 'rtt_gitee/gitee_master'
2021-06-17 16:30:09 +00:00
bernard
82f3a84ec8
!64 componets:fix at_server_getchar spelling error
...
Merge pull request !64 from fwatch/dev
2021-06-17 08:52:20 +00:00
Meco Man
485df7a1f4
[bug][lwip] 修复lwip临界区保护的bug
2021-06-13 15:43:44 +08:00
Meco Man
3b74f44d10
[lwip][cc]调整string.h位置
2021-06-13 13:10:20 +08:00
Meco Man
4c625fcb2f
[lwip][cc] LWIP_TIMEVAL_PRIVATE: provided by <sys/time.h>
...
不需要再判断是否开启libc
2021-06-12 18:40:15 +08:00
sszlbg
57eb1c5a80
修改at_obj_set_urc_table函数重新分配内存可能导致内存泄漏问题
2021-05-29 15:51:12 +08:00
Meco Man
ac3b3d13dd
LWIP2.0.2 2.1.2 移除ERRNO
...
该定义只应该在141中使用到了
2021-05-22 12:13:31 +08:00
Meco Man
9352fdeba7
从LWIP移除ESHUTDOWN
2021-05-22 12:04:30 +08:00
Meco Man
b10bef6f24
[sys/errno.h] 修复lwip报错
2021-05-22 03:20:01 +08:00
Meco Man
a5f7635f31
remove libc_errno.h & libc_limits.h
2021-05-22 02:50:35 +08:00
Meco Man
dfb8df71c9
[libc]修复因libc移除sys/errno.h文件导致的报错
2021-05-12 14:17:17 +08:00
Meco Man
fdd2859cb5
[network][lwip][kconfig] 默认LWIP协议栈版本由2.0.2转为2.1.2
2021-05-09 20:37:12 +08:00
Bernard Xiong
18ccf1d182
Merge pull request #4523 from xiangxistu/master
...
[fix] the overflow problem of lwip rx thread mailbox.
2021-04-19 13:35:22 +08:00
liuxianliang
962a97b683
[restore] Restore format
2021-04-15 12:50:54 +08:00
liuxianliang
ad9c4ea15b
[restore] Restore format
2021-04-15 12:43:56 +08:00
liuxianliang
865e34650c
[add] the function of set [internet up] status, activate the callback.
2021-04-12 18:11:37 +08:00
liuxianliang
3db7a98a18
[update] change the file encoding to UTF-8.
2021-04-06 11:41:14 +08:00
liuxianliang
2b549d93c8
[fix] change from enter critical area into disable interrupt.
2021-04-06 10:46:31 +08:00
liuxianliang
4431c4796f
[fix] remove the possible critical zone risk
2021-03-31 14:59:12 +08:00
liuxianliang
154d73a4e7
[fix] iperf speed test have been stable.
2021-03-31 13:37:19 +08:00
liuxianliang
6d89a9f120
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one
2021-03-30 10:25:00 +08:00
liuxianliang
adaa45eebe
[fix] the overflow problem of lwip rx thread mailbox.
2021-03-26 10:04:37 +08:00
yangjie
c30a715380
[components]update GPL license to Apache-2.0
2021-03-24 18:59:36 +08:00
Meco Man
c40fd2da70
update
2021-03-17 14:00:49 +08:00
Meco Man
08af865c50
[at][bug] 修复内存泄漏的bug
2021-03-17 13:56:42 +08:00
Bernard Xiong
b12615f344
Merge pull request #4427 from mysterywolf/components
...
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
Meco Man
8e16fe6d85
[uip] remove uip
2021-03-12 10:36:50 +08:00
Meco Man
ab04030f8f
revert
2021-03-08 21:53:02 +08:00
Meco Man
f6cb281440
[components] remove uip
2021-03-08 18:31:46 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
Bernard Xiong
fac97f1716
Merge pull request #4305 from OpenNuvoton/revert-3293-fix_at
...
Revert "fix the bug that rx_notice out of sync when data received aft…
2021-03-03 08:53:01 +08:00
Wayne Lin
eaacc0ae3e
Optimize getc flow.
2021-03-02 10:42:40 +08:00
Bernard Xiong
2bf53d315d
Merge pull request #4369 from mysterywolf/removeminilibc
...
[libc]移除minilibc 并将其职能并入newlibc中
2021-02-27 09:12:45 +08:00
xiangxistu
e02f3764bd
[delete] useless logic
2021-02-25 14:44:02 +08:00
xiangxistu
7a2ae46ecf
[fix] the wrong 'ifconfig' information for multi-network interface
2021-02-25 14:06:03 +08:00
Meco Man
b2d3317c6a
remove minilibc
2021-02-23 03:21:16 +08:00
liruncong
0208fc5546
[components]SECTION=>RT_SECTION(与catch2中SECTION冲突)
2021-02-09 23:25:46 +08:00
Wayne
a50d81827a
Revert "fix the bug that rx_notice out of sync when data received after last rt_device_read() is zero"
2021-02-04 22:53:58 +08:00
zhouji92
74691ea783
[fix] 修复使用lwip 2.1.2作为协议栈,并使能dhcp server选项时,编译报错问题。
2021-01-20 10:07:55 +08:00
xiangxistu
14ac354dca
[update] when close auto check internet status, shield internet status information.
...
Signed-off-by: xiangxistu <xiangxistu@foxmail.com>
2020-12-31 14:39:08 +08:00
xiangxistu
5db412b138
[add] a new function to manage internet check.
...
Signed-off-by: xiangxistu <xiangxistu@foxmail.com>
2020-12-31 11:53:30 +08:00
Bernard Xiong
72bc0d8fad
Merge pull request #3293 from rgw5267/fix_at
...
fix the bug that rx_notice out of sync when data received after last rt_device_read() is zero
2020-12-31 08:34:57 +08:00
Meco Man
63cd26b0d1
update
2020-12-30 16:32:20 +08:00
Meco Man
c2e15e003c
add function rt_hw_1ms_tick_get()
2020-12-29 00:08:24 +08:00
yangjie
eeaf1fcc50
resolve Conflicts
...
bsp/nrf52832/board/Sconscript
bsp/nrf52832/startups/Sconscript
bsp/raspberry-pi/raspi4-32/driver/SConscript
2020-12-28 12:02:31 +08:00
yangjie
ef62febf1f
[SConscript]update group name
2020-12-19 16:49:11 +08:00
liuduanfei
963f35e96d
Update netdev.c
2020-12-18 20:53:33 +08:00
thread-liu
82eac71064
[update] Incorrect macro definition name and update jobs name.
2020-12-10 09:51:32 +08:00
Bernard Xiong
86756c0d4c
Merge pull request #4065 from longtengmcu/master
...
fix at socket and sal_socket bug
2020-12-09 17:26:47 +08:00
caixf
0f991c2e3e
[sal] fix
2020-12-08 15:48:58 +08:00
Bernard Xiong
082dda7a1d
Merge pull request #4051 from DavidLin1577/patch-15
...
[net/lwip2.1.2]Update ethernetif.c
2020-12-06 22:21:02 +08:00
yangjie11
ba83ddc3c4
[SConscript] change libcpu to LIBARCH,and correcte letter case
2020-11-30 15:52:43 +08:00
longtengmcu
962acc3313
1、修改宏定义的拼写错误,修改打印IMEI号时的打印错误
2020-11-22 20:05:53 +08:00
longtengmcu
aac5e9da4c
1、web socket请求数据从服务器回来时,服务器会关闭连接,此时AT socket在读取返回的数据时不应该判断socket为连接的状态
...
2、sal socket在支持多网卡时,sal_getaddrinfo从A网卡获取的地址信息,在sal_freeaddrinfo释放时必须由A网卡进行释放
2020-11-22 12:36:07 +08:00
David Lin
88858f216c
Update ethernetif.c
2020-11-21 12:44:14 +08:00
David Lin
4f99d988d9
Update ethernetif.c
2020-11-21 12:35:19 +08:00
yangjie11
91261e25b9
[SConscript]rename group name
2020-11-20 13:38:11 +08:00
qiyongzhong0
db0880bd26
fix at_client, avoid creating the same client repeatedly and prevent working exceptions and memory leaks.
2020-11-02 17:43:23 +08:00
gouqs0615
020a82a65a
fix at_server_getchar spelling error
2020-11-02 16:44:13 +08:00
mysterywolf
22f8b142b6
[revert] [lwip] IAR环境 结构体恢复到之前状态
2020-10-24 18:39:31 +08:00
mysterywolf
c7aa6f0619
[fix bug] #3902
2020-10-02 12:00:52 +08:00
Bernard Xiong
de0bb6f96c
Merge pull request #3883 from bigmagic123/ls2k_add_gmac
...
Ls2k add gmac
2020-09-11 13:33:16 +08:00
mysterywolf
a890c67fb4
增加lwip/cc.h LWIP_TIMEVAL_PRIVATE是能与否的平台判断条件
2020-09-08 13:39:40 +08:00
bigmagic
e0aa079e52
LwIP on 64 bit processor
2020-09-04 10:23:31 +08:00
luhuadong
f56af401cc
[at_socket] update AT_SW_VERSION and adjust at_socket_ops
2020-07-23 01:13:48 +08:00
luhuadong
067106f164
[at_socket] support alloc socket dynamically with at device
2020-07-21 00:29:12 +08:00
liuduanfei
13e768203d
delete duplicate header files
2020-06-28 23:20:31 +08:00
liuxianliang
0d8f90788f
[remove] the doc folder of lwIP 2.1.2
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-23 10:00:58 +08:00
liuxianliang
be64fcba86
[update] remove lwIP 2.1.0.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-23 10:00:11 +08:00
liuxianliang
5af6aa47c1
[update] remove doc doxygen files and add doxygen zip file.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-22 09:28:48 +08:00
liuxianliang
38db074fca
[update] Added custom functions for RT-Thread.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 14:09:33 +08:00
liuxianliang
de1fd2bfc4
[add] lwIP 2.1.2 transplantation on RT-Thread.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 14:01:09 +08:00
liuxianliang
a9796b90ad
[add] the code of original lwIP 2.1.2.
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 13:44:12 +08:00
liuxianliang
f715f29588
[fix] lwip clock confict with minilib clock
...
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-18 16:42:02 +08:00
xieyangrun
1418cb1875
[net/lwip]: enable LWIP_SO_LINGER option feature of LWIP.
2020-06-18 11:06:06 +08:00
David Lin
822df76f8e
Update ethernetif.c
2020-06-10 23:32:06 +08:00
David Lin
aa0b68a575
Update ethernetif.c
2020-06-10 23:30:44 +08:00
David Lin
8beb439926
Update ethernetif.c
2020-06-10 23:27:25 +08:00
David Lin
4f53c68b3b
Update ethernetif.c
2020-06-10 11:09:11 +08:00
David Lin
a5fddaecc3
Update ethernetif.c
2020-06-10 11:08:01 +08:00
David Lin
5f6c3d7345
Update ethernetif.c
...
if LWIP_NETIF_HOSTNAME enable, the length is 'sizeof(struct netif)+ LWIP_HOSTNAME_LEN',
not only equal to 'sizeof(struct netif)'.
2020-06-10 10:59:50 +08:00
Bernard Xiong
a6a8b90935
Merge pull request #3618 from longtengmcu/master
...
fix three bugs about ethernet
2020-06-01 15:32:53 +08:00
longtengmcu
d75f03e4b0
1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1 …
...
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
4、修改注释信息
2020-05-21 22:05:38 +08:00
luhuadong
ce35dfbc40
[AT] Adjust where the AT socket callback function
2020-05-20 01:11:46 +08:00
longtengmcu
63950c9259
1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1
...
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
2020-05-17 15:51:35 +08:00
luhuadong
88a02d7bd8
fixed some typos
2020-05-09 10:33:36 +08:00
Keyun-Johan
5ea637903d
Update sal_socket.c
...
OK
2020-04-13 17:42:37 +08:00
Keyun-Johan
63e855d78a
socket_new()成功后,后续函数不成功返回-1,没有删除socket
2020-04-12 19:22:19 +08:00
luanxueguang
a1dc525859
[update] 修复拼写错误
2020-04-02 13:50:09 +08:00