Kees Bakker
0cb92e1e51
drivers: replace memset by simple assignments
...
A memset was used to clear two of the SAUL values in phydat_t::val
The change is to replace that by the following
res->val[1] = 0;
res->val[2] = 0;
which makes the code more obvious.
2019-01-07 21:59:25 +01:00
fc17eb4c55
drivers/isl29020: adapt to new I2C api
2018-07-25 12:01:39 +02:00
0b78a1bec5
drivers/isl29020: rework driver API and params definition
2018-07-25 12:01:39 +02:00
a08e9919a9
drivers: fix doxygen grouping
2018-06-11 19:10:40 +02:00
94c753c07a
drivers: doxygen cleanup
2017-09-01 15:12:20 +02:00
smlng
946256d26f
saul: use const for device parameter
2017-06-26 20:25:37 +02:00
317716419c
drivers: use const device descriptor
2017-06-21 17:05:45 +02:00
Hauke Petersen
3cbc0352ea
drivers: use saul_notsup
2017-05-08 13:56:35 +02:00
Hauke Petersen
81d27683c2
drivers/isl29020: added default params.h file
2017-01-18 15:33:20 +01:00
Kees Bakker
bac5cda1e3
periph/i2c: convert char to uint8_t where applicapable
...
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.
Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Hauke Petersen
18361631a0
drivers/isl29020: added SAUL integration
2015-11-30 20:33:54 +01:00
Ludwig Ortmann
a729afa9ec
drivers/isl29020: fix return value integer error
...
Problem:
Since `i2c_read_reg` returns (signed) `int` values, the result can
be negative. However, the variable used to save the result is unsigned.
Fix:
Add and use a signed variable for return value storing.
2015-05-02 08:35:38 +02:00
Ludwig Ortmann
8ba166df6d
drivers/isl29020: fix some spelling errors
2015-05-02 08:33:15 +02:00
altairpearl
b47cc8d93d
drivers : Update include guards to remove leading underscores
2015-03-30 20:00:28 +05:30
PeterKietzmann
dcd70c807b
drivers/isl29020: Acquire exclusive access ti I2C bus
2015-03-03 18:08:38 +01:00
BytesGalore
469f28bf5c
added missing extern "C"
guards
2014-10-22 07:50:48 +02:00
Hauke Petersen
0f7e8b2f9f
drivers: added driver for ISL29020 light sensor
2014-10-15 14:54:04 +02:00