Commit Graph

4415 Commits

Author SHA1 Message Date
geniusgogo 4d20416b2f
update components & lwp. (#7888) 2023-08-07 12:22:14 -04:00
DingDing 7e7b303dd4
fix some variables not used warnings when build. (#7925) 2023-08-07 14:19:03 +08:00
zmq810150896 2aa1056f19
Add fops for dfs_v2 and rt_set_errno (#7910) 2023-08-03 21:45:30 +08:00
Shell 325c3d2a48
[smart] Fix bugs on lwp kill (#7892)
Signed-off-by: Shell <smokewood@qq.com>
2023-08-03 20:25:13 +08:00
Fan Yang e5c8dd3b05
[components][drivers][sdio] Fix minor issue in sdio driver (#7904)
Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2023-08-03 17:10:34 +08:00
Junjie Wang b3831246c2
[DFS_V1] 修复close失败后不释放fd导致内存被永久占用且无法释放 (#7907) 2023-08-03 15:42:54 +08:00
zhkag d5c9dc09a0
[lwp] 修复错误码误用 (#7906) 2023-08-03 15:34:42 +08:00
geniusgogo 69d94315b8
update dfs (#7887) 2023-08-02 13:59:43 +08:00
GUI d3417aa0d7
Prepare some api for DM (#7894)
Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-08-02 12:48:24 +08:00
zmq810150896 3f0a5e76bf
Add the system call epoll (#7893) 2023-08-01 17:15:41 +08:00
heyuanjie87 a98b11747f
[sdio]开启emmc内部cache加快传输 (#7896) 2023-08-01 14:48:50 +08:00
朱天龙 (Armink) 43e0423b7b [components][utilities][var_export] update the var export auto init to board_init. 2023-07-31 18:12:37 -04:00
朱天龙 (Armink) e00e2d55ce [components][fal] remove some assert. 2023-07-31 18:12:37 -04:00
Shell 215c6c0ea5
[components/ctime] fix the free of rt_work (#7882)
Signed-off-by: Shell <smokewood@qq.com>
2023-08-01 00:00:25 +08:00
Meco Man bfe9fd3c13 [drivers/ipc] fix the recursive including if legacy enabled 2023-07-28 22:17:40 -04:00
Meco Man 32e50cd68b [drivers/core] revise the macros of header files
the macros is too common to use so that to avoid conflicts
2023-07-28 22:17:14 -04:00
Meco Man 4e0225a48d [debug] use LOG_D instead RT_DEBUG_LOG
related: https://github.com/RT-Thread/rt-thread/pull/7799
2023-07-28 13:50:32 -04:00
zmq810150896 307e9e5e98
Add the system call eventfd (#7835) 2023-07-27 17:24:56 +08:00
Tennn11 43b451b27c
[syscall][socket]fix socket addr bug (#7876) 2023-07-27 17:24:26 +08:00
Tennn11 fb1faa0746
[dfs v2]fix fcntl(F_SETFL) bug,and modify the error code when opening… (#7878) 2023-07-27 17:23:39 +08:00
xqyjlj db24f1865a 📃 docs(ktime/readme): add readme 2023-07-27 11:35:29 +08:00
xqyjlj 2b80fd38dc 🐞 fix(ktime/hrtimer): fix ctrl c 2023-07-27 11:35:29 +08:00
xqyjlj 0b93001f4f 🐞 fix(rtc/soft_rtc): fix wrong time
use boottime as soft_rtc time source
2023-07-27 11:35:29 +08:00
xqyjlj d23dd56692 🐞 fix(ktime): fix wrong boottime
因为tick从中断到设置中间的时延特别大,因此暂不采用tick做基准时间,直接取gtime的cnt做基准时间
2023-07-27 11:35:29 +08:00
erikchan 0eaa757cff 【dd2.0】move the core header files to include/drivers/core 2023-07-27 11:16:55 +08:00
Shell ef91876ee7
[smart] fix the setup of fake lwp in sys_execve (#7855) 2023-07-25 15:58:10 +08:00
Shell acfa74f078
[libcpu/arm] fix race condition with ldrex,strex (#7842)
Signed-off-by: Shell <smokewood@qq.com>
2023-07-25 14:07:44 +08:00
zhkag 7e5620edc3
[smart] 修复用户态 mq_receive 不能阻塞 (#7836) 2023-07-24 17:01:45 +08: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
Man, Jianting (Meco) 244b903e5d
[debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805) 2023-07-22 10:36:42 +08:00
Shell 52d3637fba
[smart] fix possible memory leak (#7832)
Signed-off-by: Shell <smokewood@qq.com>
2023-07-22 10:30:29 +08:00
Meco Man f52095d228 [libc][time] cleanup code 2023-07-21 00:31:35 -04:00
Mr.M c985f318e4 overflow is invalid in oneshot mode 2023-07-21 00:28:31 -04:00
xqyjlj 5f0328ee41 feat(ktime): add RT_USING_KTIME to kconfig build 2023-07-20 09:25:18 -04: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
wangqinglin a07fda3470
[bsp][stm32][airm2m]<pin>更新pin num命令 (#7390) 2023-07-19 18:45:43 -04:00
Shell 58e0ddf287
[component/lwp] support more feature of signal from IEEE Std 1003.1-2017 (#7828)
Signed-off-by: Shell <smokewood@qq.com>
2023-07-20 00:02:41 +08:00
xqyjlj 0eb75ced70
[time]时钟框架重构 (#7794) 2023-07-17 20:11:58 +08:00
GUI b424169e17
AArch64: fixup fpu storage's size in stack and append Q16 ~ Q31 (#7815)
Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-15 15:21:23 +08:00
sp-cai 0ebec472e1
[components][i2c] 优化 controt 接口格式,增加可用命令 (#7806)
原来 rt_i2c_control 只能执行 RT_I2C_DEV_CTRL_CLK 单一命令,通过此修改可以支持更多可用命令
2023-07-13 21:57:40 -04:00
ErikChanHub 2f5e4ac27e
【dd2.0】Support the Core API for dd2.0 (#7791) 2023-07-13 14:49:35 +08:00
yanghaiyong 259431ace3 [SAL/SOCKET]修复在 RT_DEBUG 开启后,调用 closesocket 接口触发断言的 BUG 2023-07-12 12:39:21 +08:00
Man, Jianting (Meco) 7cdf0ac5cf
[components] remove zmodem (#7801) 2023-07-09 20:13:12 +08:00
Meco Man 237bbfd968 [debug] remove RT_DEBUG_xxx
remove RT_DEBUG_THREAD RT_DEBUG_SCHEDULER RT_DEBUG_IPC RT_DEBUG_TIMER RT_DEBUG_IRQ RT_DEBUG_MEM RT_DEBUG_SLAB RT_DEBUG_MEMHEAP
2023-07-09 00:19:29 -04:00
sp-cai 75f65b6af6
[components][drivers][serial] serial.c 修复串口有时重复发送 '\r' 的问题 (#7767) 2023-07-07 23:52:32 -04:00
erikchan fa10a99c3c 【ofw】 format encoding of irq.c to utf-8 2023-07-06 11:24:19 +08:00
erikchan cc8781930c 【libfdt】replace tab with space 2023-07-06 11:02:13 +08:00
wusongjie 81c8919889 Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2023-07-06 10:20:35 +08:00
Shell af01d1fd1c
[components/mm] improve output of list_page (#7779) 2023-07-05 17:54:28 +08:00
wusongjie 8aa4366cb2 Drivers: Support Open Firmware API and model of PIC
We support OFW API to replace fdt old API, and add
IRQ, IO, Platform-Bus, CPUs ... OFW node contorl.
To support work with Device Tree or ACPI in drivers
that use IRQ, we make a programmable interrupt
controller driver's model.

Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-05 16:45:16 +08:00
zhkag d6adf6708f
[posix] posix 的 mqueue 对接到文件系统的 fd (#7768) 2023-07-05 14:49:31 +08:00
wusongjie 950d71e1ac Utilities/libadt: support adt API for DM
Add reference with rt_atomic in resources' put/get management.
Add bitmap operator base on rt_ubase_t.
Add hashmap for key->data map management.

Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-05 13:39:51 +08:00
guozhanxin befb15b428 [ulog] support ulog_async_output_enabled 2023-07-05 04:34:25 +08:00
zhkag 7b4e52bd79
[DFS_V2]Update dfs_elm.c 修复变量使用错误 (#7776) 2023-07-04 20:56:37 +08:00
wusongjie 179157f4e1 Components/drivers: support DM device id management
We add the device name and id set api in DM, now driver
could set name like sprintf without know how many devices
it is.
The misc.h and byteorder.h add some macros to developers
that they always use in drivers.

Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-04 13:55:07 +08:00
geniusgogo 2aa4510aa8
execute elf add executable permissions check. (#7769) 2023-07-03 19:25:59 +08:00
Shicheng Chu e2c031643c
[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h (#7750) 2023-06-29 11:24:25 -04:00
Tennn11 148ae53cf8
[tty] add TCGETA/TCSETAF/TCSETAW/TCSETA commands (#7739) 2023-06-29 19:01:16 +08:00
zhkag 077e984175
[libc]更新 libc timer id 分配方式 (#7744) 2023-06-29 00:01:51 +08:00
Shell 0b79bea7cd
[components/lwp] clear ref to parent on waitpid() (#7741)
Signed-off-by: shell <smokewood@qq.com>
2023-06-29 00:00:27 +08:00
Shell b66514686a
[components/tty] fix bug on foreground app switch (#7726) 2023-06-28 09:11:17 +08:00
wangqinglin cb03b8c834
[component][fdt]添加设备树子节点寻找宏 (#7377) 2023-06-27 10:09:51 -04:00
程蒙蒙 c2c83533c9
[sensor]V1返回类型不一致编译错误 (#7735)
Signed-off-by: 程蒙蒙 <37764731+meng-plus@users.noreply.github.com>
2023-06-27 17:18:07 +08:00
zhkag e65509a58e
[src][components][include]消息队列支持优先级 (#7382) 2023-06-26 00:06:06 -04:00
Bernard Xiong e3f068f058
[DeviceDrivers] prepare for device driver v2.0 (#7697) 2023-06-22 14:16:03 +08:00
xiao xie ba76cb5ef7
[drivers]修复can驱动编译错误 (#7708) 2023-06-21 08:52:11 -04:00
zhkag 33f550cb65
[Kernel] message 可以返回消息的实际大小 (#7709) 2023-06-21 18:22:42 +08:00
yangfasheng b4e59bac4e
dfs v2 修改 fd_new 的 startfd 起始值为 0 ;修复 futex_wait 超时时间换算异常; (#7705)
Signed-off-by: yangfasheng <yangfasheng@live.com>
2023-06-20 23:09:58 +08:00
heyuanjie87 0503d1e27f [libc/termios]修改oflags定义与musl一致 2023-06-19 00:38:36 -04:00
heyuanjie87 a790c809a8 [pty]修正pty引起waitqueue崩溃的问题 2023-06-19 10:56:06 +08:00
Man, Jianting (Meco) 704554f1f9
[sensor-v2]将当前sensor框架revert回v1版本并独立为v2 (#7698) 2023-06-18 22:36:53 -04:00
zhkag 7d8f485321
[finsh] 添加 RT_Device_Class_Bus 对应的描述字符串 2023-06-16 22:33:03 -04:00
Meco Man 4f5ba63c7c [cpp] attach CXXFLAGS to reduce the resource consumptions 2023-06-14 08:49:33 -04:00
yangjie11 c4df1d6a19 [cpp] support rt-thread CPP wrapper sub-switch macros 2023-06-14 08:49:33 -04:00
yangjie11 d256d742d1 [components][time.h]Fixed undefined macro TIMER_ABSTIME 2023-06-14 06:31:10 -04:00
Mingjie Shen c7ad493b9a [libc][ctime] move null pointer check before dereference
This null check was redundant because the pointer timep was
dereferenced in any case.
2023-06-13 18:29:22 -04:00
Mingjie Shen 6198eea6c7 [msh] fix offset used before range check
These uses of offset 'cmd0_size' should follow the range check.
2023-06-13 18:00:32 -04:00
Mingjie Shen 177f3d4056 [adc] remove dead code
The variable result_str is never used after this assignment.
2023-06-13 17:47:54 -04:00
yangfasheng e36b97ff94
[dfs v2] fix dentry hash lookup bug; update dentry dump msh cmd; (#7655)
Signed-off-by: yangfasheng <yangfasheng@live.com>
2023-06-11 18:07:06 +08:00
Bernard Xiong cd3f0f9c8a
Add color ls for executable file. (#7654) 2023-06-11 13:12:40 +08:00
Meco Man 8d6e536e88 [spi] optimize the spi transfer speed.
If the configurations are the same, we don't need to set again.
2023-06-10 18:59:23 -04:00
Bernard Xiong 99e80f8d33
[dfs] Add DFS v2.0 (#7606) 2023-06-10 21:35:25 +08:00
Huang Xilong c33a21509a
[comment][libc] add some comments for functions in posix_signal (#7647) 2023-06-10 00:41:21 -04:00
zhkag 0f998f6b05
[simulator] 模拟器可以使用 utest 测试框架 (#7644)
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-06-10 12:32:34 +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
goldengrandpa 1d239db59e
[tty]修复多次scanf之后,导致丢数据的问题 (#7640) 2023-06-09 09:09:50 +08:00
zhkag 22972409d4 [simulator] 修复 linux simulator 编译运行失败 2023-06-07 08:52:28 -04:00
Mengxi-Xu d2308d41d7
[components] [fdt] add parameter check 2023-06-04 13:50:04 -04:00
goldengrandpa e88a19467e
[ctime]解决clock_gettime计算出来的nsec超过1sec的问题 2023-05-31 22:52:33 -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
guo 7a4f9d0ada
[libc] picolibc support heap. (#7571) 2023-05-27 00:26:34 +08:00
XzcUbuntu b27f910cad [libc][posix][signal] 增加posix_signal.c部分函数注释 2023-05-25 02:09:42 -04:00
geniusgogo 0315c0dee7
add lstat&sysinfo....syscall. (#7555) 2023-05-23 22:43:38 +08:00
zhkag 662aa1b7e2
[libc error] 编译错误PATH_MAX 未定义,移除 mq 中的 PATH_MAX 判断 (#7550) 2023-05-22 22:03:23 -04:00
Meco Man 93968942c2 [device][spi] 修复 rt_spi_sendrecv8/16 收发不同时的问题
rt_spi_send_then_recv是先发再等待一个独立的消息接收
rt_spi_transfer是收发同时进行
rt_spi_sendrecv8/16应使用rt_spi_transfer而不是rt_spi_send_then_recv
2023-05-22 02:55:46 -04:00
Arro d8a42139bf
[components]对POSIX函数中mqueue.c的mq_unlink函数注释 (#7543) 2023-05-22 01:47:01 -04:00
Mengxi-Xu 1e5dc5509e
[libc][cpp] 增加 cxx_crt_init.c 函数注释 (#7535) 2023-05-20 01:27:55 -04:00
shandianchengzi a294d7da9a
[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528) 2023-05-18 10:42:44 -04:00
guozhanxin ca873fae30 [add] llvm-arm workflows 2023-05-17 12:09:10 -04:00
guozhanxin 82ccbc40db support llvm-arm 16.0 2023-05-17 12:09:10 -04:00
xiao-mang 065a3e1b3a
[component] add sys_mount and umount2 (#7516) 2023-05-17 16:30:05 +08: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
geniusgogo de567b8fb3 fixed dfsv2 openat. 2023-05-16 18:21:24 +08:00
geniusgogo 0e4a3142a8
[component] add openat syscall. (#7488) 2023-05-15 20:40:27 +08:00
7YZ7 a5211c70b6
[components][drivers][HUST CSE]修复serial_v2.c中可能产生的死循环 (#7394) 2023-05-15 14:42:11 +08:00
kunpHust 7a2bccd1c2
[HUST CSE][components][udisk.c] add two checkout procedures after malloc to make sure allocating successfully (#7475) 2023-05-15 14:35:38 +08:00
Shell b7554a70d2
[libcpu][component][debug] add debug info for gdb (#7033) 2023-05-14 23:48:16 +08:00
wenxingpt f2d78e87b5
[component][at] fix(misc): fix null char input issue
fix issue #7005
2023-05-14 00:33:59 -04:00
DylanLiuH2O 92a253c88f
[components][libc][posix] fix RT_NAME_MAX misspelled as NAME_MAX (#7489) 2023-05-14 11:15:36 +08:00
miaoxingr f36a1bb514
[components/drivers] add checking code after allocating memory 2023-05-12 01:39:51 -04:00
hust202013232 9dd0d41251
[components][rndis.c] add safety checking after allocating memory 2023-05-12 01:37:42 -04:00
a1012112796 5e4a95f54d
[components/drivers] add result check for configure in `rt_spi_configure` (#7474)
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-05-12 00:11:28 -04:00
Rain Park c4002dea9f
[doxygen][libc] Add some comments for posix pthread functions (#7467)
Signed-off-by: Rain Park <1162678210@qq.com>
2023-05-10 14:01:33 +08:00
Wayne 3291882b38
[i2c] fix the return value of rt_i2c_master_send/recv
fix the related PR: #7029
2023-05-09 01:13:02 -04:00
kkangdom 3cf07f1a62
[components][rndis.c] add a checkout procedure after malloc to make sure allocating successfully (#7460) 2023-05-09 10:02:11 +08:00
xqyjlj 353aa57a54
[component][drivers][cputime]Fix timer dev (#7442) 2023-05-07 23:14:39 +08:00
zhkag 3419e591da [libc] redirecting header sys/ioctl to bits/ioctl 2023-05-05 19:29:38 -04:00
zhkag a6a9b0dfcb
[components][posix] 完善 posix 接口消息队列 (#7395) 2023-05-05 18:14:07 +08:00
Bernard Xiong 8ad70ca231
[tty] change driver of tty to device and code cleanup. (#7444) 2023-05-05 08:19:09 +08:00
LostCivilization ca023c1b41
[HUST CSE][vbus] fix the NULL pointer error 2023-05-01 00:45:55 -04:00
Man, Jianting (Meco) d580042145
[libc] support external third pary libc software package (#7425) 2023-04-30 12:19:57 +08:00
zouziyu2002 ce4674defa
[HUST CSE] add forced type conversion when using 'realloc','malloc','calloc' for better readability 2023-04-28 15:55:28 +01:00
ourea1429 085ded8eef
[winusb.c] add checking after allocating memory for variable winusb_device to make sure allocae is successful 2023-04-28 14:59:42 +01:00
geniusgogo 18c452e4dd
fix lwp _load_script. (#7405) 2023-04-28 11:49:05 +08:00
OnlyShirley 8dfcf07c24
[HUST CSE]Assign Null to fdt after free to avoid dangling pointer (#7389) 2023-04-27 07:13:11 +08:00
zhkag 550b9282f9
[syscall] lwp_syscall 中 rt_err_t 改为 sysret_t (#7374) 2023-04-26 19:12:30 +08:00
xiao-mang c043657353
fork子进程时,lwp_struct_copy函数增加拷贝working_directory功能 (#7380) 2023-04-26 17:21:00 +08:00
Shell 6e7c5d9bc9
[libcpu/aarch64] fix cache invalidate operation (#7363) 2023-04-26 17:17:42 +08: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
goldengrandpa efbdeb25ee
[dfs]释放fd_slot之前将子节点释放避免内存泄漏 (#7378) 2023-04-26 08:47:21 +08:00
Bushilei e902187a64
[HUST CSE]fix:uninitialized *p (#7364)
Signed-off-by: bushilei <shileibu@hust.edu.cn>
2023-04-25 11:20:40 +08:00
guo bd1763b979
[netdev] Add check if netdev->ops is null (#7362) 2023-04-24 17:06:54 +08:00
Sseven731 17ed572644
[HUST CSE] [readme] fix invalid URL 2023-04-24 00:47:02 -04: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
Shell 470454d201
[components/mm] support for scalable memory management (#7277)
* [mm/page] multi-list page manager
[mm/page] page debugger
[libcpu/aarch64] hugepage support

* [quality] remove void-arith

* [format] remove kasan codes
2023-04-22 23:59:11 +08:00
朱天龙 (Armink) 69e6c3017b
Utest win (#7347)
* [tools] Add `--add-rtconfig` args for scons when you want to add macro definitions build time.

* [utilities][utest] Add VS simulator support.
2023-04-22 21:49:20 +08:00
xiaoniaoyou6hua 4f1c3a1472
fix warning (#7340) 2023-04-22 09:25:52 +08:00
xqyjlj fd1413d29b
🎈 perf(components/libc/compilers/common/ctime.c): if define cputime, then CLOCK_REALTIME use cputime (#7343) 2023-04-22 09:09:40 +08:00
张世争 3f442bbe4a
[lwp_ipc] support file descriptor transmit (#7318) 2023-04-21 13:42: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
Meco Man 4a7ef40dc7 [serial-v2]fix the data type error 2023-04-19 07:49:46 -04:00
7YZ7 501b22aabe
[HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00
Hy 7c629d974d
[HUST CSE]NULL POINTER (#7220)
* avoids the risk of a null pointer

* 将||改成&&来判断断言
There is a possibility of a null pointer

* there is a possibility of a null pointer

* Update components/drivers/fdt/src/dtb_get.c

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>

* 已根据代码规范进行修改,谢谢提醒

---------

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-04-17 08:12:27 +08:00
lessone1 2638a2a90c [components] Wrong order of judgment 2023-04-14 22:51:06 -04:00
Xu Biang 2c98ce4605
[HUST CSE][document] Fix some comments, invalid grouping commands and warnings in Doxygen.
将Doxygen输入文件(由Doxyfile中的INPUT定义)中的失效Doxygen分组指令(如/*@*/和/*@}*/)更改为有效的分组指令(如/**@*/和/**@}*/);(此处只对INPUT中的文件做了修改,bsp目录下和libcpu目录下存在近万个失效的Doxygen分组指令,但由于不作为文档的输入文件且这些文件过于庞大老旧,没有对这些文件中的无效指令做修改)
将图片文件统一放入了images目录下;
修改了Doxyfile和部分Doxygen注释,使得Doxyfile能够定位到新的代码路径且不受重复实现的影响;
解决了一些注释中的参数名不匹配、参数多余/缺失等问题。
2023-04-14 12:33:43 -04:00
xqyjlj 8748886987
🐞 fix(components/drivers/cputime/cputimer.c): fix cputimer with signal (#7247) 2023-04-14 17:02:42 +08:00
xqyjlj 970c7c6f7a
🐞 fix(components/drivers): fix cpu timer in multithreading (#7222)
* 🐞 fix(components/drivers): fix cpu timer in multithreading

* 🎈 perf(components): change double to uint64_t

* 🎈 perf(components): add UL suffix
2023-04-13 16:00:19 +08:00
geniusgogo 5bbcb5dc79
fix tmpfs spinlock error. (#7216) 2023-04-12 13:12:27 +08:00
True-False-debug dc24388833 Update sd.c 2023-04-11 23:01:03 -04:00
unknown 582adfb211 [finsh]更正注释 2023-04-10 22:13:03 -04:00
Meco Man e9bbc2e349 [adc] modify adc channel data type from rt_uint32_t to rt_int8_t 2023-04-08 22:40:37 -04:00
Meco Man 505023b656 [adc] 增加ADC内置通道通用通道号标识 2023-04-08 22:40:37 -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
geniusgogo 3ea1ce9e46
Fix nfs (#7194)
* fixed nfs 64bit arch fault

* change mount cmd support nfs.
2023-04-08 12:22:19 +08:00
Shicheng Chu 93f3cb30e4
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
Bernard Xiong 23955edf53
[DFS] add Kconfig for dfs-v2.0 (#7156)
* [DFS] add Kconfig for dfs-v2.0

* [DFS] Optimize the SConscript.

* [dfs] move old dfs to dfs/dfs_v1
2023-04-04 15:02:56 +08:00
Sparks-Pion accab17fa5
[HUST CSE IoTS&P Lab] [fix] check rt_mutex_create return value (#7169) 2023-04-04 00:33:10 -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
bernard 9ffb66878b [components] fix dtb compiling warning. 2023-04-01 12:10:23 -04:00
Shell 897ba365ba
[fix] compilation error from rpi (#7143)
* [fix] compile error from rpi
2023-03-31 20:58:01 +08:00
Lei Peng 517b5eb016 [libc][ctime] stime clear tv.tv_usec as zero
when using stime set rtc time, tv.tv_usec not 0,but always is 0xdeadbeef, make set time error
2023-03-30 23:57:19 -04:00
xqyjlj d6e40f2a24 feat(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): add f_bavail support 2023-03-31 10:56:37 +08:00
xqyjlj 7fb8f61756 feat(components/dfs/filesystems/devfs/devfs.c): add statfs support 2023-03-31 10:56:37 +08:00
xqyjlj cd1e0a7901 feat(components): add statfs, statfs64, fstatfs, fstatfs64 support 2023-03-31 10:56:37 +08:00
xqyjlj e4bd8e00f0 feat(components/lwp/lwp.c): add OS env to default environ 2023-03-31 10:56:37 +08:00
xqyjlj 954f1d9b63 🐞 fix(components/dfs/src/dfs_posix.c): use stat to implement fstat 2023-03-31 10:56:37 +08:00
xqyjlj 63c7d0ceb4 🐞 fix(components/lwp/lwp_syscall.c): fix sys_readlink 2023-03-31 10:56:37 +08:00
xqyjlj 157dc0959c feat(components): add uname support 2023-03-31 10:56:37 +08:00
xqyjlj c3b08d4288 feat(components/lwp/lwp_syscall.c): add sys_lstat support
temporarily use sys_stat. should be replaced by sys_lstat if symbolic link are implemented
2023-03-31 10:56:37 +08:00
chinky b9f5bf7d91 [libc]优化usleep函数 2023-03-30 00:41:13 -04:00
Shell eec78d9f5d
[rt-smart] testcase & improvements for memory management (#7099)
* [utest/mm] add testcase for create/init
format codes of create/init in components/mm

* [libcpu/aarch64] fix user stack check routine

* [kservice] export API for utest

* [utest/mm] testcase for aspace_map
format & modify the files under components/mm related with aspace_map

* [lwp/user_mm] add user_map_varea for mmap feature

* [mm] rename rt_mm_fault_try_fix to rt_aspace_fault_try_fix

* [utest/mm] testcase for synchronization

* [mm] modify unmap api to improve throughput

* [utest/mm] testcases for cache and varea map

* [format] remove extra space

* [utest/mm] fix testcase problem in header

* [lwp] extend map_user_varea with a flag

* [utest/mm] testcase for lwp_map_user_varea

* [libcpu/arm/cortex-a] fix kernel space layout

* [utest/mm] adjust for armv7 arch
2023-03-30 08:25:15 +08:00
zhkag f2dd21ccee 对 /dev 目录做特殊处理 2023-03-29 15:31:46 +08:00
wangfuan 19f311b498 [libc][delay] fix wrong usleep function 2023-03-27 13:06:12 -04:00
xqyjlj eb0df6b12c
feat(components/dfs/filesystems/elmfat/dfs_elm.c): add st_blocks su… (#7091) 2023-03-25 07:34:00 +08:00
yangjie11 b0c247fb59
[components/drivers][touch]删除多余的touch.h (#7090)
* [components/drivers][touch]删除多余的touch.h

* 将touc.h替换为rtdevice.h
2023-03-24 11:47:28 -04:00
Zxy 156fda61cf [errno code]fix that use RT_ENOMEM without - 2023-03-23 01:55:21 -04:00
Meco Man deb40e8c0c [errno code][-RT_EBUSY] fix that use RT_EBUSY without - 2023-03-22 01:55:18 -04:00
Meco Man eb3cb250be [errno code][-RT_ETIMEOUT] fix that use RT_ETIMEOUT without - 2023-03-22 01:54:52 -04:00
wdfk-prog 87c57f86f7 [device]修改mtd_nor读写函数返回类型为rt_ssize_t 2023-03-20 18:58:10 -04:00
Meco Man 0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
Shell dd2f1a795a
[rt-smart] fix competition on aspace (#7064)
* [mm] mmu operations should be wrapped by _aspace_bst_insert & _aspace_bst_remove to avoid competition on page table

* [lwp] may not return null on failed
2023-03-19 14:41:50 +08:00
Shell 18a14cc935
[rt-smart] move sys_cacheflush to lwp_syscall.c (#7048)
* [syscall] move sys_cacheflush to lwp_syscall.c

* [syscall] improve assertion

* [format] rename to rt_ctassert

* [debug] modified ct assertion on mm_page.c
2023-03-17 15:11:38 +08:00
Meco Man dfddd79b24 [errno code][-RT_EINVAL] fix that use RT_EINVAL without - 2023-03-16 20:21:43 -04:00
Meco Man 2cc9bd876e [error code][-RT_EIO] fix that use RT_EIO without - 2023-03-16 20:20:37 -04:00
张世争 334c609c6c
[components][mm] add ioremap for normal memory api (#7050) 2023-03-16 10:27:16 +08:00
Shell 2394e75265
[libcpu/risc-v] support noncached normal memory (#7051)
* [libcpu/risc-v] support noncached normal memory

* [mm] check before dereference in _fetch_page

* [mm] add comments on ioremap

* [ioremap] report more info on failed
2023-03-16 10:26:55 +08:00
Shell fcc01a617d
[rt-smart] Fix return value in syscall (#7045)
* [timer] fix sys return value to avoid outdated errno

* [rtdef] add wrap to stringify

* [syscall] return value in rt errno should be recycle immediately after call to posix layer

* [syscall] return type of syscall should be long
errno should be recycle immediately after call to rt posix layer to avoid
outdated value

* [format] move prototype to header file

* [fix] futex definition conflict
2023-03-13 19:09:34 +08:00
wangxiaoyao 34bf77b8e3 [format] 2023-03-11 19:01:33 +08:00
wangxiaoyao cb60ef2c86 [lwp] clear vnode in fd after free 2023-03-11 19:01:33 +08:00
wangxiaoyao 672966cc41 [lwp] arch should recycle resource it allocated 2023-03-11 19:01:33 +08:00
Man, Jianting (Meco) 0275b23638
[i2c] fix the i2c device return error code (#7035)
* [i2c] fix the i2c device return error code
2023-03-10 23:44:03 -05: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
Zxy c8b30bf31a
[device]修改i2c读写函数返回类型为rt_ssize_t (#7029) 2023-03-09 23:42:58 -05:00