Commit Graph

48 Commits

Author SHA1 Message Date
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
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
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
Man, Jianting (Meco) 99bdf978d7
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
guo ecf2d82159
sync branch rt-smart. (#6641)
* Synchronize the code of the rt mart branch to the master branch.
  * TTY device
  * Add lwP code from rt-smart
  * Add vnode in DFS, but DFS will be re-write for rt-smart
  * There are three libcpu for rt-smart:
    * arm/cortex-a, arm/aarch64
    * riscv64

Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
Yohozzy b64f21e628 Update netdev.c 2022-11-14 22:18:41 -05:00
dongly 3363586cbb
Fix some compilation warning (#5744)
* Fix some compilation warning

* 补充修正一些数据类型的使用错误

Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
Tangyuxin f5c88add37
Fix compiler warnings (#6023) 2022-06-08 01:21:50 +08:00
Meco Man 2575a93516 rename sal.h as sal_low_lvl.h 2022-05-16 10:02:22 +08:00
Man, Jianting (Meco) 6895da5307
[net] adjust folder structure (#5587)
* [net] adjust folder structure
- 将lwip相关的文件夹,移入lwip文件夹
- Kconfig 分散到at netdev lwip sal文件夹中,使用menuconfig代替menu
2022-02-20 00:07:45 +08:00
liuxianliang 8e518f234a [fix] format 2021-11-15 15:58:31 +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
BernardXiong 0b13409c16 [BSP] fix compiling issue with libc 2021-09-11 18:09:22 +08:00
Bernard Xiong 8da9f78d72 [libc] remove rtlibc 2021-09-11 11:07:51 +08:00
Meco Man e18d44940f [finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题 2021-09-05 01:57:26 -04:00
liuxianliang 865e34650c [add] the function of set [internet up] status, activate the callback. 2021-04-12 18:11:37 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +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
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
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
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
yangjie11 91261e25b9 [SConscript]rename group name 2020-11-20 13:38:11 +08:00
luhuadong 88a02d7bd8 fixed some typos 2020-05-09 10:33:36 +08:00
luanxueguang a1dc525859 [update] 修复拼写错误 2020-04-02 13:50:09 +08:00
chenyong 438d17e27b [net][netdev] fix IMEI spell mistake in ifconfig command
Signed-off-by: chenyong <1521761801@qq.com>
2019-09-12 14:34:54 +08:00
chenyong f39b44ce80 [network][netdev] Improve the ping command error log prompt
Signed-off-by: chenyong <1521761801@qq.com>
2019-08-24 16:37:26 +08:00
chenyong 0d8a216260 [network][netdev] Improve the default netdev operation and format code
Signed-off-by: chenyong <1521761801@qq.com>
2019-08-22 18:33:30 +08:00
tangyuxin 16304f14a8 [components][net] 1.网卡可卸载 2.dhcpd 服务可停止 2019-08-11 11:53:28 +08:00
tangyuxin afd0140e67 [components][net][netdev] 修复一处BUG 2019-07-27 09:13:19 +08:00
guozhanxin 04296e97b6 [netdev] Add a non-null judgment to the netstat command.|为 netstat 命令添加非空判断。 2019-07-03 22:30:33 +08:00
chenyong dcd8b8029b [net][netdev] Delete network commands interrupt disable processing
Signed-off-by: chenyong <1521761801@qq.com>
2019-07-03 10:49:19 +08:00
chenyong 48857d1e67 [net][netdev] Add FINSH_USING_MSH control for netdev network commands 2019-07-02 20:11:41 +08:00
chenyong 7d2ffe63e9 [net][sal][netdev] Add IPv6 option configuration and feature support in SAL and netdev
Signed-off-by: chenyong <1521761801@qq.com>
2019-06-24 17:46:18 +08:00
chenyong 1f9a668607 [net][at] Fix socket create failed issue when default netdev mismatch.
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-28 16:25:42 +08:00
chenyong 4de0533a51 [net][sal][netdev] Delete the link_up status judgment in the send/recv interface
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-10 15:57:58 +08:00
chenyong 7424e44e20 [net][netdev] Add default netdev automatic change features configuration
Signed-off-by: chenyong <1521761801@qq.com>
2019-05-05 20:35:01 +08:00
HubretXie 2d82b62111
Update netdev.c
根据family查找netdev时,优先查找family匹配并且已经联网的网卡
再查找family匹配但是未联网的网卡
2019-04-28 15:24:23 +08:00
chenyong 2721e7189a [net][netdev] Fix netdev link_down status, socket create failed issue
Signed-off-by: chenyong <1521761801@qq.com>
2019-04-27 17:24:58 +08:00
chenyong 126fa9b561 [net][netdev] Improve netdev DNS setting function 2019-04-23 15:08:10 +08:00
chenyong 3d6e0ea374 [net][netdev]add network interface device components, SAL component adaptation netdev change 2019-04-16 18:24:55 +08:00