Gregory Nutt
83cdb0c552
Squashed commit of the following:
...
libc/semaphore: Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable. Changed all references to sem_getvalue in the OS to nxsem_getvalue().
sched/semaphore: Rename all internal private functions from sem_xyz to nxsem_xyz. The sem_ prefix is (will be) reserved only for the application semaphore interfaces.
libc/semaphore: Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable. Changed all references to sem_init in the OS to nxsem_init().
sched/semaphore: Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.
sched/semaphoate: Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
2017-10-03 12:52:31 -06:00
Gregory Nutt
8394f9b60f
Squashed commit of the following:
...
configs/z80sim and xtrs: Serial driver lower halfs ioctl methods should return a negated errno value, not set the errno variable.
drivers/wireless: CC1101 driver not permitted to set errno.
drivers/sensors: LIS331DL driver not permitted to set errno.
drivers/lcd: ILI9341 initialize method not permitted to set errno,
drivers/serial: 16550 UART driver IOCTL method must not set errno; it must return a negated errno value.
2017-09-30 12:59:33 -06:00
Gregory Nutt
0f04816b37
Trivial changes from review of last PR.
2017-09-14 14:55:50 -06:00
Florian Olbrich
6f57d1d472
lis3dsh.c edited to obey the nuttx coding standard.
2017-09-14 20:29:41 +00:00
Florian Olbrich
b1e625eacb
Added initialization code and Kconfig entries to set up the LIS3DSH accelerometer
...
driver on STM32F4Discovery rev. C boards and attach the associated interrupt callback.
Added the argument parameter (FAR void *arg) to the interrupt handler provided by the LIS3DSH
driver to fit the definition for ISRs in xcpt_t.
Changed the check for working queue availability in lis3dsh interrupt handler to use work_available()
and not crash in case of an overrun.
2017-09-14 20:03:28 +02:00
Gregory Nutt
5129aeefd5
drivers/sensors: Fix remaining naming of configurations to be compliant for two more drivers.
2017-08-24 10:48:20 -06:00
Gregory Nutt
dc8f3778a9
drivers/sensors: Fix more naming of configurations to be compliant for two more drivers. Still a few more to go.
2017-08-24 10:26:53 -06:00
Gregory Nutt
1f023fa31a
drivers/sensors: Fix more naming of configurations to be compliant for two more drivers. Still a few more to go.
2017-08-24 10:10:00 -06:00
Gregory Nutt
269107afc8
drivers/sensors: Make naming configuration compliant for two more drivers. Still several to go.
2017-08-24 09:54:23 -06:00
Gregory Nutt
7f4af7b690
drivrs/sensors: Make a few other configuration settings consistent with the (undocumented) standard.
2017-08-24 09:45:46 -06:00
Gregory Nutt
5dd25bbfde
Missed two naming changes in last commit
2017-08-24 09:32:24 -06:00
Gregory Nutt
9e386e3b31
drivrs/sensors/hts221: Fix inconsistent configuration variable naming; Try to bring closer to an as-of-yet undocumented naming convention.
2017-08-24 09:22:36 -06:00
Alan Carvalho de Assis
1048a3b871
drivers/sensors/hc_sr04.c: Replace busy wait with semaphone. Using this solution we don't need 60ms delay.
2017-08-18 09:44:38 -06:00
Alan Carvalho de Assis
50e2e08742
drivers/sensors: Add support to HC-SR04 distance sensor
2017-08-17 18:52:54 -06:00
Juha Niskanen
0113b0db95
drivers: handle I2C_TRANSFER return value consistently. Some I2C peripherals transfers return zero on success, others number of completed transfers. Make drivers robust against this.
2017-08-04 07:31:36 -06:00
Gregory Nutt
ee4b69f0d3
Review of last PR. Fixes many coding standard problems.
2017-07-28 07:16:35 -06:00
Giorgio Groß
b55ec110f2
Add driver for LTC4151 current and voltage monitor
2017-07-28 13:05:56 +02:00
Juha Niskanen
32610b53f4
drivers/{sensors,usbmisc}: Fix uninitialized I2C frequency
2017-06-01 06:19:54 -06:00
Juha Niskanen
34e68a569b
drivers: rename newly introduced up_i2creset to I2C_RESET
2017-05-15 07:22:17 -06:00
Juha Niskanen
b9a769d65d
drivers: fix some bad NULL checks
2017-05-15 07:20:32 -06:00
Floxx
c2096f17d6
Moved LIS3DSH from the I2C-dependent block to the SPI-block to make Make.defs consistent with the driver (SPI only) and drivers/sensors/Kconfig.
2017-05-10 20:18:48 +02:00
Gregory Nutt
e9a5477506
Add an instance argument to the SPIDEV definitions.
2017-04-29 12:26:52 -06:00
Juha Niskanen
d64d4e02b4
sensors: lis2dh: fix hardfault when reading from unconfigured sensor
2017-04-04 07:38:49 -06:00
Juha Niskanen
dfe6a672c1
drivers/sensors: Add driver for ST LIS2DH accelerometer. From Timo Voutilainen <time.voutilainen@haltian.com> et al.
2017-04-03 07:28:22 -06:00
Juha Niskanen
9d13a2463f
drivers/usbmisc: Add driver for Fairchild FUSB301 USB type-C controller.
...
From Harri Luhtala <harri.luhtala@haltian.com>. Tested with earlier
version of NuttX; with current version checked that it compiles.
2017-03-31 06:35:36 -06:00
Juha Niskanen
b5b148fef8
drivers/sensors: Add driver for ST LPS25H pressure sensor
2017-03-31 05:53:43 -06:00
Gregory Nutt
916bd8a48f
HTS221 driver: Modify to use new interrupt parameter passing hooks.
2017-03-31 05:31:35 -06:00
Juha Niskanen
9e2b3da3e8
drivers/sensors: Add driver for ST HTS221 humidity sensor
2017-03-30 12:17:23 -06:00
Jussi Kivilinna
dffb8a67e3
Add entropy pool and strong random number generator
...
Entropy pool gathers environmental noise from device drivers, user-space, etc., and returns good random numbers, suitable for cryptographic use. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm for CSPRNG output.
Patch also adds /dev/urandom support for using entropy pool RNG and new 'getrandom' system call for getting randomness without file-descriptor usage (thus avoiding file-descriptor exhaustion attacks). The 'getrandom' interface is similar as 'getentropy' and 'getrandom' available on OpenBSD and Linux respectively.
2017-03-30 07:38:37 -06:00
ahb
e1da80af5b
fix as5048b by adding missing frequency parameter
2017-03-09 12:01:01 +01:00
Maciej Wójcik
1e6ab4763c
typos
2017-03-05 13:04:07 +00:00
Gregory Nutt
6e32d74b33
Cosmetic changes from review of the last PR
2017-02-19 11:49:42 -06:00
raiden00
82cb38c824
drivers/sensors: Add driver for the ST L3GD20 3 axis gyro
2017-02-19 17:43:44 +01:00
Gregory Nutt
e29b50e00a
Fix recurring naming problem: KXTJ9 vs KXJT9.
2017-02-18 08:08:41 -06:00
Gregory Nutt
ba2b345990
Remove a few remaining use of the obsolteted 'Compilation Switches' program section
2017-01-22 08:57:18 -06:00
Alan Carvalho de Assis
a6b7730f8c
Add Vishay VEML6070 driver and support for STM32F103-Minimum board
2016-11-13 11:44:28 -06:00
Gregory Nutt
6a0917ae7f
Eliminate warnings
2016-10-06 07:44:17 -06:00
Alan Carvalho de Assis
61980caee5
drivers/sensors: Adds support for the Sensixs XEN1210 3D-boar. This sensor is used on NANOSATC-BR2 a Brazillian CUBESAT project.
2016-09-16 12:45:53 -06:00
Gregory Nutt
c51b642f81
Fix some driver return values. If sem_wait fails, the errcode is in errno, not the return value.
2016-08-25 07:15:59 -06:00
Alexander Entinger
221fcfd8f1
drivers/sensors: Add driver for the Bosch BMG160 3 axis gyroscop.
2016-08-24 09:41:04 -06:00
Alexander Entinger
0044910e33
drivers/sensors: Add driver for the LIS3DSH 3 axis accelerometer.
2016-08-24 08:28:45 -06:00
Entinger Alexander
b29287b022
drivers/sensors: Add driver for the MLX90393 3 axis magnetometer.
2016-08-23 10:48:08 -06:00
Entinger Alexander
338bf8c9e3
drivers/sensors: Add drvier for the LIS3MDL 3 axis magnetometer
2016-08-23 08:22:47 -06:00
Gregory Nutt
89135c55e4
drivers/timer: Add an upper-half, oneshot timer character driver.
2016-08-12 10:40:07 -06:00
Gregory Nutt
7ba445868c
KXJT9: In read(), return multiple samples if the user-provided buffer will hold multiple samples.
2016-08-02 17:32:47 -06:00
Gregory Nutt
30229c217b
Cosmetic changes
2016-08-02 10:46:19 -06:00
Gregory Nutt
c32d40fd7d
KXJT9 Accelerometer driver from the Motorola Moto Z MDK
2016-08-02 10:38:14 -06:00
Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
27bc1a2221
drivers/sensors: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-11 18:21:49 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Pierre-noel Bouteville
41412d0ce9
* fix a bug in crc computation for ms583730
...
* implement POSIX read.
2016-05-27 07:05:20 -06:00
Gregory Nutt
3e7b2d617a
All drivers that use SPI must call SPI_LOCK and SPI_UNLOCK. This is not optional.
2016-05-26 14:56:10 -06:00
Alan Carvalho de Assis
7f5339ee5a
drivers/sensors/h1750fvi.c: Add a character driver for Rohm Ambient Light Sensor BH1750FVI.
2016-04-15 08:16:16 -06:00
Gregory Nutt
2244ed46bc
nuttx/drivers: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 07:32:58 -06:00
Gregory Nutt
009e9f76cb
I2C: Fixes/improvements from last massive I2C commits
2016-02-02 07:13:03 -06:00
Gregory Nutt
4cfbe50c0d
I2C: Fix some compile time issues found with tools/testbuild.sh
2016-02-01 18:02:56 -06:00
Gregory Nutt
69ce24c70c
I2C: Remove the setfrequency method from the interface
2016-02-01 16:31:13 -06:00
Gregory Nutt
6ad641888b
Add I2C frequency to the i2c_msg_s structure
2016-02-01 14:17:20 -06:00
Gregory Nutt
f9053182d3
I2C: Remove setaddress method
2016-02-01 12:14:31 -06:00
Gregory Nutt
8c9bddf998
I2C: Eliminate the I2C_WRITE and I2C_READ macros
2016-02-01 08:57:22 -06:00
Gregory Nutt
10000841a8
The I2C_TRANSFER method is no longer optional
2016-01-31 14:16:05 -06:00
Gregory Nutt
3a781a2d3f
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:36:47 -06:00
Gregory Nutt
ceb415204e
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 08:00:16 -06:00
Gregory Nutt
7edf921c5e
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:54:36 -06:00
Gregory Nutt
f6e49caba8
All SPI-based device drivers needs to call SPI_HWFEATURES() with zero in order to co-exist with drivers that use H/W features
2016-01-23 16:18:13 -06:00
Gregory Nutt
b54cf004f3
Update ChangeLog
2016-01-17 15:15:01 -06:00
Gregory Nutt
9844036a74
Merged in paulpatience/nuttx/lsm9ds1 (pull request #48 )
...
Add LSM9DS1 accelerometer, gyroscope and magnetometer
2016-01-17 15:06:37 -06:00
Paul A. Patience
57b8a9526d
Add LSM9DS1 accelerometer, gyroscope and magnetometer
2016-01-17 16:01:14 -05:00
Alexander Entinger
75d6c4cee3
drivers/sensors/mcp9844: Driver for the MCP9844 I2C digital temperature sensor with a selectable resolution
2016-01-15 07:25:58 -06:00
Gregory Nutt
96f57eb0d9
Merged in karim_keddam/nuttx (pull request #39 )
...
Fixed error with temperature computation
2015-11-30 06:13:24 -06:00
Karim Keddam
190772edc5
Fixed error with temperature computation
2015-11-30 03:50:58 -05:00
Gregory Nutt
8d963e66cf
Fix some stylistic issues found by tools/nxstyle
2015-11-17 17:31:57 -06:00
Gregory Nutt
5a99735782
(Hopefully) cosmetic changes from review of recent merges for conformance to coding standard
2015-11-17 16:54:15 -06:00
Karim Keddam
522d891759
Fixed a bug with the ms58xx sensor initialization
2015-11-17 17:21:46 -05:00
Karim Keddam
2578994e74
Fixed a bug with the CRC for the ms58xx sensor
2015-11-17 17:19:11 -05:00
Gregory Nutt
d8731d0ef1
Add files missed in previous commit
2015-10-18 08:00:06 +08:00
Alan Carvalho de Assis
0ba6f21532
Add support to Thermocouple-to-Digital converter MAX6675
2015-10-18 07:52:47 +08:00
Alan Carvalho de Assis
8f0c912fff
Add Zero Cross device driver support
2015-10-13 07:27:16 -06:00
Gregory Nutt
cf14f8d1b5
drivers/: Fixes to spacing and alignement
2015-10-10 10:41:00 -06:00
Gregory Nutt
bb05de4b6e
Remove TABs
2015-10-04 16:01:21 -06:00
Gregory Nutt
af086c40ff
Remove dangling whitespace
2015-10-04 15:28:54 -06:00
Alan Carvalho de Assis
3a8b00f09f
max31855 driver fix from Alan Carvalho de Assis
2015-09-14 07:47:21 -06:00
Alan Carvalho de Assis
c4cf5be231
Add support to Maxim MAX31855 Thermocouple-to-Digital
2015-09-13 15:56:48 -06:00
Paul A. Patience
3303ef8c85
Added support for other MS58XX altimeters.
2015-08-14 20:04:16 -04:00
Gregory Nutt
a543dfbcec
Update ChangeLog; Convert a few tabs to spaces
2015-08-11 21:12:15 -06:00
Paul A. Patience
c4b888b41d
Added MS5805 altimeter.
2015-08-11 22:50:11 -04:00
Paul A. Patience
a634ad5528
Added MB7040 sonar.
2015-08-11 13:26:56 -04:00
Paul A. Patience
65792c5dbc
Added forward declarations of structures to fix header inclusion
...
order bugs.
Removed an unused variable.
Added debug asserts to check for invalid I2C addresses.
2015-08-10 16:18:37 -04:00
Paul A. Patience
c0964a17b4
Fixed a forgotten FAR, a typo, and an incorrect bit-field definition.
2015-08-10 14:45:40 -04:00
Paul A. Patience
877d5f3b09
Changed copyright notices to my boss's preference.
2015-08-10 14:15:07 -04:00
Paul A. Patience
1d0e25af30
Convert the AS5048B to use the quadrature encoder interface.
2015-08-10 13:41:39 -04:00
Paul A. Patience
b7e0fc34c5
Added AS5048B magnetic rotary encoder.
2015-08-07 17:22:01 -04:00
Gregory Nutt
6d59603610
Trivial updates from review of LM92 driver; Update ChangeLog
2015-08-06 16:33:02 -06:00
Paul A. Patience
282c4f5347
Added LM92 temperature sensor.
2015-08-06 17:35:34 -04:00
Alan Carvalho de Assis
a01b2e5bbc
drvers/sensor and include/nuttx/sensors: Add support to Bosch BMP180 barometer. From Alan Carvalho de Assis.
2015-07-20 07:18:27 -06:00