Gunar Schorcht
2581fdee66
drivers/apd99xx: fix wait long initialization
2020-03-19 10:26:30 +01:00
Martine Lenders
5defa1ae34
Merge pull request #13466 from gschorcht/fix_compilation_with_ndebug
...
tests: fix compilation problems with NDEBUG
2020-03-12 19:34:33 +01:00
Gunar Schorcht
bd658b02ae
drivers/mtd_mapper: fix NDEBUG compile problem
2020-03-12 18:04:42 +01:00
Robert Hartung
dc6665d5cf
Merge pull request #12717 from dylad/pr/bme680_pkg_driver
...
driver/bme680: add I2C/SPI driver for BME680 device
2020-03-12 14:00:40 +01:00
benpicco
24477ae3cb
Merge pull request #13588 from maribu/cc110x-isr
...
drivers/cc110x: Handle lost IRQs more gracefully
2020-03-12 12:21:07 +01:00
Gunar Schorcht
a1e2f36adb
drivers/saul: add auto_init for BME680
2020-03-12 08:52:10 +01:00
Gunar Schorcht
c4325e4d5e
drivers/bme680: add SAUL capabilities
2020-03-12 08:52:10 +01:00
Gunar Schorcht
1118f80180
drivers/saul: add common gas class
2020-03-12 08:42:59 +01:00
Gunar Schorcht
9dd11eb188
drivers: add support for BME680 driver
...
Add the support for BME680 based on the BME680 vendor driver package.
2020-03-12 08:42:59 +01:00
Schorcht
811850bba7
sys/auto_init: add APDS99XX ALS and proximity
2020-03-11 14:21:47 +01:00
Schorcht
7548a6e849
drivers: add APDS99XX ALS and proximity
2020-03-11 14:21:47 +01:00
Gunar Schorcht
87021a0b18
drivers/sy127x: clear interrupts for DIO3
...
If ValidHeader interrupt is set, it triggers DIO3 interrupt. However, if DIO3 line is not connected, ValidHeader interrupt is still set in RegIrqFlags register when RxDone interrupt is triggered on DIO0. It sets the mode back to idle. Therefore, the _on_dio3_irq does not clear the ValidHeader interrupt flag.
2020-03-10 10:47:36 +01:00
Gunar Schorcht
56040e3369
driver/sx127x: allow the use of DIO0 for CAD_DONE
2020-03-10 10:08:30 +01:00
Gunar Schorcht
e3a82cd6fc
driver/sx127x: set DIO1 mapping
...
Since the RxTimeout interrupt is enabled, DIO1 mapping should be set also to RxTimeout in case the driver is extended in future and DIO1 mapping is changed for any reason.
2020-03-10 10:08:24 +01:00
Gunar Schorcht
1eb8701965
drivers/sx127x: ensure that DIO2 is defined
...
If frequency hopping is used (LORA_FREQUENCY_HOPPING_DEFAULT = true), DIO2 pin is needed for the FhssChangeChannel interrupt to get it working.
2020-03-10 10:08:19 +01:00
Gunar Schorcht
3adbbdcf9b
drivers/sx127x: fix length check of netstat_opt_t
in _set
2020-03-08 17:10:46 +01:00
Marian Buschsieweke
02a425f114
drivers/cc110x: Handle lost IRQs more gracefully
...
When an IRQ is lost during cc110x_send(), the driver will remain locked until
another IRQ is triggered. This commit changes the behavior to wait for at most
an reasonable upper bound, which is chosen to not only allow the driver to
recover but also (at least in theory) complete the transmission correctly.
2020-03-08 12:49:57 +01:00
57985806c1
Merge pull request #13562 from jia200x/pr/netdev_irq_end
...
netdev: add netdev_trigger_event_isr() function
2020-03-06 15:37:24 +01:00
Jose Alamos
3ad574a822
drivers/netdev: use netdev_trigger_event_isr function
2020-03-06 14:03:43 +01:00
Jose Alamos
67bc0e13af
netdev: add netdev_trigger_event_isr function
2020-03-06 14:02:40 +01:00
benpicco
7877ffdf2a
Merge pull request #13511 from fjmolinas/pr_auto_init_periph
...
drivers/periph_common: add periph_init% modules
2020-03-06 13:05:57 +01:00
Francisco Molina
6b6479e6e9
drivers/periph_common: add periph_init% module
2020-03-06 11:21:19 +01:00
Martine Lenders
ff425576a0
slipdev_stdio: provide stdio multiplexing over SLIP
2020-03-06 08:58:45 +01:00
Martine Lenders
8e827055f0
slipmux: remove inesc
member
...
It's not needed anymore.
2020-03-06 08:58:45 +01:00
Martine Lenders
f11940973c
slipdev: internally expose byte stuffing functionality
2020-03-06 08:58:45 +01:00
Martine Lenders
79e80d4fec
slipdev: expose marker byte definitions
2020-03-06 08:56:40 +01:00
Martine Lenders
23f6cf8a37
slipdev: provide default configuration
2020-03-05 18:17:01 +01:00
benpicco
7af046d740
Merge pull request #13548 from benpicco/sys/auto_init/netif-manual
...
sys/auto_init: allow delayed initialisation of SAUL & gnrc_netif
2020-03-05 17:05:02 +01:00
Jan Mohr
aa5ffe5a6d
drivers/lis2dh12: added interrupt function
2020-03-04 17:01:58 +01:00
Benjamin Valentin
521b1ce440
sys/auto_init: allow delayed initialisation of SAUL
...
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
1298ae828a
Merge pull request #13202 from bergzand/pr/mtd/mapper
...
MTD: Add module for remapping MTD sectors
2020-03-04 11:51:39 +01:00
9a430cd682
mtd: add module for remapping MTD sectors
2020-03-04 10:47:50 +01:00
Benjamin Valentin
725311a054
periph_common/rtc: add rtc_tm_valid()
...
Add a function to verify all members of a struct tm are within
the valid range.
2020-03-03 16:26:14 +01:00
Gunar Schorcht
9e372104f0
Merge pull request #13284 from benpicco/rtc_mktime
...
periph_common/rtc: add rtc_mktime() & rtc_localtime() helper functions for RTC implementations
2020-03-03 14:12:50 +01:00
b050608771
Merge pull request #13262 from aabadie/pr/sys/disp_dev
...
sys/disp_dev: add generic interface for display drivers
2020-03-03 13:25:45 +01:00
d13d1aed48
Merge pull request #13336 from bergzand/pr/mtd_spi_nor/erase_timings_in_struct
...
mtd_spi_nor: erase timings in struct
2020-03-03 11:59:28 +01:00
Benjamin Valentin
5b64ae4ef5
periph_common/rtc: add rtc_localtime()
...
Add function to convert a RTC timestamp (non-UNIX) to a time struct.
2020-03-03 11:01:02 +01:00
acfac5d32d
drivers/ili9341: provide adaption to disp_dev interface
2020-03-03 10:25:55 +01:00
ac6d0b9077
sys: add interface for generic display device
2020-03-03 10:25:54 +01:00
dc04b86d1b
mtd_spi_nor: Add wait timings to parameters
2020-03-03 09:49:00 +01:00
Benjamin Valentin
fbada0df58
periph_common/rtc: handle m_mday == 0 in rtc_tm_normalize()
2020-02-29 17:42:50 +01:00
Benjamin Valentin
becff61e20
periph_common/rtc: add rtc_mktime()
...
Add a function to convert a time struct to an unsigned timestamp (non-UNIX).
2020-02-29 17:42:50 +01:00
Benjamin Valentin
743471362e
drivers/ds18: fix doxygen group of ds18_internal.h
2020-02-27 17:43:53 +01:00
benpicco
50a5845b15
Merge pull request #13037 from benpicco/lpc23xx_i2c
...
cpu/lpc2387: implement periph/i2c
2020-02-27 09:58:34 +01:00
Gunar Schorcht
a27e77cfb3
drivers/at24mac: fix grouping in doc
2020-02-27 08:46:40 +01:00
Gunar Schorcht
dfae4fbb27
drivers/bmx280: remove line break in defgroup
...
defgroup command must not contain a line break.
2020-02-27 08:43:21 +01:00
Gunar Schorcht
2bbc02a6e0
drivers/sps30: brief documentation added
2020-02-27 08:43:21 +01:00
Gunar Schorcht
a9a9745ffd
drivers/at: change grouping in doc
2020-02-27 08:43:21 +01:00
Gunar Schorcht
4c210b7b2f
drivers/at24xxx: fix grouping in doc
2020-02-27 08:43:21 +01:00
Gunar Schorcht
918b3517a7
doc: create a category for miscellaneous drivers
...
A documentation category for drivers that do not fit in any other driver category is added.
2020-02-27 08:43:21 +01:00
Benjamin Valentin
00131bb745
drivers/at24mac: include kernel_defines.h
...
We need that header file for the ARRAY_SIZE() macro.
2020-02-26 23:41:38 +01:00
2dcf65d942
Merge pull request #13332 from bergzand/pr/mtd_spi_nor/params_struct
...
mtd_spi_nor: Move const params to separate struct
2020-02-26 09:43:18 +01:00
2b713f13cb
drivers/srf08: refactor driver configuration
2020-02-25 21:24:02 +01:00
benpicco
aa1c23d4bd
Merge pull request #11929 from fabian18/driver-at24cxxx-eeprom
...
Driver for AT24CXXX EEPROM
2020-02-25 18:16:45 +01:00
ab333f3fb2
Merge pull request #13335 from bergzand/pr/mtd_spi_nor/wait_in_debug
...
mtd_spi_nor: Add chip wait timings to debug output
2020-02-25 13:33:00 +01:00
d40015a41a
mtd_spi_nor: Add chip wait timings to debug output
2020-02-25 11:21:20 +01:00
01818ed4e8
drivers/bmx280: provide correct CALIB_T_P_LEN
2020-02-24 15:21:06 +01:00
8a909b1f9a
drivers/bmx280: increase CALIB_T_P_LEN
2020-02-24 14:25:32 +01:00
fabian18
2c77ee4cab
drivers/at24cxxx: at24cxxx EEPROM driver
2020-02-24 14:00:25 +01:00
Michel Rottleuthner
1743f96fa8
drivers/saul: satisfy vera++ (shorten lines to below 100 chars)
2020-02-20 14:26:55 +01:00
Michel Rottleuthner
7e089bce7b
drivers/sps30: add saul integration
2020-02-20 14:26:55 +01:00
Michel Rottleuthner
46091b6b43
drivers/saul: add class and string for size measurements
2020-02-20 14:26:55 +01:00
Michel Rottleuthner
c4093c29a4
drivers: add driver for Sensirion SPS30 particulate matter sensor
2020-02-20 14:26:55 +01:00
Yegor Yefremov
f63cc9f900
drivers/sx127x: fix dead links
...
URLs of the datasheets have been changed again.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2020-02-17 09:54:21 +01:00
benpicco
6f97012237
Merge pull request #13356 from benemorius/pr/at86reset
...
drivers/at86rf2xx: reset hardware before reading any register
2020-02-16 20:42:41 +01:00
Jue
9cb8e2c941
drivers/dose: made the sense pin optional
2020-02-16 17:58:58 +01:00
Jue
cc184ca65b
drivers/dose: fixed misspelled OCTET
2020-02-16 17:58:57 +01:00
Thomas Stilwell
751b0332da
drivers/at86rf2xx: reset hardware before reading version register
2020-02-13 21:33:22 -06:00
Benjamin Valentin
d3ace2e821
drivers: add at24mac driver
...
The AT24MAC is an EEPROM that provides unique ID functionality.
On one address it provides normal AT24xxx EEPROM operations, but
on a seperate i2c address a read-only EUI-64 and a 128-bit ID are
provided.
This adds a simply driver for this chip.
2020-02-13 15:58:43 +01:00
a055a6c579
Merge pull request #13362 from benpicco/at86rf2xx-luid_get
...
drivers/at86rf2xx: use luid_get_eui64() / luid_get_short()
2020-02-13 15:33:41 +01:00
Benjamin Valentin
63f6d6aa13
drivers/at86rf2xx: use luid_get_eui64() / luid_get_short()
...
Use dedicated helper functions to generate long and short address.
Maybe fixes #13358
2020-02-13 11:17:11 +01:00
1bc842707a
drivers/stmpe811: add implementation
2020-02-13 09:14:51 +01:00
Francisco Molina
802216ce53
Makefile.dep: add auto_init_at86rf2xx MODULE
2020-02-12 16:51:27 +01:00
benpicco
f5b6544123
Merge pull request #13329 from wosym/pr/bh1900nux
...
Add bh1900nux driver
2020-02-12 11:16:23 +01:00
Wouter Symons
a2d9389373
Add bh1900nux driver
2020-02-12 07:34:22 +01:00
7a88279ffe
drivers/ili9341: add missing xtimer module dependency
2020-02-11 19:42:43 +01:00
e5fa8921b3
mtd_spi_nor: Move const params to separate struct
2020-02-11 15:55:41 +01:00
benpicco
d51333485d
Merge pull request #13324 from maribu/ina2xx_fix
...
drivers/ina2xx: Fixed missing i2c_acquire/release
2020-02-11 11:36:59 +01:00
8543dbc263
Merge pull request #9349 from OTAkeys/pr/mtd_no_sleep
...
mtd_spi_nor: remove sleep when waiting for write completed
2020-02-11 10:24:45 +01:00
e27a0be577
Merge pull request #13328 from bergzand/pr/docs/display_group
...
drivers: Add display device doxygen group
2020-02-10 20:19:16 +01:00
Benjamin Valentin
11d77271cf
drivers/ws281x: introduce WS281X_HAVE_INIT
...
This brings the backend-dependant init() function in line with
`WS281X_HAVE_PREPARE_TRANSMISSION` and `WS281X_HAVE_END_TRANSMISSION`.
2020-02-10 14:45:26 +01:00
Benjamin Valentin
8352e4aae0
drivers/ws281x: add VT100 backend for native
...
To quickly iterate on animations it is handy to being able to simulate
the output on native.
This adds a VT100 terminal backend to the ws281x driver that outputs
the colors straight to the terminal.
2020-02-10 14:40:15 +01:00
6b2478953c
pcd8544: move to display devices doxygen group
2020-02-10 14:11:17 +01:00
7ade31ad5b
ili9341: move to display devices doxygen group
2020-02-10 14:11:05 +01:00
d070f2924d
hd44780: move to display devices doxygen group
2020-02-10 14:10:46 +01:00
965a0f9c9a
dsp0401: move to display devices doxygen group
2020-02-10 14:10:18 +01:00
8a481abc90
drivers: Add display devices doxygen group
2020-02-10 14:09:57 +01:00
e573d8b57f
drivers/ili9341: cleanup doxygen documentation
2020-02-10 11:46:01 +01:00
Marian Buschsieweke
eb6b830955
drivers/ina2xx: Fixed missing i2c_acquire/release
2020-02-10 10:32:27 +01:00
benpicco
16ab89bf28
Merge pull request #12728 from bergzand/pr/at86rf2xx/fix_recv_before_send
...
at86rf2xx: fix receive before send detection
2020-02-07 13:54:52 +01:00
42d54600f7
at86rf2xx: fix receive before send detection
...
The at86rf2xx radio handled a transfer complete condition with the radio
in the BUSY_TX_ARET state as a finished transmission. This condition and
state also occurs when a reception occurs just before switching to
transmitting. This would cause a condition where first a TX_COMPLETE was
signalled and second a RX_COMPLETE was signalled. The network stack
would then read the transmitted frame as a received frame.
The patch fixes the errornous RX callback by only submitting the
TX_COMPLETE condition when there are at least 2 frames pending
(at86rf2xx::pending_tx).
2020-02-07 13:08:33 +01:00
Vincent Dupont
f11fac8811
mtd_spi_nor: remove sleep when waiting for write completed
2020-02-05 16:20:01 +01:00
Evgeniy Krysanov
7b64d35af5
drivers/ds18: fix ds18 temperature conversion
2020-02-05 12:31:43 +03:00
8e85c2d900
Merge pull request #13261 from aabadie/pr/drivers/ili9341_const
...
drivers/ili9341: use const qualifier where possible
2020-02-04 11:29:03 +01:00
66a06bfdfa
drivers/Makefile.include: document order requirement
2020-02-03 13:52:08 +01:00
0a21575722
drivers: fix alphabetical order in Makefile.include
2020-02-03 10:30:04 +01:00
e126599928
drivers/ili9341: use const qualifier where possible
2020-02-02 18:55:46 +01:00
Martine Lenders
8d749dc024
Merge pull request #13148 from chrysn-pull-requests/usb-default-vidpid
...
USB: Use default VID/PID for RIOT-included peripherals
2020-01-30 17:37:52 +01:00
chrysn
e65f3f372b
USB VID/PID: Set whitelist define for internals that use usb.h
...
This list is probably incomplete as it was created experimentally.
2020-01-30 15:04:10 +01:00
Sebastian Meiling
a4c4c25b3b
Merge pull request #12866 from jia200x/pr/gnrc_lorawan_remove_netdev
...
net/gnrc_lorawan: remove netdev layer from MAC
2020-01-30 14:02:59 +01:00
benpicco
3c13df60ab
Merge pull request #13190 from maribu/cc110x-promiscuous-mode
...
drivers/cc110x: add support promiscuous mode
2020-01-24 14:22:08 +01:00
Francisco
618919bb17
Merge pull request #13192 from leandrolanzieri/pr/drivers/xbee_fix_ref_to_device
...
drivers/xbee: Fix reference to device from netif in send function
2020-01-24 08:46:40 +01:00
Marian Buschsieweke
b98b51d082
drivers/cc110x: Add promiscuous mode support
2020-01-23 18:27:04 +01:00
Marian Buschsieweke
fdc87ae30d
drivers/cc110x: Fixed typo in doc
2020-01-23 18:27:04 +01:00
Marian Buschsieweke
f7eb9233da
drivers/cc110x: Replaced some magic numbers
2020-01-23 18:27:03 +01:00
Leandro Lanzieri
40794cf5f1
drivers/xbee: Fix reference to device from netif in send function
2020-01-23 18:11:17 +01:00
benpicco
88f9d5870d
Merge pull request #13029 from jue89/feature/dose-optional-set-addr
...
drivers/dose: add setter for MAC address
2020-01-23 12:57:05 +01:00
Jose Alamos
709c1aac30
Kconfig: Expose NRF802154 configurations
2020-01-21 11:29:00 +01:00
Leandro Lanzieri
56240bf071
Merge pull request #13147 from jia200x/pr/kconfig_drivers
...
Kconfig: add Drivers menu
2020-01-17 11:43:08 +01:00
Jose Alamos
cbca04fdcc
Kconfig: add Drivers menu
2020-01-16 18:47:57 +01:00
cab8729e32
drivers/ili9341: add number of lines parameter
2020-01-15 15:36:21 +01:00
cfbab79398
Merge pull request #13105 from bergzand/pr/ili9341_add_config
...
ili9341: Add color mode and inversion parameters
2020-01-13 21:07:25 +01:00
Francisco
3e0043021b
Merge pull request #13110 from kaspar030/periph_rtt_docimp
...
periph/rtt: clarify rtt_set_alarm() documentation
2020-01-13 17:12:08 +01:00
146137ef72
ili9341: Add color mode and inversion parameters
2020-01-13 17:09:02 +01:00
Leandro Lanzieri
434309a9e2
Merge pull request #13106 from MrKevinWeiss/pr/fix/mpudoc
...
drivers/mpu9x50: Fix prameter placement for docs
2020-01-13 15:51:00 +01:00
4df2827fe1
periph/rtt: clarify rtt_set_alarm() documentation
2020-01-13 15:18:16 +01:00
Francisco
1977423e9b
Merge pull request #13048 from maribu/adc-int32_t
...
periph/adc: Change return type of `adc_sample()` to `int32_t`
2020-01-13 12:56:09 +01:00
MrKevinWeiss
e19091541f
drivers/mpu9x50: Fix prameter placement for docs
...
When generating the doxygen output the temp sens and offset are in the config group.
Since they are internal parameters not to be accessed by users they are placed in the mpu9x650_internal.h file.
2020-01-13 12:50:13 +01:00
MichelRottleuthner
53cb3b087c
Merge pull request #9530 from Hyungsin/forupstream_xtimer
...
sys: xtimer concurrency/robustness improvement
2020-01-13 08:24:15 +01:00
746278a118
drivers/itg320x: set xtimer as dependency
2020-01-11 18:10:09 +01:00
a933657020
drivers/itg320x: remove not needed MODULE variable
2020-01-11 18:09:13 +01:00
benpicco
1c148ba2f2
Merge pull request #10092 from gschorcht/drivers_itg320x
...
drivers: add driver for InvenSense ITG-320X 3-axis gyroscope
2020-01-11 17:37:48 +01:00
Schorcht
71772cc3b3
drivers: add driver for ITG320X 3-axis gyroscope
2020-01-11 08:02:34 +01:00
Hyungsin
6eed5b9d43
remove XTIMER_OVERHEAD
2020-01-10 13:22:11 -08:00
Marian Buschsieweke
6e39b4d191
drivers/periph: adc_sample() now returns int32_t
...
Reasoning: This allow support for ADCs with resolution of more than 16 bits on
8 bit and 16 bit platforms.
2020-01-10 14:13:06 +01:00
69b522e114
Merge pull request #13060 from MichelRottleuthner/pr_periph_timer_irq_safe
...
drivers/periph_common/timer: protect timer_set from IRQs
2020-01-10 11:27:59 +01:00
Michel Rottleuthner
8e7a1edd11
drivers/periph_common/timer: protect timer_set from IRQs
2020-01-10 09:58:18 +01:00
Marian Buschsieweke
e03615fd38
drivers/dht: Worked around doxygen bug
...
Markdown in @retval values is currently broken in Doxygen. This removes use
of markdown there
2020-01-09 17:08:05 +01:00
Jue
2482eec07c
drivers/dose: add setter for MAC address
2020-01-05 23:01:24 +01:00
benpicco
87f86c4c08
Merge pull request #12924 from daexel/shtc1_bugfix
...
drivers/shtc1: Initial support for the SHTC1 temperature and humidity sensor
2019-12-16 18:21:48 +01:00
steffen
fa05cf0c5d
Driver/shtc1: add saul integration
...
- add saul integration
- uncrustified
- SAUL/DRIVER tests
2019-12-16 15:29:04 +01:00
Jue
bc46c7478f
drivers: add Differentially Operated Serial Ethernet driver
2019-12-16 10:43:13 +01:00
Benjamin Valentin
22c2dbbbe5
drivers/sht3x: use crc8 function from common code
...
This makes the sht3x driver use the crc-8 routine from sys/hashes.
It's the same code, was just moved to a common place.
2019-12-13 14:50:32 +01:00
a9bf69146b
Merge pull request #9948 from bergzand/pr/ili9341
...
ili9341: Initial import of ili9341 LCD driver
2019-12-11 16:43:46 +01:00
35737a24e4
drivers/ili9341: add spi mode configuration option
2019-12-11 16:18:40 +01:00
ef4dcb8eec
ili9341: Initial include
...
This commit adds support for the ili9341 display
2019-12-11 16:18:37 +01:00
2f65bacc7d
drivers: fix sort Makefile.dep/include files
2019-12-11 15:31:58 +01:00
Marian Buschsieweke
e3d185b53a
drivers/ws281x: Fixed issue in doc
2019-12-05 13:30:30 +01:00
cae369bc52
saul: Ignore extra dimensions in read functions
2019-12-03 15:17:25 +01:00
Jose Alamos
99dbcecc3a
net/gnrc_lorawan: remove netdev SAP interface
2019-12-03 14:08:35 +01:00
Yegor Yefremov
87d8f29af2
drivers/ws281x: improve documentation
...
Replace 'to' with 'too' and remove the space between '8 MHz'.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-11-29 11:24:29 +01:00
benpicco
f4876013cd
Merge pull request #12789 from maribu/bmx280_endianess
...
drivers/bmx280: Fix incorrect endian conversion
2019-11-28 14:04:41 +01:00
Jannes
0acf55af53
drivers/ncv7356: Add documentation
2019-11-27 13:35:57 +01:00
MichelRottleuthner
bf676d4728
Merge pull request #11022 from jia200x/pr/gnrc_lorawan
...
gnrc_lorawan: add support for GNRC based LoRaWAN stack
2019-11-27 09:25:20 +01:00
Jose Alamos
523d1af490
netdev: add netdev types for GNRC_LORAWAN
2019-11-26 21:52:05 +01:00
Marian Buschsieweke
2d81738cb9
drivers/pulse_counter: Use C11 atomics & bugfix
...
- Previously the pulse counter used GCC's built-in functions for atomic memory
access. This PR changes this to use C11 atomics instead:
- Use of C11 atomics instead of atomic build-in functions makes the code
more portable and readable.
- Previously pulse_counter_reset() did not use an atomic function, so that
resets would be racy. (E.g. on the 8-bit AVR platform an 16-bit store is
not atomic, unless special care (like using C11 atomics) is taken.)
2019-11-26 14:04:42 +01:00
benpicco
ffe208a3a4
Merge pull request #11394 from maribu/saul_stringification
...
drivers/saul: Improved stringification
2019-11-26 13:53:59 +01:00
benpicco
af0c6e9319
Merge pull request #12772 from daexel/bme280_bugfix
...
drivers/bmx280: add temp_measurement to methods
2019-11-25 18:26:50 +01:00
benpicco
a21fe4ae87
Merge pull request #12259 from daexel/dcf77
...
drivers/dcf77:Inital Support DCF77
2019-11-25 16:20:51 +01:00
Michel Gerlach
973d9fd54b
driver/bme280: add dependencies on temperature for pressure and humidity
2019-11-25 13:13:24 +01:00
d0d6e53ff4
Merge pull request #11960 from fjmolinas/pr_msp430_flashpage_raw
...
cpu/msp430_common: add flashpage_raw
2019-11-25 12:48:48 +01:00
Marian Buschsieweke
3264106a2f
Merge pull request #12704 from benpicco/AT86RFR2_smart_idle
...
drivers/at86rf2xx: enable Smart Reduced Power Consumption for AT86RFR2
2019-11-25 11:57:44 +01:00
Marian Buschsieweke
837e9c1ddc
drivers/saul: Improved stringification
...
- Changed declaration of SAUL classes (while keeping the format)
- Termed "class of SAUL classes" category of SAUL classes in the doc to
avoid confusion. (E.g. a SAUL class will now be in category sensor or
actuator.)
- Separate enums for SAUL category and intra-category ID. Numbers will now
but auto-assigned by the compiler
- Use constant look-up tables for stringification (one table per SAUL category).
==> This saves 512B in .data section of AVR
2019-11-25 10:09:11 +01:00
benpicco
ce1f383f90
Merge pull request #12606 from maribu/at86rf2xx-addr-endianess
...
drivers/at86rf2xx: Updated address API
2019-11-24 16:33:16 +01:00
fjmolinas
f0bbcef987
drivers/mtd_flashpage: add 16bit compatibility
2019-11-24 13:19:19 +01:00
41e29e3fda
Merge pull request #12790 from maribu/atmega_isr_thread
...
cpu/atmega_common
2019-11-24 11:10:10 +01:00
c87748f563
periph: fix periph/gpio_util.h header guards
2019-11-23 22:39:40 +01:00
eeca0e3752
drivers/include: fix typos
2019-11-23 22:39:40 +01:00
54b8e01ba3
drivers/opt3001: fix typos
2019-11-23 22:39:39 +01:00
c2f4d0bb7a
drivers/feetech: fix typos
2019-11-23 22:39:39 +01:00
6d79a068b0
drivers/encx24j600: fix typos
2019-11-23 22:39:39 +01:00
7704eabfa6
drivers/dynamixel: fix typos
2019-11-23 22:39:39 +01:00
54831bbb6e
drivers/bh1750fvi: fix typos
2019-11-23 22:39:39 +01:00
a62797e8ba
drivers/adcxx1c: fix typos
2019-11-23 22:39:39 +01:00
5ebe48ce42
drivers/sht3x: fix typos
2019-11-23 22:39:39 +01:00
1d2dd2efdd
drivers/sdcard_spi: fix typos
2019-11-23 22:39:39 +01:00
a25313e5b7
drivers/ph_oem: fix typos
2019-11-23 22:39:39 +01:00
04516d78c5
drivers/pcd8544: fix typos
2019-11-23 22:39:39 +01:00
a90a192648
drivers/pca9685: fix typos
2019-11-23 22:39:39 +01:00
541596c893
drivers/nrf24l01p: fix typos
2019-11-23 22:39:39 +01:00
2e94fc9253
drivers/mrf24j40: fix typos
2019-11-23 22:39:39 +01:00
17e0405a07
drivers/lsm6dsl: fix typos
2019-11-23 22:39:39 +01:00
12223c4e6e
drivers/lpsxxx: fix typos
2019-11-23 22:39:39 +01:00
f81e5c552a
drivers/enc28j60: fix typos
2019-11-23 22:39:39 +01:00
6f6ca90270
drivers/ccs811: fix typos
2019-11-23 22:39:39 +01:00
da4d5be21f
drivers/bmx055: fix typos
2019-11-23 22:39:39 +01:00
5c4bf445bb
drivers/apa102: fix typos
2019-11-23 22:39:39 +01:00
ec47a7542a
drivers/ads101x: fix typos
2019-11-23 22:39:39 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Marian Buschsieweke
f0317c50f2
drivers/at86rf2xx: Updated address API
...
Changed the address getter and setter functions to avoid byte order
confusion.
2019-11-23 19:40:09 +01:00
Marian Buschsieweke
4347f720f5
drivers/at86rf2xx: Update to new ATmega API
...
Replace __enter_isr() with atmega_enter_isr() and __exit_isr() with
atmega_exit_isr()
2019-11-23 12:27:13 +01:00
Marian Buschsieweke
16ee7aed32
Merge pull request #11350 from maribu/ina2xx
...
drivers/ina220: Changed to comply with RIOT's driver design goals & SAUL adaption
2019-11-22 23:36:50 +01:00
benpicco
09f647eee2
Merge pull request #12693 from maribu/neopixel-atmega
...
drivers: Added WS281x RGB LED driver for ATmega platform
2019-11-22 22:36:36 +01:00
Marian Buschsieweke
f08df428fa
drivers/bmx280: Fix incorrect endian conversion
...
The binary shift operators in C are defined via the change of their values, not
the change of the memory representation of them. When reading a value from
little endian out of buffer `buf`, `((uint16_t)buf[1] << 8) | buf[0]` will
thus work regardless of the byte order of the host system.
2019-11-22 20:58:31 +01:00
Marian Buschsieweke
0a0c1697d7
drivers/ina2xx: Added SAUL integration
2019-11-22 20:29:53 +01:00
Marian Buschsieweke
3ebbec84c7
drivers/saul: Fixed documentation
...
There is no need to distinguish between sensors for electrical power or other
types of power.
2019-11-22 20:29:53 +01:00
Marian Buschsieweke
a6476bd813
drivers/ina2xx: Match RIOT's driver design goals
...
- Use standard RIOT style `ina2xx_params_t` on initialization as explained in
[1] instead of a custom API
- Provided a default configuration via `ina2xx_params_t` as required by [1] that
works fine for the INA219 breakout board and with an optimal resolution that
still covers the whole range of USB high-power devices (500 mA @ 5V) with a
comfortable safe margin.
- Changed initialization procedure to include a device reset and connectivity
test, as required by [1]
- The calibration value is now calculated by the driver
- This simplifies using the driver a lot
- The user can still choose a trade-off between range and resolution that
matches the application requirements, but now among predefined values
- This allows the driver to easily convert the raw data into meaningful
physical data, as the resolution of the raw data is known
- All measurements are provided as meaningful physical data as required by [1]
[1]: https://github.com/RIOT-OS/RIOT/wiki/Guide:-Writing-a-device-driver-in-RIOT
2019-11-22 20:28:57 +01:00
Marian Buschsieweke
f424421f79
drivers: Renamed ina220 --> ina2xx
...
The INA219 has the exact same interface as the INA220 (including values and
semantics of the configuration register). Thus, this driver can be used for
both. The ina220 has been renamed to ina2xx to reflect this and pseudo modules
for the ina220 and ina219 have been added.
2019-11-22 19:53:51 +01:00
Hauke Petersen
9f5f6f4215
drivers/bmx280: improved documentation
2019-11-22 14:04:38 +01:00
Hauke Petersen
b7f33bd84f
drivers/bmx280: significant driver rework
...
bugs fixed:
- move global variables into device descriptor
- guard bus access (use acquire and release)
added functionality:
- enable SPI mode
structural improvements:
- reduce stack usage
- simplify the driver's structure
- centralize bus access code
- use assertions
- cleanup includes
- use shortcuts for bus access
style changes:
- fix line length
- cleanup and improve doxygen
- unify pointer notation (char *var over char* var)
- unify (error) return messages
- use `#ifdef MODULE_BME280` instead of `#if defined(BME..)`
- unify debug messages -> using `[bmx28] x: msg` scheme
2019-11-22 14:04:37 +01:00
Michel Gerlach
2a14b6ceb8
Drivers/DCF77:First implementation
2019-11-22 10:27:01 +01:00
Gunar Schorcht
a05027cdba
Merge pull request #12523 from aabadie/pr/sys/arduino_pwm
...
sys/arduino: add implementation for analogWrite
2019-11-21 15:08:10 +01:00
benpicco
8836f225e6
Merge pull request #12586 from aabadie/pr/drivers/tmp00x_scan_build
...
drivers/tmp00x: cleanup return codes and fix potential use of uninitialized parameter
2019-11-20 20:10:17 +01:00
Marian Buschsieweke
1ed1906023
drivers/ws281x: Added driver for RGB LEDs
...
Added driver for the WS2812/SK6812 RGB LEDs often sold as NeoPixels, which due
to their integrated RGB controller can be chained to arbitrary length and
controlled with a single GPIO.
2019-11-18 22:45:24 +01:00
5eb5c3c42c
at86rf2xx: split out isr transmit complete handling
2019-11-16 22:26:58 +01:00
79943cb0de
drivers/pca9685: blacklist efm32 arch
...
The CPU doesn't support PWM_RIGHT
2019-11-16 14:08:49 +01:00
abfa73193f
drivers/periph_pwm: define mapping struct for arduino pins
2019-11-15 17:51:45 +01:00
Benjamin Valentin
528cb27395
drivers/at86rf2xx: enable Smart Reduced Power Consumption for AT86RFR2
...
"Smart Reduced Power Consumption Techniques" [0] are supported by AT86RF233,
ATmega2564/1284/644RFR2 and ATmega256/128/64RFR2 devices.
Functionality is the same as on AT86RF233, so we can just enable it.
[0] http://ww1.microchip.com/downloads/en/Appnotes/Atmel-42356-Smart-Reduced-Power-Consumption-Techniques_ApplicationNote_AT02594.pdf
2019-11-13 23:35:40 +01:00
Hauke Petersen
ca7578073a
drivers: add support for QMC5883L mag sensors
2019-11-13 12:56:26 +01:00
Marian Buschsieweke
107b50ca04
drivers/net/netdev: Use consistent code formatting
2019-11-11 13:03:50 +01:00
c062d74b84
drivers/tmp00x: cleanup return codes
...
This also fixes a scan-build warning about a potential use of uninitialized parameter to the call of tmp0xx_read function
2019-11-08 22:17:44 +01:00
Benjamin Valentin
d213bbc6f5
Revert "drivers/hd44780: add short delay after each character"
...
This reverts commit cf01c743a8
.
Adding an unexplained delay seemed wrong in the first place, but it fixed
the display on the MCB2388.
Turns out the display was erroneously operating in 8-bit mode due to the
uninitialized flag register.
Why the delay helped here I don't know.
But with #12634 fixing this, this hack is not needed anymore.
2019-11-07 22:40:01 +01:00
Martine Lenders
14a2f6bc18
gnrc: use gnrc_netif_default_init() for all implementations
2019-11-07 11:00:36 +01:00
62d299459f
drivers/hd44780: optimize detection of 4 and 8 bit modes
...
The driver can only be used with either 4 or 8 bit modes. Checking if the 5th pin is set in the configuration is enough the determine if 8bit mode should be used or not
2019-11-06 16:27:39 +01:00
6c56972dba
drivers/include/hd44780: avoid use of magic numbers
2019-11-06 16:25:27 +01:00
c7fac09d42
drivers/hd44780: fix potential hardfault on initialization
...
Co-authored-by Benjamin Valentin <benpicco@googlemail.com>
2019-11-06 16:14:39 +01:00
Marian Buschsieweke
4d279ae76e
Merge pull request #12055 from fabian18/driver-ina3221
...
Driver for INA3221 current and power and bus voltage monitor
2019-11-05 14:45:03 +01:00
Benjamin Valentin
513a3a7d59
periph_common/rtc: add rtc_tm_compare()
...
Add an easy way to compare two points in time.
2019-11-05 12:52:45 +01:00
fabian18
7e8cce875a
drivers/ina3221: Added SAUL integration
2019-11-05 12:37:41 +01:00
fabian18
195379a9b8
drivers/ina3221: INA3221 driver implementation
2019-11-05 12:29:42 +01:00
Marian Buschsieweke
bf54c56420
Merge pull request #12501 from maribu/NETOPT_MAX_PACKET_SIZE
...
drivers: Replaced NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE
2019-10-30 10:51:32 +01:00
Benjamin Valentin
cf01c743a8
drivers/hd44780: add short delay after each character
...
On the LCD display connected to the MCB2300 board, the
display would not light up.
Adding a 1µs delay after each byte of data seems to fix it.
2019-10-29 11:09:56 +01:00
bfe1a84991
drivers/hd44780: change default pin params
...
Remove the use of arduino dependent macros. The default pins are for the Arduino Zero board
2019-10-29 11:09:56 +01:00
8e70cfb2e4
driver/hd44780: cleanup param definition and HD44780_RW_OFF
...
There's already a macro for undefined gpios: GPIO_UNDEF
2019-10-29 10:58:26 +01:00
04dc65f6ad
drivers/hd44780: move params header at the right place
2019-10-29 10:58:26 +01:00
808e44243e
drivers/nrf24l01p: fix potentially undefined return value
2019-10-28 14:46:57 +01:00
Marian Buschsieweke
4cf2151248
Merge pull request #12537 from benpicco/at86rfmega
...
drivers/at86rf2xx: add support for ATmegaRF MCUs
2019-10-28 09:22:02 +01:00
Gunar Schorcht
f4a16e6b81
Merge pull request #12568 from aabadie/pr/drivers/bmp180_scan-build_fix
...
drivers/bmp180: fix potential use of uninitialized variable
2019-10-27 09:48:07 +01:00
Benjamin Valentin
8f1eaae353
drivers/at86rf2xx: add support for ATmegaRF MCUs
...
The ATmega128RFA1 and ATmega256RFR2 contain a version of this IP
on the MCU.
The radio core behaves mostly like a at86rf231, but all registers
are mapped to memory and radio states can directly generate interrupts
on the CPU.
The ATmega256RFR2 adds support for automatic retransmissions.
This has not been implemented yet.
Co-authored-by: Josua Arndt <jarndt@ias.rwth-aachen.de>
2019-10-26 23:10:18 +02:00
Francisco
f68ad2ae6c
Merge pull request #12569 from aabadie/pr/drivers/ata8520e_fix_scan_build
...
drivers/ata8520e: fix potentially unused variables
2019-10-25 10:16:41 +02:00
9eee6bc0a1
usbdev: Fix spelling mistakes
2019-10-23 10:36:49 +02:00
679a07833b
drivers/bmp180: fix potentially use of uninitialized variable
...
This was reported by scan-build
2019-10-22 19:30:12 +02:00
07a2696f5d
drivers/ata8520e: fix potentially unused variables
...
This was reported by scan-build
2019-10-22 19:19:36 +02:00
5db4310b45
Merge pull request #12481 from aabadie/pr/driver/rn2xx3_fix_sleep
...
drivers/rn2xx3: fix sleep function
2019-10-20 08:00:40 +02:00
Marian Buschsieweke
cf9c84a00d
drivers/cc110x: Use NETOPT_MAX_PDU_SIZE
...
Replaced deprecated NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE
2019-10-18 17:57:36 +02:00
Benjamin Valentin
d92e2b25ac
drivers/nrf24l01p: rename CMD_NOP -> CMD_NOOP
...
This prevents a conflict with an unrelated Atmel header file.
2019-10-17 19:20:31 +02:00
Jannes
fdd34499ac
drivers/mpu9x50: Correct read_temperature
...
Change msbiot Makefile.dep back to mpu9150
2019-10-17 14:04:43 +02:00
Jannes
2df5d6048d
driver/mpu9x50: Rename mpu9150 to mpu9x50
...
Rename all files
Rename all variables, methods and methodcalls
Rename all folders
Add to the makefiles
Add to doc
2019-10-17 12:52:18 +02:00
76267bdfea
drivers/rn2xx3: cleanup sleep function
2019-10-17 10:02:11 +02:00
Kevin "Tristate Tom" Weiss
e20ffd7f7c
Merge pull request #11738 from OTAkeys/feat/add_cme_cms_error
...
driver/at: add return code for CME/CMS errors
2019-10-15 12:55:40 +02:00
Leandro Lanzieri
bfd81c1d72
Merge pull request #12431 from benpicco/mrf24j40-fix_reset
...
drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
2019-10-14 17:21:17 +02:00
Leandro Lanzieri
0e0b6f8231
Merge pull request #12221 from benpicco/mrf24j40-init_check
...
drivers/mrf24j40: allow for basic self-test on init
2019-10-14 15:36:52 +02:00
Benjamin Valentin
38b35c513c
drivers/mrf24j40: allow for basic self-test on init
...
During production it is often desirable for devices to perform
some kind of basic self-test to isolate defects.
For this it is necessary for the initialization not to hang if a
component is faulty / not connected.
This moves an already exising self-test that was previously enabled
as a debug option to an independent compile-time configurable.
It is necessary to call this in _init() before mrf24j40_hardware_reset()
as the reset function uses xtimer_usleep() which will cause another
thread to get scheduled.
If this thread (e.g. rpl or ipv6) then tries to access the netdev, RIOT
will crash.
2019-10-14 14:50:06 +02:00
Benjamin Valentin
853bbaf5a5
drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
...
When hooking up the mrf24j40 to a bluepill board, the driver would
always get stuck on init.
Debugging revealed that it would get stuck in the mrf24j40_reset_state_machine()
function because it expects the RFSTATE to have a special value after reset.
However, the data sheet does not mention this in section 3.1 Reset.
Waiting 192µs should be enough - the value of the RFSTATE is not specified.
The Linux driver also does not wait for the RFSTATE register.
And even without the loop, the driver is functioning fine.
2019-10-11 23:01:54 +02:00
63a6bcd513
drivers/sx127x: skip reset sequence if pin is undefined
2019-10-09 15:07:23 +02:00
Peter Kietzmann
ed75d639d5
Merge pull request #12287 from Ilmu011/kw2xrf_tmr3_acktmout
...
drivers/kw2xrf: Use TMR3 instead TMR4 to detect ACK timeout
2019-10-02 23:10:11 +08:00
Adem-Can Agdas
d74570fae3
drivers/kw2xrf: use TMR3 instead TMR4 to detect ACK timeout
2019-10-02 15:09:18 +02:00
benpicco
0778774656
Merge pull request #12260 from JannesVolkens/opt3001
...
drivers/opt3001: Initial support for the Opt3001 sensor
2019-10-02 12:11:47 +02:00
benpicco
69d274d87b
Merge pull request #12290 from benpicco/opt_driver_lis2dh12i2c
...
drivers/lis2dh12: add I2C mode
2019-10-02 12:06:40 +02:00
Hauke Petersen
8a69e4ac69
drivers/lis2dh12: added I2C mode
2019-10-02 11:16:39 +02:00
Jannes
33a98100a9
drivers/opt3001: Initial support
2019-10-02 10:06:28 +02:00
Hauke Petersen
7f419f4381
periph/uart: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
0cd8bb47c8
periph/timer: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
4914e6484a
periph/spi: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
44c54c2ae0
periph/rtt: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
bf5ad17b9d
periph/rtc: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
711af7cc27
periph/hwrng.h: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
3e9ee01103
periph/gpio: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
e71f0bb0c6
periph/flashpage: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
8ef4f0d134
periph/dac.h: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
348b337023
periph/cpuid: add doc on low power implications
2019-10-01 23:09:23 +02:00
Hauke Petersen
f361ebc0bd
periph/adc: add doc on low power implications
2019-10-01 23:09:23 +02:00
Gunar Schorcht
02d81b717e
Merge pull request #12063 from maribu/i2c_release
...
drivers/periph/i2c: Updated i2c_release() to return void
2019-10-01 19:50:38 +02:00
Benjamin Valentin
0bb04cfd27
drivers/mrf24j40: add pseudomodules for MRF24J40MA/C/D/E
...
Microchip offers ready-to-use modules with the mrf24j40 chip.
All but the MRF24J40MA integrate an external PA/LNA, they also come
with an RF shield.
If the PA/LNA is not enabled, the signal off these modules is really
poor.
This adds pseudomodules so that the PA/LNA is automatically enabled
when the appropriate module is used.
2019-09-28 19:30:52 +02:00
Benjamin Valentin
c31e373214
shell_commands: gnrc_netif: only include LoRA options when LoRA PHY is present
...
If no LoRA module is used, there is no use in compiling in all the config options
for LoRA PHYs.
This saves about 1k of .text
2019-09-24 17:14:03 +02:00
benpicco
d5c272ed86
Merge pull request #12199 from smlng/fix_timer_returns
...
periph/timer: Fix return codes of timer API
2019-09-17 23:04:46 +02:00
benpicco
6c95081e42
Merge pull request #10556 from gschorcht/drivers_pca9685
...
drivers: support for NXP PCA9685 I2C 16-channel, 12-bit PWM controller
2019-09-15 19:20:29 +02:00
aed12b4853
Merge pull request #11252 from fjmolinas/pr_wdg_stm32
...
cpu/stm32_common: add watchdog for stm32
2019-09-13 09:16:18 +02:00
Dylan Laduranty
513b767694
Merge pull request #11944 from benpicco/spi_doc-fix
...
drivers/include/periph/spi: fix documentation
2019-09-12 21:28:21 +02:00
Schorcht
f93f9b7790
drivers: support for PCA9685 PWMs
2019-09-12 19:11:52 +02:00
Francisco Molina
8bd34c4ba3
drivers/periph_common: init wdt if HAS_WDT_INIT
2019-09-12 17:45:31 +02:00
Francisco Molina
cb876297a8
drivers/periph: include periph_cpu.h in wdt.h
2019-09-12 17:45:31 +02:00
Benjamin Valentin
fa9e9064cf
periph_common/rtc: add rtc_tm_normalize()
2019-09-12 11:32:08 +02:00
Francisco Acosta
092f8e8d46
Merge pull request #8774 from OTAkeys/pr/flashpage_mtd
...
drivers: add mtd wrapper for periph_flashpage
2019-09-11 16:59:15 +02:00
Sebastian Meiling
ed5f085b30
periph/timer: always return 0 for success
...
Change documentation on return codes in periph/timer API to
return 0 on success and (-1) on error by default.
For timer_init this was already the case, but for timer_set,
timer_set_absolute, and timer_clear this is now changed
from 1 to 0 for success, while error remains (-1).
2019-09-11 13:31:13 +02:00
Marian Buschsieweke
b87ab96d17
Merge pull request #10661 from miri64/gnrc_netif_hdr/enh/netif_setter
...
gnrc_netif_hdr: add setter for netif
2019-09-10 16:14:28 +02:00
Vincent Dupont
7c8a3eae71
drivers/mtd: improve mtd API doc
2019-09-10 13:26:05 +02:00
Vincent Dupont
f3d2f53287
drivers: add mtd_flashpage driver
...
This is a MTD wrapper for flashpage internal flash
2019-09-10 13:26:05 +02:00
Marian Buschsieweke
bb739907a2
drivers/cc110x: Allow setting the default channel
...
This (re-)introduces the `CC110X_DEFAULT_CHANNEL` preprocessor macro to set the
default channel of the `cc110x` at compile time. The same macro has been used
in the previous version of the driver, so some users might still expect it to
work.
2019-09-10 10:04:51 +02:00
Leandro Lanzieri
563a053bc1
Merge pull request #10983 from skullbox305/driver_ph_oem
...
drivers/ph_oem: support for Atlas Scientific pH OEM sensor
2019-09-09 10:18:49 +02:00
Marian Buschsieweke
84acc746dc
drivers/cc110x: Added missing Doxygen comments
...
The current stable Doxygen release should no longer complain now
2019-09-06 09:10:38 +02:00
Marian Buschsieweke
b389a9c5fa
drivers/cc110x: Fixed broken Doxygen grouping
...
The header files of the CC110x contained two Doxygen "end of doc group" (@})
commands. This PR makes sure they are balanced again.
2019-09-06 08:53:40 +02:00
Igor Knippenberg
61d0970939
drivers/saul: Added pH
...
- added device class SAUL_SENSE_PH in saul.h
- added stringification SAUL_SENSE_PH in saul_str.c
2019-09-05 12:47:10 +02:00
Igor Knippenberg
ead03d4a08
drivers/ph_oem: Initial implementation of the pH OEM sensor
...
The Atlas Scientific pH OEM sensor is a small circuit to be embedded in
end products to measure the pH value with any commercially available pH
electrode
2019-09-05 12:47:10 +02:00
Marian Buschsieweke
3da3280930
driver/cc110x: Fixed indent/alignment in doc
...
The Doxygen documentation blocks have not been correctly aligned. This commit
fixes this.
2019-09-04 13:15:15 +02:00
fabian18
2edf153cf8
drivers/at86rf2xx: do not hang on no dev
2019-09-02 10:27:24 +02:00
Martine Lenders
69eb7069e9
gnrc_xbee: use gnrc_netif_hdr_set_netif()
2019-08-29 14:51:45 +02:00
Rotzbua
5a8bac399c
drivers/ccs811: sys/hashes: fix typo usefull -> useful
2019-08-25 21:27:55 +02:00
Kevin "Tristate Tom" Weiss
1b1c902dd3
Merge pull request #12022 from JannesVolkens/tmp00x
...
driver/tmp00x: make tmp006 more generic
2019-08-23 13:26:09 +02:00
Jannes
90c4ef04ef
driver/tmp00x: Change tmp006 to tmp00x and add tmp007
...
Rename TMP006 to TMP00x
Add TMP007 sensor support to TMP00X
Change uint8_t reg to uint16_t
Add to doxygen documentation group
Expose compile time configurations
Move defines from .c to .h
Change double to float, because double is not needed
Add TMP007 register information
2019-08-23 12:11:16 +02:00
Marian Buschsieweke
5bba339a7c
drivers/periph/i2c: Fixed i2c_release() signature
...
i2c_release() should not have a return value, as:
- There is no reasonable error handling possible by the caller, so there is no
value in indicating success/failure via the return value to the caller
- There is no legitimate reason to fail *unless* an invalid I2C bus was released
or an I2C bus that was not previously acquired was released
--> This would indicate a bug in the code and should be tackled by an
assert()
2019-08-22 12:02:01 +02:00
Vincent Dupont
42c5c40da9
ncv7356: add driver for ncv7356 SW CAN transceiver
2019-08-21 11:05:51 +02:00
Marian Buschsieweke
ccf713c5ad
drivers/cc1xxx_common: L2 netstats & cleanups
...
- Added required logic to provide correct L2 netstats when the module
netstats_l2 is used.
- Refactored code to use gnrc_netif_hdr_set_netif() over manually setting the
pid to ease future refactoring.
2019-08-20 16:40:00 +02:00
Marian Buschsieweke
972367432a
drivers/cc110x: Rewrite of the cc110x driver
...
The cc110x driver has been re-written from scratch to overcome the limitations
of the old driver. The main motivation of the rewrite was to achieve better
maintainability by a detailed documentation, reduce the complexity and the
overhead of the SPI communication with the device, and to allow to
simultaneously use transceivers with different configuration regarding the used
base band, the channel bandwidth, the modulation rate, and the channel map.
Features of this driver include:
- Support for the CC1100, CC1101, and the CC1100e sub-gigahertz transceivers.
- Detailed documentation of every aspect of this driver.
- An easy to use configuration API that allows setting the transceiver
configuration (modulation rate, channel bandwidth, base frequency) and the
channel map.
- Fast channel hopping by pre-calibration of the channels during device
configuration (so that no calibration is needed during hopping).
- Simplified SPI communication: Only during start-up the MCU has to wait
for the transceiver to be ready (for the power regulators and the crystal
to stabilize). The old driver did this for every SPI transfer, which
resulted in complex communication code. This driver will wait on start up
for the transceiver to power up and then use RIOT's SPI API like every other
driver. (Not only the data sheet states that this is fine, it also proved to
be reliable in practise.)
- Greatly reduced latency: The RTT on the old driver (@150 kbps data rate) was
about 16ms, the new driver (@250 kbps data rate) has as RTT of ~3ms
(depending on SPI clock and on CPU performance) (measured with ping6).
- Increased reliability: The preamble size and the sync word size have been
doubled compared to the old driver (preamble: 8 bytes instead of 4,
sync word: 4 byte instead of 2). The new values are the once recommended by
the data sheet for reliable communication.
- Basic diagnostic during driver initialization to detect common issues as
SPI communication issues and GDO pin configuration/wiring issues.
- TX power configuration with netdev_driver_t::set() API-integration
- Calls to netdev_driver_t::send() block until the transmission has completed
to ease the use of the API (implemented without busy waiting, so that the
MCU can enter lower power states or other threads can be executed).
2019-08-20 16:32:11 +02:00
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
...
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
fabian18
2c001f5a6c
drivers/include/periph/eeprom: Changed uint8_t* to void* in API
2019-08-09 17:27:32 +02:00
Benjamin Valentin
9d6d93ef2f
drivers: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
cf2228e23e
drivers/periph_wdt: cleanup normal mode inline example
...
Remove a useless blankline
2019-08-05 21:48:10 +02:00
bd1eb6e285
drivers/periph_wdt: fix inline callback example
...
Function was renamed to wdt_setup_reboot_with_callback
2019-08-05 21:47:25 +02:00
340c8e8236
drivers/sx127x: let sx127x driver manage spi pins GPIO modes
2019-08-05 16:46:41 +02:00
e42307188c
drivers/spi: extend API with updatable gpio mode on pins
2019-08-05 16:46:41 +02:00
Benjamin Valentin
870f5a5a0b
drivers/include/periph/spi: fix documentation
...
spi_transfer_reg() will *always* send out a byte, even if the byte is '0'.
fixes #11763
2019-07-31 13:27:47 +02:00
Leandro Lanzieri
92a5f7cee3
Merge pull request #11658 from aabadie/pr/drivers/rn2xx3_fix_cmd_append
...
drivers/rn2xx3: fix incorrectly terminated hex strings when writing an array of bytes
2019-07-30 21:03:31 +02:00
Martine Lenders
007de266d3
Merge pull request #11926 from miri64/gnrc_cc110x/enh/use-netif-setter
...
gnrc_cc110x: use gnrc_netif_hdr_set_netif()
2019-07-30 19:57:30 +02:00
Marian Buschsieweke
8cbf636781
drivers/dht: Fixed magic numbers & missing doc
...
- Replaced magic number by preprocessor macros and documented them
- Added comment to explain why DHT21 is not part of the switch() expression
2019-07-29 10:39:50 +02:00
Marian Buschsieweke
579a67be03
drivers/dht: Move hold logic from SAUL to driver
...
The DHT11/DHT21/DHT22 cannot be sampled more than once a second. Previously,
a global cache was added to the SAUL adaption of the dht driver to answer with
stored values for one second after the last read. This however had two
disadvantages:
- The global cache was shared for all DHTXX devices connected. As a result
incorrect values were delivered when reading out multiple sensors over SAUL
with less than 1 second delay in between
- A user of the low level API will had to implement the same caching strategy,
resulting in code duplication
By moving the hold logic to the driver, both limitations can be overcome.
2019-07-29 10:39:50 +02:00
Martine S. Lenders
d129382484
gnrc_cc110x: use gnrc_netif_hdr_set_netif()
2019-07-26 15:34:08 +02:00
Marian Buschsieweke
d2d83c3bd0
drivers/dht: Fixed assert on uninitialized data
...
Instead of asserting that parameters are valid, dht_init() contained an assert
on uninitialized data. This commit fixes that assert
2019-07-19 16:14:29 +02:00
Marian Buschsieweke
c75bacceba
drivers/dht: Added error handling
...
Previously the DHT11/DHT21/DHT22 driver ended up in an infinite loop locking up
RIOT when a communication error occurred. This commit adds a simple timeout to
the communication in order to prevent these lock ups.
2019-07-19 15:57:49 +02:00
f8128844b7
Merge pull request #11527 from fjmolinas/pr_wdg_hdr
...
drivers/include: add header definition for wdt
2019-07-16 14:25:40 +02:00