Commit Graph

664 Commits

Author SHA1 Message Date
latercomer d58c29d23e 除了bsp之外的Kconfig使用rsource替代source 2024-06-20 14:40:42 +08:00
yiyi 7250301d3e
[components][net] sal_sock = sal_get_socket((int)file->data); ==> sal_sock = sal_get_socket((int)file->vnode->data); (#9065)
* [components][drivers] added sensor device lookup function

* [components][drivers] modified the format

* [components][drivers] modified 'sensor.c' file format

* Update af_inet_at.c
2024-06-18 11:16:10 +08:00
xiao-mang e46333496f
fix specified network card not taking effect with msh's ping error (#8937)
* fix specified network card not taking effect with msh's ping error

* fix specified network card not taking effect with msh's ping error
2024-05-16 15:43:50 +08:00
latercomer 3ff2b08d82 [clang-format] 增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化 2024-04-21 01:18:37 -04:00
zmq bbdfad93eb Increased the limit on the number of messages 2024-04-18 21:51:42 -04:00
exxfire 90f86c2b71 netdev_unreg: modyify netdev remove logical when mutil-netdev exist 2024-03-18 20:39:15 -04:00
yangpengya a8d5a645f2
[components][at] 优化AT组件,并解决内存泄露
1.优化at server endmark判断,支持自动识别'\r''\n'"\r\n"。
2.优化at_recvfrom,修复大数据量时sem多次释放造成的接收错误。
3.修复at组件中可能存在的内存泄露。
4.优化部分代码逻辑,减少冗余代码。
2024-02-18 11:07:05 -05:00
Meco Man 4657312f9d [kconfig] fix Kconfig warnings 2023-12-25 20:28:46 +08:00
geniusgogo 896c4a5b99
fix netif name length config. (#8356) 2023-12-10 06:44:25 +08:00
zmq810150896 2790ce5357
Updated issues related to uds capacity and eventfd macro redefinition (#8329) 2023-12-06 13:51:13 +08:00
geniusgogo 3bc29c7673
sync update net. (#8333) 2023-12-05 23:09:19 +08:00
rcitachi 58665c7f50
[AF_UNIX] Update AF_UNIX bind, connect entry (#8314) 2023-12-02 12:11:01 +08:00
rcitachi 1e6b2a81d0
修复 #8293 问题 (#8307) 2023-11-29 14:08:47 +08:00
rcitachi c06f4e98fc
[SAL] Update SAL,Add socketpair sendmsg recvmsg function (#8293) 2023-11-28 13:56:06 +08:00
guozhanxin c9a63df925 [fix] sal build error. 2023-11-16 16:25:37 +08:00
xqyjlj f806d6edd1
🐞 fix(lwip/port/sys_arch): fix spinlock`s deadlock (#8208) 2023-11-02 23:11:56 +08:00
xqyjlj 3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
xiao-mang 50bb71e458
fix ash ifconfig updown (#8165) 2023-10-24 13:16:29 +08:00
yangpeng 8012c0c9a2 [at]优先判断是否是URC数据 2023-10-08 13:25:28 +08:00
yangpeng c386a2c956 [at]优化at格式化输出,避免多个at client和server输出冲突 2023-10-08 13:25:28 +08:00
Meco Man 35231eb116 [kernel] fix interruptible typo 2023-09-19 00:45:02 -04:00
xiao-mang caea0616a4
fix ifconfig (#8032) 2023-09-13 11:21:32 +08:00
xiao-mang c85069f9fc
fix lwip (#7969) 2023-08-25 07:35:19 +08:00
Bernard Xiong f307a2cd5d
[SAL] fix the IPv4&v6 compiling issue. (#7938) 2023-08-10 18:47:34 -04:00
geniusgogo 4d20416b2f
update components & lwp. (#7888) 2023-08-07 12:22:14 -04:00
xiao-mang befa951451
modify some function prototypes of the dfs_file_ops structure and the function declarations based on it (#7849) 2023-07-24 09:12:35 +08:00
Fan YANG 0b966bfca0 [components][net][sal][socket] Fix duplicate free on allocated buffer
- Avoid duplicate free as the d->vnode will be freed in the fd_release API call

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2023-07-20 07:30:15 +08:00
yanghaiyong 259431ace3 [SAL/SOCKET]修复在 RT_DEBUG 开启后,调用 closesocket 接口触发断言的 BUG 2023-07-12 12:39:21 +08:00
Bernard Xiong 99e80f8d33
[dfs] Add DFS v2.0 (#7606) 2023-06-10 21:35:25 +08:00
JasonCang d0c6d6f4a4
[at] optimize at_vprintfln
为什么提交这份PR (why to submit this PR)
现在的at指令发送接口,底层会自动添加"\r\n",某些场景需要发送空指令。如ESP32的蓝牙发送数据指令,收到">"后
发数据,等待接收OK。

详细讨论可见:
https://club.rt-thread.org/ask/question/185810c0aed98558.html

你的解决方案是什么 (what is your solution)
判断at指令长度,长度为0,则直接返回
2023-06-09 23:40:37 -04:00
Yohozzy 0cbb665a1c
[components] [lwip]重新提交 : ping超时计算bug (#7545)
函数的输入超时参数的单位是ms, 系统接口无论1.x版本还是2.x, 最终都会将毫秒时间再去转一次tick, 用于rtthread邮件接收超时. 所以此处直接按原值进行转换,不需要加入对RT_TICK_PER_SECOND的转换
2023-05-29 02:02:01 -04:00
shandianchengzi a294d7da9a
[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528) 2023-05-18 10:42:44 -04:00
Wayne a2b7a44070
[components][net][lwip][port] Fix next-hop finding in lwip_ip4_route_src. (#7504)
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2023-05-17 09:54:47 +08:00
wenxingpt f2d78e87b5
[component][at] fix(misc): fix null char input issue
fix issue #7005
2023-05-14 00:33:59 -04:00
zhkag 3419e591da [libc] redirecting header sys/ioctl to bits/ioctl 2023-05-05 19:29:38 -04:00
xiaoniaoyou6hua c34608b4a9
fix ipv6 compatibility issues (#7339) 2023-04-26 09:19:41 +08:00
szlr 90853abb08
[HUST CSE] for循环判断条件出错字符串读取越界 (#7352) 2023-04-26 09:15:31 +08:00
guo bd1763b979
[netdev] Add check if netdev->ops is null (#7362) 2023-04-24 17:06:54 +08:00
tyx 7ec14378ef [net][netdev]Add more hook functions 2023-04-24 10:58:05 +08:00
tyx 8aaa57e2ea [net][netdev]Use the interface to set the default netdev 2023-04-24 10:58:05 +08:00
hiro_655 786dce62c4
[Doxygen][components][net]Fix some comments (#7280)
修改了doxygen所报告的一些注释中的问题
2023-04-21 01:25:53 -04:00
Man, Jianting (Meco) 279825936b Update sal_socket.c 2023-04-20 22:54:04 -04:00
Myself 4117872c4c
[SAL][Kconfig]使用网络检测才依赖workqueue 2023-04-20 20:38:18 -04:00
Bernard Xiong 9600b75b55
[DFS] prepare for dfs_v2.0 (#7200)
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode.

* [BSP] fix code analysis warning

* [smart] fix the pointer overflow.

* code format

* [smart] fix the lwp->lwp_obj checking.
2023-04-08 22:25:51 +08:00
Shicheng Chu 93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
HUST_lxq 69e5b10e31
[at_socket.c] Fix null pointer vulnerability caused by the variable at_sock (#7166) 2023-04-03 23:06:42 +08:00
Lu_Reaper 3a9c5690b1
[AT] Add null pointer check in at_client_get (#7154)
1. prevent null-pointer dereference in rt_strcmp
2023-04-03 23:04:40 +08:00
yuanzihao 23786ee481
[GD32]add gd32470z-lckfb (#7022)
* --复制gd32450z-eval 作为立创梁山派 gd32470z-lckfb的模板进行移植
* -修改模板keil工程的配置,IROM需要注意总共为1024k,分为Code  area 和Data area  ,IRAM1为 : 512K-64K=448K=458752=0x70000。
-重新用ENV生成编译固件
片上SRAM可分为4块,分别为SRAM0(112KB)、SRAM1(16KB)、SRAM2(64KB)和TCMSRAM(64KB)。SRAM0、SRAM1和SRAM2可以被所有的AHB主机访问,然而,TCMSRAM(紧耦合存储器SRAM)只可被Cortex ® -M4内核的数据总线访问。BKPSRAM(备份SRAM)应用于备份域,即使当VDD供电电源掉电时,该SRAM仍可保持其内容。附加SRAM(ADDSRAM)只在一些特殊的GD32F4xx器件中可用。由于采用AHB互联矩阵,上述SRAM块可以同时被不同的AHB主机访问,例如,即使CPU正在访问SRAM0,USBHS也可以访问SRAM1。

* -修改IAR编译的链接脚本
* --修改Flash和RAM大小
-RAM大小为448k是因为512K-64K=448K,其中后面的64K为TCMSRAM(紧耦合存储器SRAM)只可被Cortex ® -M4内核的数据总线访问,先不要乱分配
* -修改MDK链接脚本
* -修改board.h
* -修改MCU型号
* -Finsh控制台和LED1闪灯程序工作正常,串口控制台名称错误,从uart改为uart0
-Scons正常生成工程
* -发现GD32固件库当前没有240Mhz的时钟配置,将固件库升级为GD32F4xx_Firmware_Library_V3.0.3-发布时间为2023-01-04
* -修改bsp/gd32/arm/gd32407v-start/board/SConscript文件
* -修改led1和change logs
* -按照提交规范使能 One ELF Section per Function(MDK) 并用scons重新生成工程
* -发现整个GD32的IAR模板工程template.eww 是没有的,所以当前是不支持IAR开发的,需要后面学习一下IAR使用再实现了。
* -使用formatting源码格式化工具跑一边gd32470z-lckfb目录
* -使用formatting源码格式化工具跑一遍[components/net/netdev/src/netdev.c]
-三个月前的提交多了几个空格
2023-03-10 23:21:31 -05:00
guozhanxin abfaa4bc4e [net] fix LWIP_HOOK_IP4_ROUTE_SRC define 2023-03-10 19:29:01 -05:00
geniusgogo e29dfb75ca
Fix net (#7034)
* fix LWIP_HOOK_IP4_ROUTE_SRC.

* fix netdev ping select network card.
2023-03-10 16:16:41 +08:00