Jiuzhu Dong
2ae5a82607
driver/sensor: add struct file for all sensor_ops_s
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-30 03:15:23 +08:00
Jiuzhu Dong
01aa0c2d46
driver/sensor: change nbuffer and sensor event structure type
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 10:40:21 +08:00
Jiuzhu Dong
8d971101cd
driver/sensor: change protype of set_interval, batch to follow ioctl
...
1. change unsigned int to unsigned long
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-26 10:40:21 +08:00
Xiang Xiao
43f57240e0
Replece clock_gettime(CLOCK_MONOTONIC) with clock_systime_timespec
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-24 01:06:36 +08:00
Xiang Xiao
f1ed349dd9
sched/clock: Remove CLOCK_MONOTONIC option from Kconfig
...
here is the reason:
1.clock_systime_timespec(core function) always exist regardless the setting
2.CLOCK_MONOTONIC is a foundamental clock type required by many places
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:26 +08:00
SPRESENSE
38bfadbeb9
drivers/sensors/bmp280.c: Correct bmp280 driver
...
There were some mistakes in porting to the common sensors, and they
caused the following problems.
- Hardfault by bmp280_set_interval
- Read data always zero
2021-08-18 23:22:21 -07:00
Alin Jerpelea
f22683a0a6
drivers: replace licenses with Apache 2.0
...
This change is a license change to Apache 2.0 license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-26 05:11:58 -08:00
Matias N
76cc5c36e4
bmp280: convert to common sensor interface
2021-01-18 21:08:34 -03:00
Matias N
1b8e9312dc
bmp280: minor fixes
...
Fixed a minor typo, a missing break in switch (gave error while
actually did the right thing) and added settable I2C frequency
2021-01-18 17:36:10 -03:00
Matias Nitsche
53387b53c6
style fixes
2020-06-16 01:01:14 +01:00
Matias Nitsche
6c333d7cbf
bmp280: support getting temperature via ioctl()
2020-06-16 01:01:14 +01:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt
d1584d60a2
drivers/sensors: Run all sensor drivers through tools/nxstyle, correcting as many complaints as possible.
2019-12-06 19:07:34 -06:00
Alin Jerpelea
ffb4f00da9
Merged in alinjerpelea/nuttx (pull request #944 )
...
drivers: sensors: add I2C Bosch BMP280 and I2C Asahi AK09911/AK09912 Compass Sensor
* drivers: sensors: add Bosch BMP280 Barometic Pressure Sensor
add driver for the Bosch BMP280 barometic pressure sensor
This sensor is connected over I2C bus
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* drivers: sensors: add Asahi AK09911/AK09912 Compass Sensor
add driver for AK09911/AK09912 Compass sensor over I2C bus
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-10 11:31:36 +00:00