Commit Graph

64 Commits

Author SHA1 Message Date
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +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
wangqiang c72227680d Fixed formatting issues 2021-03-22 10:11:42 +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 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
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Bernard Xiong f9c5007cae
Merge pull request #3271 from fmkong/sensor_irq_disable
[drivers/sensor]disable irq only when the sensor and module sensors a…
2021-01-22 18:35:21 +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
Prry a38e7768ac 缩进由“TAB键”改用为“空格” 2020-12-20 22:23:28 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
Prry e7ed764254 添加TOF传感器描述信息 2020-12-19 12:23:37 +08:00
SimpleInit c495d5a247 1.Add sensor vendor MAXIM.
2.Fix: When printing sub-zero temperature, "-" is displayed after ".".

Signed-off-by: SimpleInit <63694297@qq.com>
2020-10-20 20:55:34 +08:00
luhuadong 6c25b839ee [sensor] support GPS/GNSS sensor class 2020-09-11 18:04:28 +08:00
luhuadong cc15a1b59c [sensor] fixed sensor cmd delay time 2020-07-08 22:53:02 +08:00
luhuadong f2070beb54 [Sensor] Add two concentration unit ppm & ppb 2020-07-04 17:14:31 +08:00
luhuadong 1fde73a93c [Sensor] Add AMS sensor vendor info 2020-07-04 16:48:05 +08:00
luhuadong 9e7fdad8fb [Sensor] Add Plantower sensor info 2020-06-11 21:26:31 +08:00
Prry 040816dee8 add vendor information of sensor 2020-05-02 00:39:48 +08:00
Bernard Xiong beda0899f5
Merge pull request #3397 from luhuadong/develop
[Sensor] Support custom commands for rt_sensor_control
2020-03-16 21:28:30 +08:00
luhuadong 7c4e70b3b3 [Sensor] Add user-commands range limitation 2020-03-16 11:03:32 +08:00
luhuadong ac6f133f86 [Sensor] fixed %% print 2020-02-26 17:31:26 +08:00
luhuadong 3994ebbfd4 [Sensor] Add vendor info and sensor types for cmd 2020-02-26 17:20:41 +08:00
luhuadong 815d231f4a add change log 2020-02-22 22:43:14 +08:00
luhuadong 82f981d34c [Sensor] Support custom commands for rt_sensor_control 2020-02-22 21:00:35 +08:00
luhuadong 26fa5e5fa2 [Sensor] Add the prefix corresponding to sensor types 2020-02-20 16:09:52 +08:00
luhuadong 7c2d7c7eb7 [Sensor] ASAIR is the trademark of Aosong 2020-02-20 15:39:39 +08:00
luhuadong c734a7b3fa [Sensor] Dust and eCO2 data should be defined unsigned 2020-02-17 23:26:54 +08:00
luhuadong da8e829fa8 [Sensor] Add some class and vendor information of sensor 2020-02-17 23:17:54 +08:00
Fanming f3ee2dd186 [drivers/sensor]disable irq only when the sensor and module sensors are all cloesed. 2019-12-17 17:53:16 +08:00
wangk-ge 649f75f861
修改内存泄漏问题 2019-11-11 16:46:43 +08:00
Willian Chan 06b4a0611d [component][drivers][sensors]Fix compilation warnings
Signed-off-by: Willian Chan <chentingwei@rt-thread.com>
2019-07-17 09:27:30 +08:00
Willian Chan 7db27345c2 [component][drivers][sensors]Increase the output of sensor information
Signed-off-by: Willian Chan <chentingwei@rt-thread.com>
2019-07-16 18:30:15 +08:00
tyustli d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
guozhanxin 7d6fa2388d [sensor] To streamline the code.| 精简代码,去除冗余的代码。 2019-06-13 17:52:52 +08:00
guozhanxin 2600f82e39 [sensor] Fixed error with mutex_lock take and release not matching.| 修复锁的获取和释放不对应的错误. 2019-06-13 16:01:23 +08:00
guozhanxin 44abc90990 [sensor] Add static keywords for internal functions.| 为内部函数添加 static 关键词。 2019-06-13 15:39:11 +08:00
guozhanxin 1ec6f5b101 [sensor] Fix the problem that memory is not free after the sensor is closed. | 修复sensor设备关闭后内存不释放的问题。 2019-06-13 15:39:11 +08:00
guozhanxin 8ade4fff2e [sensor] Fixed error with mutex_lock take and release not matching.| 修复锁的获取和释放不对应的错误. 2019-06-06 16:14:51 +08:00
guozhanxin 34e5383f9a [sensor] fixed step name display abnormal. 2019-05-30 00:06:44 +08:00
guozhanxin 8f2f232887 [sensor] 完善sensor框架
* 修复开启 RTC 编译报错的问题。
* 在显示 sensor 数据时添加单位。
2019-05-08 11:47:07 +08:00
Zhou DingHua fdc9683150 Add new sensor type and vendor type.
sensor type: force sensor
  vendor type: MiraMEMS
2019-04-17 16:32:32 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
guozhanxin f6eabb2d0a [sensor] Fixed a problem where threads were repeatedly created。| 修复线程被重复创建的问题 2019-03-08 10:37:48 +08:00
guozhanxin 507a90f055 [sensor] add irq_handle for driver. | 为底层驱动添加中断回调。 2019-03-08 10:34:10 +08:00
armink 0d7ba79219 Remove the DBG_COLOR and DBG_ENABLE definition. 2019-03-06 17:54:30 +08:00
guozhanxin fb9482d61b [sensor] change RT_SENSOR_FLAG_FIFO to RT_DEVICE_FLAG_FIFO_RX 2019-02-15 10:51:20 +08:00
guozhanxin 3d9c306454 [sensor] change heart rate unit form 'HZ' to 'bpm'. 2019-02-14 19:52:55 +08:00
guozhanxin b9937f076b rename sensor_test to sensor_cmd 2019-02-13 15:08:16 +08:00
guozhanxin 37d0400739 rename rt_sen_ to rt_sensor_ 2019-02-13 15:00:35 +08:00