Commit Graph

1616 Commits

Author SHA1 Message Date
yangpeng ff1bd3807c [components][drivers][sensor]暂时禁止使用sensorv2框架
sensor v2框架仍在开发中
2023-12-26 20:32:28 +08:00
1ridic 0bf7adf394 [pwm] Fix compiler warning 2023-12-26 12:12:31 +08:00
Meco Man 4657312f9d [kconfig] fix Kconfig warnings 2023-12-25 20:28:46 +08:00
1ridic 3da0b76add [pwm] Add second-level command completion 2023-12-25 12:07:49 +08:00
zms123456 e1fdc13288
[component][drivers]add clk framework (#8213) 2023-12-24 19:53:12 +08:00
sulfurandcu c84d7c5324 fix warning #1295-D Deprecated declaration 2023-12-19 19:02:43 +08:00
Meco Man 005828eba7 [nano] rt-thread susport nano option 2023-11-30 11:39:34 +08:00
fangjianzhou 249871cbbc
[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221) 2023-11-28 14:20:11 +08:00
Raman Gopalan 4e656078b6 soft_i2c: Loop iteration variable: Conform to C89 2023-11-26 18:40:02 +08:00
褚仕成 8635a4ce8d [components][wlan]: update rt_wlan_join_scan_callback 2023-11-22 11:21:18 -05:00
guozhanxin 896b1fe2da [driver/pipe] RT_UNAMED_PIPE_NUMBER add depends 2023-11-22 16:51:16 +08:00
kk 58cd8e026c
[drivers/rtc] 修复 alarm.c 少写分号 (#8256) 2023-11-15 19:24:26 +08:00
Meco Man 589641258e [debug] rename RT_DEBUGING_INIT as RT_DEBUGING_AUTO_INIT 2023-11-10 05:24:33 -05:00
xiao-mang 48f53e9150
add blockdev's flush fops for opening file with O_SYNC (#8232) 2023-11-10 17:50:20 +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
zms123456 d01dd05a0c
[kernel][dm]适配新的设备驱动模型 (#8075) 2023-10-18 20:50:30 +08:00
fangjianzhou dd33b31c28
修改virtio.c存在的问题 (#8146) 2023-10-18 08:29:24 +08:00
sp-cai 7f6f086601
[components][i2c]增加通用的软件模拟 I2C (#7850) 2023-10-17 11:24:32 -04:00
geniusgogo ecd29fda60
Sync dfs lwp (#8123) 2023-10-17 13:07:59 +08:00
fangjianzhou 7d64cdcf58
qemu-virt64-aarch64/qemu-virt64-riscv支持SDL2 (#8130) 2023-10-17 13:03:03 +08:00
Z8MAN8 19bfdac891 [fix][usb]return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-10-11 12:01:20 -04:00
xqyjlj 31a2311f64
🌈 style(ktime): mv to components/drivers/ktime (#8103) 2023-09-28 21:34:21 +08:00
zan319 fce83488ec
[serial_v2] 修复阻塞模式下中断发送的逻辑顺序问题与多线程下的竞态条件 (#7997) 2023-09-28 14:04:10 +08:00
zbtrs 36b79798bd
feat: support sdl2 (#8048) 2023-09-25 08:40:03 +08:00
xqyjlj 047cc8663e
🐞 fix(soft_rtc): fix unsupported TIMEVAL and GET_TIMERES (#8011) 2023-09-23 14:07:00 +08:00
TangZhenye 3e3cf91b77 [修改]:alarm 将年月日也传给驱动层,避免跨天 alarm 失效 2023-09-13 21:32:11 -04:00
Eric LGF 6deab5e93d 修复单次触发alarm,重复使用不启动定时器的bug 2023-09-12 18:08:15 -04:00
geniusgogo d55066e10d
cleanup: fix building warnings 2023-08-23 22:58:25 -04:00
Meco Man 30c793fdb9 [tools] add GetGCCLikePLATFORM
GCC like means the toolchains which are compatible with GCC
2023-08-21 01:25:52 -04:00
cmbjxxiao 6dd3802d0a [components][drivers][can]Init can tx completion flag before tx 2023-08-18 23:33:20 -04:00
Meco Man 23eb6319e2 [device][rtc] support output UTC minutes level 2023-08-13 22:51:58 -04:00
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
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
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
heyuanjie87 a98b11747f
[sdio]开启emmc内部cache加快传输 (#7896) 2023-08-01 14:48:50 +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
xqyjlj 0b93001f4f 🐞 fix(rtc/soft_rtc): fix wrong time
use boottime as soft_rtc time source
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
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
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
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
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
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 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
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
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
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
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
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
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
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
goldengrandpa 1d239db59e
[tty]修复多次scanf之后,导致丢数据的问题 (#7640) 2023-06-09 09:09:50 +08:00
Mengxi-Xu d2308d41d7
[components] [fdt] add parameter check 2023-06-04 13:50:04 -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
guozhanxin 82ccbc40db support llvm-arm 16.0 2023-05-17 12:09:10 -04: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
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
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
Bernard Xiong 8ad70ca231
[tty] change driver of tty to device and code cleanup. (#7444) 2023-05-05 08:19:09 +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
OnlyShirley 8dfcf07c24
[HUST CSE]Assign Null to fdt after free to avoid dangling pointer (#7389) 2023-04-27 07:13:11 +08:00
Sseven731 17ed572644
[HUST CSE] [readme] fix invalid URL 2023-04-24 00:47:02 -04: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
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
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
True-False-debug dc24388833 Update sd.c 2023-04-11 23:01: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
Sparks-Pion accab17fa5
[HUST CSE IoTS&P Lab] [fix] check rt_mutex_create return value (#7169) 2023-04-04 00:33:10 -04:00
bernard 9ffb66878b [components] fix dtb compiling warning. 2023-04-01 12:10:23 -04: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
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
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
Zxy c8b30bf31a
[device]修改i2c读写函数返回类型为rt_ssize_t (#7029) 2023-03-09 23:42:58 -05:00
Zxy f5798d9917
[pin][5.0.0] 修正pin框架数据类型使用不当 (#6934) 2023-02-26 21:17:51 -05:00
liYangYang 93d572dee6
[spi][5.0.0] 修正SPI设备框架中,对函数返回值类型使用不恰当的情况 (#6937) 2023-02-26 21:09:07 -05:00
zhkag 4c1c6ef4e4 解决关中断时进行了调度操作 2023-02-25 02:46:01 -05:00
xqyjlj e50a7e3f85
🐞 fix(components/drivers/tty/pty.c): fix ptmx not init (#6970)
* 🐞 fix(components/drivers/tty/tty.c): fix wrong log format

* 🐞 fix(components/drivers/tty/pty.c): fix ptmx not init

*  feat(components/drivers/tty/pty.c): pts default use ECHO, ONLCR

* 🌈 style(components/drivers/tty/tty.c): format
2023-02-25 15:33:28 +08:00
jonas 6d4764ad69 serial_v2 rt_device_write/read return data type as rt_ssize_t 2023-02-23 09:50:39 -05:00
liYony b3b8c2362d [spi] rt_spi_configure 增加对cs_pin处理 2023-02-22 21:18:05 -05:00
yangfasheng ff5894922a update rtdevice.h add lcd 2023-02-21 13:12:54 -05:00
xieyangrun 29c7278edc driver/fdt] add parse reg array, get address and size by index. 2023-02-21 08:47:25 +08:00
guozhanxin 1b3d287cee [revert] workqueue RT_THREAD_SUSPEND flag 2023-02-17 09:39:33 -05:00
guozhanxin b065486b23 [workqueue] Reduce critical section, improve performance 2023-02-16 20:59:14 -05:00
liYony bc385cd55c [spi]优化挂载函数对cs_pin的处理 2023-02-16 09:47:55 -05:00
zhkag 0f85648cfb
Improve timer accuracy and realize (#6926)
* add cputimer frame

* add cputime sleep

* ctime use cputime

* Processing cputime has no timeout function

* Migration cputime Code

* formatting file

* 整理代码

* add document copyright information

* 改 cputime_timer 为 cputimer

* 简化 _cputimer_list 初始化

* rt_cputimer_create -> rt_cputimer_init

* Remove RT_USING_CPUTIME and code cleanup.

* Remove RT_USING_CPUTIME in cputimer.c
* Set set_next_timeout as static function.

---------

Co-authored-by: Bernard Xiong <bernard.xiong@gmail.com>
2023-02-15 20:46:22 +08:00
Bernard Xiong fc1aced665
[FDT] Fix POSIX compatibility for string.h (#6923)
* [FDT] Fix POSIX compatibility for string.h

* [FDT] format libfdt code.

* [FDT] format libfdt code.
2023-02-13 16:36:16 +08:00
Moss c55e6694db [devicedrivers] Fix typo in sfud error messages 2023-02-12 14:07:46 -05:00
liYangYang 1eec660b12
[spi]添加rt_spi_bus_attach_device_cspin 函数 (#6916)
这个函数实现了原先的挂载功能,并且调用pin框架,初始化cs引脚,是一个功能相对完善的挂载函数。用户也能更简单的使用。
该函数取代rt_spi_bus_attach_device,后续rt_spi_bus_attach_device会被逐渐淘汰掉。新的BSP以及软件包应当使用rt_spi_bus_attach_device_cspin新函数。

STM32L475潘多拉测试通过。
2023-02-11 22:14:54 -05:00
zhkag 657cbfdac7 修复编译警告 2023-02-09 15:21:17 +08:00
螺丝松掉的人 20459ec4d3
[ringbuffer] ringbuffer size boost to 32bit (#6915)
* ringbuffer size boost to 32bit
* 添加ringbuffer测试demo
related: #682
----
Co-authored-by: Zxy <1308465141@qq.com>
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-02-08 22:55:52 -05:00
Meco Man f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
zhkag 7c1d6ffd3c add clock_cpu_settimeout function 2023-02-07 15:51:11 +08:00
Zxy fb8e9ea93a
[sensor] 修复命令交互使用日志输出API的问题 (#6895)
命令交互应使用rt_kprintf,而非LOG_x
2023-02-02 20:56:10 -05:00
soym 450cd68a4a fix typo https://github.com/armink/SFUD/pull/79 2023-01-29 21:21:44 -05:00
bernard af143ee3f9 [devicedrivers] fix the partition issue in mmc/sdio 2023-01-23 19:16:28 -05:00
liYangYang 63294afc9d
[stm32][softspi]soft spi attach函数问题解决方案 (#6868)
* [softspi]soft spi attach函数问题解决方案

* 更改函数名
2023-01-18 22:03:48 -05:00
liYangYang 7ff64c1cfd
[stm32][spi] spi attach函数问题解决方案 (#6864)
attach #6819
2023-01-18 00:27:08 -05:00
Shell b2402029b2
[rt-smart][fix/lwp] don't restore terminal for background lwp (#6847)
* [fix/lwp] don't restore term for background lwp
2023-01-13 09:48:43 +08:00
xieyangrun 21472e3ff0 fix cputime and ctime. 2023-01-10 10:03:35 +08:00
Meco Man 9bc68d26a4 format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
Man, Jianting (Meco) f4b285dc9c
improve sensor framework (#6784)
* [stm32l475-pandora] rename sensor_port.c as drv_sensors.c
* [sensor][cmd] add enter critical section protection
* [sensor] add sensor reset command
2023-01-08 21:33:38 -05:00
Shell 7450ef6c4d
[rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works.
adding kernel virtual memory management layer for page-based MMU enabled architecture
porting libcpu MMU codes
porting lwp memory related codes
2023-01-08 21:08:55 -05:00
liYangYang 7c05d8517c
[STM32][SPI]解决挂载函数里面不同bsp对uaer_data的滥用 (#6819)
* [spi]attach 片选引脚依赖pin框架
* 修改attach函数
2023-01-07 23:03:42 -05:00
wdfk-prog 8f0cef3a87
[drivers][serial_v2]修复DMA+TX阻塞模式异常 (#6781)
* [drivers][serial_v2]修复DMA+TX阻塞模式异常
2023-01-05 01:25:16 -05:00
kylongmu 0b58637a49
USB CDC驱动在win11下无法识别,看了微软的描述修改子类后正常 (#6783)
这是微软关于此问题的链接:
 https://learn.microsoft.com/zh-cn/windows-hardware/drivers/usbcon/usb-driver-installation-based-on-compatible-ids#usbsersys-installation
Windows 10 及更高版本
从 Windows 10 开始,Usbser.inf 已添加到 %Systemroot%\INF 目录,该目录加载 Usbser.sys 作为设备堆栈中功能设备对象 (FDO) 。 如果设备属于通信和 CDC 控制设备类, Usbser.sys 加载。 无需编写自己的 INF 来引用驱动程序。 驱动程序是基于与包含在 Windows 中的其他 USB 设备类驱动程序相似的兼容 ID 匹配来加载的。

USB\Class_02

USB\Class_02&SubClass_02

如果要自动 加载Usbser.sys, 在设备描述符中将类代码设置为 02,将子类代码 设置为 02。 有关详细信息,请参阅 USB 通信设备类。 使用此方法时,无需为设备分发 INF 文件,因为系统使用的是 Usbser.inf。
如果设备指定类代码 02,但子类代码值不是 02,则 Usbser.sys不会自动加载 。 即插即用管理器尝试查找驱动程序。 如果找不到合适的驱动程序,则设备可能未加载驱动程序。 在这种情况下,你可能需要加载自己的驱动程序或编写引用另一个内置驱动程序的 INF。
2023-01-02 22:25:54 -05:00
Meco Man b1763e6903 [sensor] add setting power/accuracy/fetch data mode commands 2022-12-26 02:10:30 -05:00
Meco Man 3a7ee55780 [sensor] 优化control参数检查和sensor list命令 2022-12-26 02:10:30 -05:00
Meco Man 20a6f14e89 use PIN_IRQ_PIN_NONE to replace RT_PIN_NONE 2022-12-26 02:10:30 -05:00
Meco Man 2570fab0e1 [sensor] add sensor list command 2022-12-26 02:10:30 -05:00
Meco Man d2bab6d7ad [sensor] add LSC chip vendor 2022-12-26 02:10:30 -05:00
Meco Man d3c77d907f [sensor] set power and accuracy as the hightest level 2022-12-26 02:10:30 -05:00
Meco Man 8971545d8e [sensor] improve commands 2022-12-26 02:10:30 -05:00
bernard 1f092da9e0 fix compiling warning. 2022-12-26 14:24:26 +08:00
Man, Jianting (Meco) 262392a69c
[sensor] draft new sensor-hal framework (#6746)
* [sensor] new sensor framework
针对老版本sensor框架的诸多不合理设计进行重构
之前的PR中已经重构了浮点数相关的问题
本次PR主要围绕sensor的整体架构予以重构,对过于理想化的参数和模式予以删除
* [sensor] 增加can modbus总线类型
* [stm32l745] 完善sensor对接
* [sensor] fix the onchip ID print
2022-12-21 21:24:51 -05:00
Shell e8504c7cf1
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
2022-12-20 17:49:37 +08:00
guo 68ca9f07a6
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)
* [dfs] sync cromfs

* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration

* [format] fix some format issue.
2022-12-16 18:38:28 +08:00
joechenchen ee632c21a8 fix:三字节读命令0x03,四字节读命令0x13,当命令为0x03需要加上0x10 2022-12-15 01:08:21 -05:00
Meco Man 9860b168b8 [sensor] 增加新传感器类型和单位 2022-12-12 22:44:07 -05:00
Bernard Xiong 2aa600e01b
[components] fix compiling warning (#6733) 2022-12-13 09:44:45 +08:00
Man, Jianting (Meco) 8b5a501831
[sensor][cmd] add sensor_get_type/vender/unit_name functions (#6727)
* [sensor][cmd] add sensor_get_type/vender/unit_name functions

* rename sensor folder
2022-12-11 22:45:04 -05: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
Meco Man a4b8762d85 [sfud] sync commit
db9a1746df
2022-12-11 01:35:45 -05:00
guozhanxin b5d77bbf37 [rtsmart] fix uart can't input after userapp exited at rv64 platform. 2022-12-09 07:54:29 -05:00
Yohozzy 6fcbd418e5
canfd帧结构加入 brs控制位 (#6701) 2022-12-07 01:49:44 -05:00
jaffer fa1f6c22e5 [fix]修复模拟i2c驱动延时bug
Signed-off-by: jaffer <jaffer.work@foxmail.com>
2022-12-05 21:38:02 -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
wdfk-prog 569e2ae1e8
[CAN]update struct can_filter_item and rt_can_msg (#6556)
* 修改ry命令,已便于自定义保存路径

* modified:   components/utilities/ymodem/ry_sy.c

* 修复从被动错误恢复后发送返回异常

* 修复在自动重传模式下,ACK异常阻塞线程
- 删除TX中断函数else分支。仅当RQCP位 置一才进入该中断
- 添加SCE中断函数中关于ACK_ERR的else判断。自动重传模式下会进入该判断,打断自动重传释放完成量。

* 增加对于CAN1与CAN2的SCE中断和TX中断的公共处理函数

* formatting格式化代码

* update struct can_filter_item and rt_can_msg
1. 对过滤器号和索引号结构体定义中同一名称hdr进行重命名hdr_bank和hdr_index,
以便准确区分.采用宏定义兼容以前变量名.
2. 添加接收标识rxfifo,已指明是哪个RXFIFO.

* 更正42M下的波特率

* 修复接收获取索引号错误

* 添加接收标识

* 更新注释

* 取消CANFD限制

* update struct can_filter_item and rt_can_msg
2022-11-21 21:45:51 -05:00
Meco Man 66411e0828 [sensor] improve cmd
using floating print format by default
2022-11-21 21:31:16 -05:00
Meco Man 953a8c265d add rt_sensor_float_t 2022-11-19 00:54:22 +08:00
Meco Man df397eb767 [sensor] 传感器数据类型使用float代替rt_uint32_t类型 2022-11-19 00:54:22 +08:00
myshow2258 87be8fdba8 Modified bsp/stm32/libraries/HAL_Drivers/drv_usbd.c
Modified   components/drivers/usb/usbdevice/class/cdc_vcom.c
修复cdc在v1v2的serial框架下接收发送错误的问题.stm32下usbd添加更多的ep_id,以支持复合设备.
2022-11-14 23:47:49 -05:00
Meco Man 6b9bdc12a9 [sensor] use arg to replace user_data 2022-11-14 22:19:47 -05:00
Meco Man f57eb4feb5 [sensor] 修改fetch_data方法的参数数据类型为rt_sensor_data_t 2022-11-09 17:23:27 +08:00
Meco Man f550fc58a9 [sensor]修改传感器设备名称前缀 2022-11-09 17:23:27 +08:00
Meco Man 39b25f660a [sensor] use rt_ssize_t as the return value data type 2022-11-09 17:23:27 +08:00
Meco Man 255020bca8 [sensor] 统一数据结构名称和函数命名 2022-11-08 12:17:50 -05:00
xiao xie 1755750b2a
[sdio] remove mmcsd_delay_ms
修改SD检测线程函数里面的延时实现,将mmcsd_delay_ms改为rt_thread_mdelay. mmcsd_delay_ms过时且延时计算错误。
2022-11-08 00:34:43 -05:00
Meco Man 1831661c4a [sensors] remvoe useless sensor.h 2022-11-06 23:07:30 -05:00
xiaoguang_ma e663d2d870 bugfix: remove sdcard block dev may cause a constant loop. 2022-11-02 15:27:41 +09:00
YuQi 94221bbdd8
[bsp][c28x] 新增adc驱动 (#6520)
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d
2. 新增adc驱动与kconfig配置
2022-10-15 00:56:00 -04:00
朱天龙 (Armink) 748f6afd5e [DeviceDriver][serialv2] Support configure when serial is open. 2022-10-12 14:21:41 +08:00
a1012112796 ab8c1418a6 tshell is the default value of FINSH_THREAD_NAME 2022-10-10 17:48:21 -04:00
xiaoguang_ma 80f495de4a bug fix
When detecting all SDIO devices fails, it is also necessary to return information
2022-10-09 14:55:01 +08:00
YuQi 5debfdd84d
[TMS320F28379] implement PWM driver (#6457)
增加c28x芯片的pwm驱动
已经在TMS320F28379中通过测试
pwm设备框架增加如下方法:
#define PWM_CMD_SET_DEAD_TIME (RT_DEVICE_CTRL_BASE(PWM) + 8)
#define PWM_CMD_SET_PHASE (RT_DEVICE_CTRL_BASE(PWM) + 9)
#define PWM_CMD_ENABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 10)
#define PWM_CMD_DISABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 11)
2022-09-25 22:41:00 -04:00
Wayne dc9887913b
[usbhost] List keyboard option. (#6456)
* [bsp/nuvoton] Support NuMaker-M467HJ BSP and update drivers.

* Format files.

* [usbhost] List keyboard and update driver.

* Enlarge to reasonable thread stack size.

* Do indent..

* Keep private.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-09-22 23:23:28 -04:00
Tangyuxin a4829b1c00
[fix] Fix simulator compilation warnings (#6438)
* [fix] Fix simulator compilation warnings

* Update bsp/simulator/rtconfig_project.h

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
lhylhylhy6 5ccb0bbeaf [modify]修改components/drivers/spi/sfud/README.md文件 2022-09-09 00:37:23 -04:00
lhylhylhy6 45244037de
[modify]修改waitqueue.c注释中的错误 (#6376) 2022-09-06 00:29:05 -04:00
liYangYang d25bf469fa
[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)
* [pwm]Improve the code

* 将与bsp无关的代码移植到框架部分

* 添加注释
2022-09-01 00:59:44 -04:00
liYangYang 6ac09a6db0
[spi]fix some bug for rt_spi_sendrecv16 (#6360)
修复 rt_spi_sendrecv16 api 对最高有效位(MSB or LSB)的处理不当造成的一些问题。

https://github.com/stm32duino/Arduino_Core_STM32/blob/main/libraries/SPI/src/SPI.cpp#L273
2022-09-01 00:36:45 -04:00
MysticBoy a0c3dc4c5b
针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率 (#6294)
* 针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率
2022-08-17 04:30:17 -04:00
xjy198903 840f6b997c
[nxp][imxrt1170]Fix building problem (#6297) 2022-08-17 04:28:58 -04:00
Meco Man dd94198bd6 [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM 2022-08-16 09:39:00 +08:00
gbcwbz 84fe80fbf9 [DeviceDriver] Fix can infinite loop when can driver send error
- in _can_int_tx if can driver sendmsg do not return RT_EOK,
   it will repeat until sendmsg return RT_EOK
 - if error occur on can bus(wire broken or EMI), all threads that
   have lower priority will not be executed
 - we should let application layer to determine if resend is appropriate
   when send fail, besides in data link layer, can already implemented
   auto resend in hardware
2022-08-13 23:07:43 -04:00
Fan Yang 666af5e29d
[DeviceDriver] Add CANFD support and correct typos (#5912)
* Add CANFD support and correct typos

- Added CANFD required fields to can.h
- Fixed typos in can.h and can.c
- Corrected all the projects affected by the typo
- Fixed wrong line-ending in some affected can driver files

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>

* update

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-13 22:59:28 -04:00
Meco Man a0cfdbdaad [sfud] keep macros in order attach #6255 2022-08-13 22:04:46 -04:00
tfx2001 218cdbce4e add assert for serial v2 2022-08-13 17:04:08 -04:00
Meco Man b7572303f0 [sfud] 同步上游 2022-08-11 23:14:19 -04:00
chinky 4c74eb1add [SFUD]support NM25Q128EVB 2022-08-11 22:19:45 -04:00
Meco Man 067315ff40 [phy] fix the PHY_FULL_DUPLEX conflicts 2022-08-03 22:45:27 -04:00
HubretXie 223bc17df9
[serial_v2] fixed bug (#6213)
* [kernel][timer] fixed bug serial_v2 驱动问题,导致所有写入都使用阻塞方式写入
2022-08-03 22:42:20 -04: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
Aligagago 250b3cbc16 使用 AStyle.exe 统一代码格式 2022-07-27 11:45:29 +08:00
liYang~ 32ed7dcfd2
修复了pwm互补输出的一些bug,并在finsh中添加使用说明 (#6191)
* Fix the bug of complementary output
2022-07-26 10:07:07 +08:00
Tangyuxin f82705db1d
[touch] 调整触摸头文件至 rtdevice.h 中 (#6180) 2022-07-23 11:48:26 +08:00
Jiang Runnan 37fcfdb972 Solve the problem that LOG_W() may not be recognized when the INPUT CAPTURE module is enabled,which may cause the compilation failure. 2022-07-22 14:25:43 +08:00
Man, Jianting (Meco) 5b6a257c20
chore: fix a typo (#6154) 2022-07-10 18:00:12 +08:00
Dengguiling aa2d2c63f6
[compoenets][driver][usb] fix usbhost hid issues. (#6116)
* [compoenets][driver][usb] fix usbhost hid issues.

1.Set idle function should receive an empty package.
2.Fix uinst_t reference error in hid enable function.
2022-07-07 16:10:43 +08:00
BreederBai b2bc0dcd16
[rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数 (#6130)
* [rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数
2022-07-04 10:40:42 +08:00
Meco Man 1c95670bef [rtdevices] eliminate recursion 2022-06-22 14:48:00 +08:00
Meco Man 4f1f8566f4 [spi] fix issue report #6008
rt_spi_sendrecv8()存在可能未初始化值返回的情况
2022-06-22 11:52:06 +08:00
Man, Jianting (Meco) fb941e6d8d
[fingbuffer] fix a typo (#6075) 2022-06-17 18:46:46 +08:00
solar_li a50018c57e
[stm32][soft spi] implement soft spi (#6078)
* [stm32][soft spi] implement soft spi
2022-06-16 10:54:30 +08:00
Meco Man 808259135f [cputime] suuport perf_counter 2022-06-15 17:30:28 +08:00
wanghaijing 0827ca64d0 Fix rt_qspi_send symbol extension BUG 2022-06-15 10:37:49 +08:00
Meco Man 50f041f5c2 [Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链 2022-06-09 07:01:59 +08:00
Tangyuxin f5c88add37
Fix compiler warnings (#6023) 2022-06-08 01:21:50 +08:00
Man, Jianting (Meco) 02b176f8cb
[arduino] add comment (#6016) 2022-06-04 13:20:30 +08:00
Man, Jianting (Meco) c52c1c5521
[spi device] remove _spi_bus_device_control (#5898) 2022-05-30 18:05:05 +08:00
xfwangqiang e8d775f888
[componnets][pin]add pin operate command in MSH (#5892)
* 1. 在AT32的BSP的drv_gpio中增加了at32_pin_get函数,用于实现rt_pin_ops对象中的pin_get
2. 在MSH中增加了PIN的操作命令
3. 为了方便在MSH命令中解析字符串,增加了一些字符串相关的函数
2022-05-30 18:00:26 +08:00
Stanley Lwin 04a17d469a
[device][adc] implement adc_get_vref (#5988)
* add adc_get_vref

add stm32_adc_get_vref
2022-05-29 10:22:33 +08:00
Tangyuxin ccfd2c3b28
[drivers][hwcrypto] Correct function return value definition (#5984) 2022-05-28 10:02:19 +08:00
Chester guo 1e27372e3e
Modify wlan framework (#5076)
* update auto connect use sys work.
* add fast connect.
* update wlan cmd, support scan result report user-level callback.

Co-authored-by: zetingxu <zetingxu@bestechnic.com>
Co-authored-by: liu2guang <liuguang@rt-thread.com>
Co-authored-by: guodi <guodi@rt-thread.com>
Co-authored-by: geniusgogo <xpxyr@sina.com>
2022-05-25 10:25:33 +08:00
Meco Man 42a136288d [adc][pwm] correct the command description 2022-05-25 10:04:33 +08:00
Wayne 37d9921aa8
[MTD-NAND] Add private data pointer. (#5974)
* Disable TRNG function in default configuration.

* Fix building issue

* To catch context of upper file system.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-05-23 01:47:07 +08:00
Stanley Lwin f92c26a60b
[adc.c] add finsh voltage conversion command (#5937)
* Update adc.c

add finsh voltage conversion command
2022-05-19 10:36:50 +08:00
lgnq 50a42331e6
Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c (#5966)
* Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c

print vendor information of Melexis in the function sensor()
2022-05-19 10:20:39 +08:00
Stanley Lwin 3ecfe9c61e
[rt_drv_pwm.c] add finsh pwm function (#5944)
* add finsh pwm function
2022-05-19 10:18:55 +08:00
lgnq 9ab2094ef6 Add RT_SENSOR_VENDOR_MELEXIS in sensor.h
Melexis is the fourth largest automotive sensor manufacturer in the world.
www.melexis.com
2022-05-18 08:43:36 +08:00
Meco Man d5eeec2872 [hwtimer] add disable interrupt protection for hwtimer_isr function 2022-05-11 15:28:50 +08:00
Man, Jianting (Meco) 0d2b96d7cc
[stm32][l4] add tim7 support | 设备框架以及驱动错误码处理逻辑存在问题 (#5901) 2022-05-09 22:59:27 +08:00
Man, Jianting (Meco) 6295ec108e
[kernel] remove the register keyword (#5888) 2022-04-29 06:34:42 +08:00
BreederBai c28b79b7d7
硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口 (#5881)
* 硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口
2022-04-28 20:30:51 +08:00
Tangyuxin 7f1157e0de
[drivers][serial] ioctl add F_SETFL cmd (#5876) 2022-04-26 13:13:51 +08:00
tyx 13f8a99e46 [drivers][usb] Fix compilation warning 2022-04-23 23:08:47 +08:00
tyx 8aecd43c78 [drivers][hwtimer] Fix compilation warning 2022-04-23 23:08:47 +08:00
Meco Man 175ca2ee09 [dac] add get resolution method 2022-04-23 23:03:59 +08:00
Man, Jianting (Meco) 2c6a279ac3
[pwm] 优化pwm框架 (#5857) 2022-04-22 22:31:29 +08:00
Man, Jianting (Meco) c2a0995545
[adc] 支持adc框架获取BSP的ADC分辨率 (#5853) 2022-04-22 22:26:41 +08:00
blta 2d08dca65a [USB] fix stall bug on control transfers 2022-04-20 14:33:12 +08:00
thewon86 f5b0bfd3f4 uniform code writing-disable interrupt 2022-04-20 14:22:43 +08:00
guozhanxin 08bebb40ba [usb audio] fix building error. 2022-04-20 09:10:52 +08:00
Meco Man 991b6e78b3 [bug] 修正rtc对时间参数范围的处理 | fix a bug of rtc 2022-04-19 11:48:59 +08:00
tyx e414cb459d [components][drivers] Update device type definition and command definition 2022-04-18 09:38:56 +08:00
Wayne 615dbe946c
Fix return value of rt_dac_write function. (#5816)
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-04-15 17:09:37 +08:00
Judd 80f20f668b fix comment
fix comment on return value of `rt_hwcrypto_crc_update`
2022-04-13 16:20:39 +08:00
Yang sheng eb2fc60207
[bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64… (#5785)
* [bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64-aarch64 and stm32f411-st-nucleo.
* [RTC] Fix compile errors
2022-04-09 00:39:00 +08:00
Tangyuxin da3d61e043
[device]Detailed classification of devices types (#5769) 2022-04-06 21:12:39 +08:00
tyx 782b9dd45a [components][sdio] Support DDR mode 2022-04-06 16:06:46 +08:00
tyx cceefd5ef9 [hwcrypto]Optimize memory usage 2022-04-06 10:29:05 +08:00
tyx b80f581562 [compilers] Fix c/c++ compilation warnings and errors 2022-04-06 10:27:38 +08:00
tyx e896021b56 [drivers][rtc]Add comments 2022-04-06 10:26:04 +08:00
tyx c4f107f528 [drivers][alarm]Compact alarm output 2022-04-06 10:26:04 +08:00
tyx b91f6f1206 [drivers][alarm] Optimize some codes 2022-04-06 10:26:04 +08:00