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
dongjiuzhu
60d1755e04
drivers: l3gd20 supports the sensor driver model
...
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-19 18:13:17 -08:00
dongjiuzhu
089b1c17f6
driver/sensor: add fetch api to read sensor data directly
...
1.use userspace buffer rather than intermediate buffer of upperhalf driver
2.support block and non-block ways.
Change-Id: I1d0cecfaa20ce54961c58713d8f2f8857e349791
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-11 18:25:22 -08:00
dongjiuzhu
2cda16b606
driver/sensor: add new feature about sensor driver
...
1.support for multi-user access
2.support special cmd to control sensor
3.support userspace to set size of intermediate buffer
by ioctl: SNOIC_SET_BUFFER_SIZE
Change-Id: I9ce3a65b88b12c28388ec397431f1a277b120c2a
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-11 18:25:22 -08:00
dongjiuzhu
2482052228
driver/sensor: user specifies device register number
...
N/A
Change-Id: Idd11461f933dd21b7271cd3ca87a2e33127a9d34
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-11 18:25:22 -08:00
Brennan Ashton
54832f37f2
sim: Initial Linux i2c bus support
...
This adds the inital wiring for i2c bus support in the sim target
and for Linux host adds the lower half that uses the i2c chardev.
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-04 23:51:09 -08:00
Yoshinori Sugino
3ac90fca79
Remove tabs and spaces at the end of lines
2020-10-24 09:38:21 +01:00
dongjiuzhu
a3f978da02
sensor/driver: wtgahrs2 by serial interface follow sensor.c/sensor.h
...
Wtgahrs2 integrates multiple sensor: accel, gyro, mag, baro and gps.
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-22 10:17:36 -03:00
dongjiuzhu
fa09c6a8bc
driver/sensor: add unified management for sensor
...
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-22 10:17:36 -03:00
Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Philippe Coval
cafe24528c
sensors: Support fxos8700cq motion I2C sensor
...
Device is composed of
3-axis, linear accelerometer and 3-axis, magnetometer
It is onboarded in NXP FRDM-K64F SBC.
Change-Id: I405a12cbf2c9994f3bd66e108d2eb8faeee00e18
Bug: https://github.com/apache/incubator-nuttx/issues/1988
Relate-to: https://www.nxp.com/docs/en/data-sheet/FXOS8700CQ.pdf
Forwarded: https://github.com/apache/incubator-nuttx/pull/1989
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2020-10-16 10:10:35 +08:00
raiden00pl
1621305e79
drivers: Changed headers for apache 2.0 license
2020-10-10 12:24:28 -06:00
Ouss4
c98ec2ad3e
drivers/sensors/mpu60x0.c: Correct comments.
2020-09-01 18:18:24 -03:00
Xiang Xiao
acca9fcc3b
sched/wdog: Remove MAX_WDOGPARMS and related stuff
...
since the variable arguments are error prone and seldom used.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-14 08:19:50 -06:00
Xiang Xiao
ed786986ed
sensors/ak09912: Ensure ak09912_dev_s zero in ak09912_register
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-12 08:27:19 -03:00
Xiang Xiao
a0ce81d659
sched/wdog: Don't dynamically allocate wdog_s
...
to save the preserved space(1KB) and also avoid the heap overhead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I694073f68e1bd63960cedeea1ddec441437be025
2020-08-11 12:28:55 -06:00
Xiang Xiao
f618de9c97
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-08 17:30:26 -03:00
Xiang Xiao
4c706771c3
sched/wdog: Replace all callback argument from uint32_t to wdparm_t
...
and alwasy cast the argument of wd_start to wdparm_t
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-08 17:30:26 -03:00
Ouss4
701100f6f9
drivers/sensors/mpu60x0: Add I2C support.
2020-06-24 23:30:34 -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
5eae32577e
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Gregory Nutt
57bc329aac
Run nxstyle all .c and .h files modified by PR.
2020-05-17 14:01:00 -03:00
Gregory Nutt
a569006fd8
sched/: Make more naming consistent
...
Rename various functions per the quidelines of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
nxsem_setprotocol -> nxsem_set_protocol
nxsem_getprotocol -> nxsem_get_protocol
nxsem_getvalue -> nxsem_get_value
2020-05-17 14:01:00 -03:00
Matias Nitsche
e0d21275df
fix all remaining nxstyle errors
2020-05-14 08:32:48 +02:00
Matias Nitsche
5fd9bd5837
stm32: moved all remaining sensor initialization to common board logic
2020-05-14 08:32:48 +02:00
Pelle
b525218b55
Changed headers for apache 2.0 license
2020-05-05 12:20:53 -06:00
Pelle
59fcd9a3ee
hdc1008: minor fixes to comments.
2020-05-05 12:20:53 -06:00
Pelle
8a0b2bc14e
Added driver for the hdc1008 temperature/humidity sensor.
2020-05-05 12:20:53 -06:00
Ouss4
2d13ea7477
drivers/: Check return from nxsem_wait_uninterruptible.
2020-03-30 14:40:01 -06:00
Gregory Nutt
0558aa0a78
"Uninterruptible" semaphore waits must return when canceled.
...
nxsem_timedwait_uninterruptible() must return -ECANCELED if the thread is canceled:
include/nuttx/semaphore.h: Return if nxsem_wait() returns ECANCELED meaning that the thread waiting for the semaphore has been canceled.
sched/semaphore/sem_timedwait.c: Same change (the inline version is in semaphore.h, the non-inlined version is in sem_tickwait.c).
drivers/sensors/lps25h.c and drivers/wireless/bluetooth/bt_uart_bcm4343x.c: Make sure that the caller deals correctly with the -ECANCELED return value.
Refer to issue 619.
2020-03-29 11:58:28 -03:00
Gregory Nutt
5c0e8e88b1
Revert "Makefile: move INCDIROPT to common place ( #625 )"
...
This reverts commit b9ace36fcc
.
This change was added by PR 625 but has a serious logic flaw. It removes all occurrences of INCDIROPT and replaces it with a definition in tools/Config.mk:
else ifeq ($(WINTOOL),y)
DEFINE = "$(TOPDIR)/tools/define.sh"
INCDIR = "$(TOPDIR)/tools/incdir.sh" -w
This logic flaw is the Config.mk is included in all Make.defs files BEFORE WINTOOL is defined. As a result, the definition is wrong in many places when building under Cygwin with a Windows native toolchain.
2020-03-26 08:50:29 -07:00
Xiang Xiao
b9ace36fcc
Makefile: move INCDIROPT to common place ( #625 )
2020-03-26 08:09:59 -06:00