Alin Jerpelea
e1d361eddf
drivers: nxstyle fixes
...
Fixes for errors reported by nxstyle
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-05 07:31:45 -05:00
Xiang Xiao
5f3a98b5a8
libc/assert: Reference the expression in all case
...
to avoid the warning "defined but not used"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I55b7c092d0f2e5882fc1784987657c10cdf2d90b
2021-04-03 21:00:41 +01:00
Alin Jerpelea
5f5fae6b57
drivers: DS Automotion GmbH: update licenses to Apache
...
DS Automotion GmbH has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-03 09:36:43 -05:00
Alin Jerpelea
26fef3f6a1
NuttX: Fix nxtyle errors
...
Fix errors reported by nxstyle
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-03 04:20:31 -07:00
Alin Jerpelea
08e5378b11
NuttX: Gregory Nutt: update licenses to Apache
...
Several licenses were missed in the initial work
David Sidrane has submitted the ICLA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-03 04:20:31 -07:00
Alin Jerpelea
3631809e9d
drivers: sensors: fix Mixed Case errors
...
Fix Mixed Case errors reposrted by nxstyle.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
7a29e1f5fb
drivers: Nxstyle fixes
...
Nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
4505b8e143
drivers: sensors: Matous Pokorny: update licenses to Apache
...
Matous Pokorny has submitted the ICLA and we can migrate the licenses
to Apache.
DataVision s.r.o. has submitted the SGA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
b4a33b5ec0
NuttX: Uros Platise: update licenses to Apache
...
Uros Platise has submitted the ICLA and we can migrate the licenses
to Apache.
David Sidrane has submitted the ICLA and we can migrate the licenses
to Apache.
Bob Feretich has submitted the ICLA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
a43ff0c93a
NuttX: DS Automotion GmbH: update licenses to Apache
...
DS Automotion GmbH has submitted the SGA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Alin Jerpelea
89a10f9899
NuttX: Robert A. Feretich: update licenses to Apache
...
Robert A. Feretich has submitted the ICLA and we can migrate the licenses
to Apache.
RAF Research LLC has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-04-01 12:13:12 -05:00
Brennan Ashton
0a3b20e546
syslog: Drop extra carriage return from syslog calls
2021-03-28 21:24:00 -05:00
Alin Jerpelea
0abc1017ab
drivers: nxstyle fixes
...
nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-20 19:22:58 -07:00
Alin Jerpelea
c798076084
drivers: Author Sebastien Lorquet: update licenses to Apache
...
Sebastien Lorquet has submitted the ICL and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-20 19:22:58 -07:00
Nathan Hartman
9eca886f26
drivers/sensors/qencoder.c - Remove bad sninfo() format string
...
drivers/sensors/qencoder.c:
* qe_close(): Call to sninfo() contained extraneous "%d"
format specifier. Removing it, as it appears there was
never a matching argument.
2021-03-19 23:00:37 -07:00
Alin Jerpelea
d66d881b87
nxstyle fixes
...
nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-13 05:56:43 -08:00
Alin Jerpelea
5e6d58dd03
drivers: Alan Carvalho de Assis: update licenses to Apache
...
Alan Carvalho de Assis has submitted the SGA and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-13 05:56:43 -08:00
buyuer
097df2669c
drivers/sensor: fakesensor support batch.
...
Signed-off-by: buyuer <dingddding@163.com>
2021-03-10 14:16:38 +08:00
Gustavo Henrique Nihei
330eff36d7
sourcefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
Alin Jerpelea
ccff570e6f
drivers: nxstyle fixes
...
nxstyle fixes to pass the CI.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Alin Jerpelea
e5b6305f4a
drivers: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
Xiang Xiao
9473434587
Ensure the kernel component don't call userspace API
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-03-01 09:23:09 +09:00
Gustavo Henrique Nihei
55d66f60a3
drivers: Fix typos reported by codespell
2021-02-25 18:57:18 -08:00
Jiuzhu Dong
936ce77d21
driver/sensor: gets the capacity of the hardware fifo
...
to hold the number of events
Change-Id: I58a9ad07913c7b189e1fd229ab22e91e220e01f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
Jiuzhu Dong
46ea549630
driver/sensor: Fetch(with O_NONBLOCK) will directly return.
...
when sensor is disable.
Change-Id: I02c02aa447ee0b0d681082b4209ecd36e10f2547
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
Jiuzhu Dong
54ea96da6b
driver/sensor: replace lower->buffer_size with lower->buffer_number
...
more efficient
Change-Id: I0823b10248caf75e4dd6a5086ad230ba4a7298f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 15:26:15 -03:00
buyuer
a2c79bed20
Add fakesensor driver.
...
This driver can read sensor data from csv file.
Signed-off-by: buyuer <dingddding@163.com>
2021-02-11 09:28:55 -08:00
Alin Jerpelea
bdb4b344a8
drivers: sensors: bmi160.c: nxstyle fixes
...
Nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-01-26 05:11:58 -08: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
42b6c665da
sensor: change set_interval to use a value, not a pointer to value
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
ligd
f63db66382
mqueue: add file_mq_xx for kernel use
...
Change-Id: Ida12f5938388cca2f233a4cde90277a218033645
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-05 02:40:43 -06:00
Xiang Xiao
c647faa117
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-31 09:37:29 +01:00
Xiang Xiao
0defe43282
OS internal function should indicate the error by return negative value
...
instead to change errno value by calling set_errno
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-12-31 09:37:29 +01:00
YAMAMOTO Takashi
a0c7a14fed
drivers/sensors/bmp180.c: Fix syslog formats
2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
5c871c6f47
drivers/sensors/bmp180.c: Appease nxstyle
2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
e3617dd8fb
drivers/sensors/ina219.c: Fix a syslog format
2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
41f22bdba0
drivers/sensors/ina219.c: Appease nxstyle
2020-12-05 08:13:32 -06:00
YAMAMOTO Takashi
f5a5ec2d81
drivers/sensors/lm75.c: Fix syslog format
2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
a9ae7edb95
drivers/sensors/lm75.c: Appease nxstyle
2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
aa294546f4
drivers/sensors/xen1210.c: Fix syslog formats
2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
52d539d201
drivers/sensors/xen1210.c: Appease nxstyle
2020-11-30 05:28:17 -06:00
YAMAMOTO Takashi
53a3d652b5
drivers/sensors/max31855.c: Fix a syslog format
2020-11-27 23:38:40 -06:00
YAMAMOTO Takashi
6a9a3d05d8
drivers/sensors/max31855.c: Appease nxstyle
2020-11-27 23:38:40 -06:00
Augusto Fraga Giachero
ffcedfd971
Remove copyright from headers
2020-11-25 05:13:46 -08:00
Augusto Fraga Giachero
6a43daa67e
Update licenses to Apache 2.0
2020-11-25 05:13:46 -08:00
YAMAMOTO Takashi
f8da954e7c
drivers/sensors/sensor.c: Fix a syslog format
2020-11-24 22:31:33 -08:00
dongjiuzhu
148afd9548
driver/sensors: support custom type of sensor.
...
For examples, the custom sensor could define:
struct custem_event_s
{
uint64_t timestamp;
int16_t adc[8];
};
struct sensor_lowerhalf_s g_lower =
{
.buffer_size = 1024,
};
sensor_custom_register(lower, "/dev/sensor/custom0", sizeof(struct custem_event_s));
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-24 13:23:15 -03:00
dongjiuzhu
8f9ca79ffc
driver/sensor rc: use mm/circbuf manage intermediate buffer
...
N/A
Change-Id: Ifdd8117da9d20ac2f48f04b7b383449e6dd03f06
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-20 05:33:03 -08:00