StackRyan
791ecc093f
[fix] fix measurement unit of "percentage" to "permillage" for accuracy.
2021-04-07 16:59:27 +08:00
StackRyan
e6f9ecfe26
[add] add spo2 sensor support in drivers/include/drivers/sensor.h and drivers/sensors/sensor.c
...
Signed-off-by: yuanjie <yuanjie@rt-thread.com>
2021-04-02 21:43:58 +08:00
Bernard Xiong
199f73c72d
Merge pull request #4547 from rtthread-bot/rtt_bot
...
[update] RT-Thread Robot automatic submission
2021-04-02 18:37:40 +08:00
Meco Man
75ae0a544b
NULL -> RT_NULL
2021-04-01 23:04:53 +08:00
Bernard Xiong
50700c8d9b
Merge pull request #4480 from iysheng/serial
...
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close seria…
2021-03-31 17:51:58 +08:00
Bernard Xiong
6bb07da6e8
Merge pull request #4439 from OpenNuvoton/sfud_dualio_issue
...
[sfud] Correct dual_io dummy cycle setting to 4.
2021-03-31 13:53:02 +08:00
rtthread-bot
11dd63e9e9
Merge remote-tracking branch 'rtt_gitee/gitee_master'
2021-03-29 06:39:42 +00:00
wanghaijing
78c370d793
pipe name depend on RT_NAME_MAX
2021-03-27 11:56:50 +08:00
Bernard Xiong
5ded4a1f52
Merge pull request #4476 from xfwangqiang/sensor_pr
...
[components][sensor]Optimize the Sensor Module
2021-03-23 20:09:26 +08:00
wangqiang
c72227680d
Fixed formatting issues
2021-03-22 10:11:42 +08:00
Meco Man
80256f6a92
[stm32][pin] 删除无用注释
2021-03-21 01:48:25 +08:00
iysheng
fcffea4501
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close serial device regardless of DMA config
2021-03-18 10:51:50 +08:00
wangqiang
3487f2790a
1. 优化pin.h, sensor.h, rtdevice.h,避免反向包含
...
2. 优化rt_sensor_close函数,polling模式下不需要操作和rt_pin_irq_enable函数
3. 优化rt_device_register和sensor_polling的LOG信息
4. 修复sensor_polling函数打开设备时的标志错误的问题
2021-03-17 17:42:43 +08:00
wangqiang
da0e3ed35d
将sensor.h的头文件放置了一份在driver/include下面,rtdevice.h的头文件也包含了sensor.h,简化应用层调用sensor模块
2021-03-17 15:20:54 +08:00
wangqiang
58bb9f5b2e
优化ops的检测代码
2021-03-17 13:44:05 +08:00
xfwangqiang
613f89a372
检测rt_sensor_device下的ops和ops中的函数指针,防止因未定义ops中的函数而造成的问题
2021-03-17 13:44:05 +08:00
dillon-min
247df39bfe
Merge branch 'master' into comp
2021-03-16 20:15:43 +08:00
Bernard Xiong
b12615f344
Merge pull request #4427 from mysterywolf/components
...
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
Dillon Min
9789e4c930
component: driver: usb: enlarge uconfig_descriptor's data array space
...
if you add more compositive usb device(more than 4), the data[256]
can't hold all the devices's config information, array out of bounds.
Fixes: 60c27fc4b
("add USB composite and mass storage class features in USB device stack")
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
2021-03-12 16:30:39 +08:00
Dillon Min
effcee25b7
component: driver: usb: Add usb interface string(iInterface) setting
...
To make compositive usb device string more reansonable, not all devices
just show same "RTT Composite Device" on windows device manager.
add a interface rt_usbd_device_set_interface_string to set respective
interface string.
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
v1 -> v2: remove all tabs to space, to match rt-thread coding style
2021-03-11 17:29:41 +08:00
Wayne Lin
22ab98a59e
[sfud] Correct dual_io dummy cycle setting to 4.
2021-03-10 23:31:14 +08:00
Meco Man
0c9bcefc6c
[ioctl] 增加TIOCGWINSZ功能
2021-03-10 20:30:13 +08:00
Bernard Xiong
8bb2817d35
Merge pull request #4366 from whj4674672/wqueue
...
[fix] wait queue flag 赋的值使用宏
2021-03-09 20:59:28 +08:00
Meco Man
ab04030f8f
revert
2021-03-08 21:53:02 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
Bernard Xiong
7628f36f05
Merge pull request #4376 from LeeChunHei/hid_fix
...
修復usb host hid和umouse驅動
2021-03-03 13:54:54 +08:00
Bernard Xiong
d9b88ddf2b
Merge pull request #4290 from enkiller/0201-1456
...
优化工作队列体积,临界区保护更加完善
2021-03-03 08:53:27 +08:00
Howard Su
5a184c19b2
Return when i2c transfer 0 messages
...
msg->flags is accessed without proper intialized msg variable.
2021-02-28 16:42:27 +08:00
LeeChunHei
e03eaec462
update to new usb api in hid and mouse source file
2021-02-23 13:42:19 +08:00
Bernard Xiong
4426af03f8
Revert "添加imxrt的pulse encoder和usb host驅動"
2021-02-23 09:44:27 +08:00
Bernard Xiong
d9c3459e11
Merge pull request #4295 from LeeChunHei/test_branch
...
添加imxrt的pulse encoder和usb host驅動
2021-02-23 09:41:27 +08:00
tangyuxin
4f2359d34c
[workqueue] 修复临界条件线程意外挂起问题
...
线程判断任务链表为空时,开中断挂起线程,在挂起线程的过程中,提交的任务不会被执行。
将线程的挂起与恢复放在中断保护内,确保挂起挂起恢复是一个完整的过程
2021-02-22 17:10:33 +08:00
tangyuxin
791b8a35de
[workqueue] 系统默认工作队列初始化阶段提前
2021-02-22 11:23:20 +08:00
wanghaijing
b39a7c4822
[fix] flag 的赋值使用宏的方式
2021-02-22 10:12:49 +08:00
Bernard Xiong
7d72bdf303
Merge pull request #4314 from mysterywolf/mktime1
...
[bug][localtime]解决底层驱动格林威治时间与当地时间混乱使用的问题
2021-02-15 09:26:52 +08:00
LeeChunHei
b51c6339f0
finish testing
2021-02-13 18:50:58 +08:00
LeeChunHei
fa5c8e1502
modifly to use multi usb(not tested)
2021-02-13 18:50:47 +08:00
LeeChunHei
75a4efc406
Add pulse encoder and usb host to imxrt (not tested)
2021-02-13 18:50:37 +08:00
Bernard Xiong
9345ebfa12
Merge pull request #4310 from mysterywolf/pin
...
[bug][pin] 修复错误码没有为负的错误
2021-02-08 09:09:05 +08:00
Meco Man
f073911cd3
解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数
2021-02-07 21:08:41 +08:00
tangyuxin
83692a54c4
【workqueue】添加函数声明
...
rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue);
2021-02-07 11:14:59 +08:00
tangyuxin
a96156faf1
[workqueue] 提交正在执行的工作,返回 BUSY
2021-02-07 10:30:25 +08:00
tangyuxin
83dca09e1c
[workqueue] 修复提交工作后立即取消,获取无效工作任务的问题
...
当高优先级任务提交工作后,立即取消。此时队列被唤醒,下面紧接着获取链表中第一个任务。但此时已经是空链表了。
每次线程被唤醒。检查当前任务链表是否未空
2021-02-06 21:54:25 +08:00
tangyuxin
7eabe5c9e9
[workqueue] 取消正在执行的工作返回BUSY
2021-02-06 20:39:52 +08:00
tangyuxin
3ef3fb50af
[workqueue] 队列销毁时取消所有工作并释放内核对象
2021-02-06 20:15:50 +08:00
tangyuxin
d6b44ca52e
[workqueue] 支持取消延时工作任务
2021-02-06 20:08:31 +08:00
Meco Man
23304a77d9
[bug][pin] 修复错误码没有为负的错误
2021-02-06 02:27:18 +08:00
Bernard Xiong
9787116870
Merge pull request #4272 from iysheng/master
...
[bsp][gd32103c-eval] Add hwtimer driver and modify adc driver with LOG_x function
2021-02-06 00:15:41 +08:00
Bernard Xiong
7fc236dddb
Merge pull request #4306 from mysterywolf/rtc
...
[libc][stm32-driver RTC] 修复RTC驱动以及libc time.c库若干问题
2021-02-05 20:23:24 +08:00
Meco Man
ffd270acef
fix comment
2021-02-05 18:55:39 +08:00