1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

3183 Commits

Author SHA1 Message Date
Marian Buschsieweke
e5a0154255
Merge pull request #14660 from maribu/netdev_confirm_send
drivers/net: Add netdev_driver_t::confirm_send
2021-01-05 16:11:20 +01:00
Marian Buschsieweke
53fcb97b2f
drivers/net: Add netdev_driver_t::confirm_send
Changed the API of `netdev_driver_t`:

- The `send()` function should no longer return the number of bytes and should
  not block
- The upper layer now must call the new `confirm_send()` function after
  calling `send()`; either busy waiting until something different to `-EBUSY`
  is returned, or after `NETDEV_EVENT_TX_COMPLETE` was signaled

During transition to the new API, the upper layer must remain backward
compatible and must assume the legacy API if `netdev_driver_t::confirm_send()`
is `NULL`.
2021-01-05 15:34:11 +01:00
Leandro Lanzieri
675ddb6ccc
drivers/pn532: use pseudomodules to select i2c or spi 2021-01-04 16:55:16 +01:00
Jens Wetterich
e36a0d883a esp_common/esp_now: use netdev_register() 2020-12-23 19:44:57 +01:00
benpicco
770bda165a
Merge pull request #15571 from iosabi/drv_si1133
drivers/si1133: New SI1133 UV/IR/Ambient light driver
2020-12-14 08:41:00 +01:00
iosabi
ce76125a22 drivers/si1133: New SI1133 UV/IR/Ambient light driver
The SI1133 from Silicon Labs is a UV Index Sensor and Ambient Light
Sensor in a small 2x2 mm DFN package. The sensor can measure
independently ultra violet (UV) light, infra red (IR) light and
ambient light, however the ambient light is also influenced by the
IR light requiring compensation from the IR readings.

The SI1133 is quite different from other Silicon Labs chips in RIOT OS
and therefore needs its own driver. In particular, the SI1133 has 7
different photodiode configurations to read but only 6 channels to
read them in parallel so only some channels can be read each time.

This patch implements a new driver allowing to read the data directly
and a saul interface for the three kinds of light source. There are
many configuration options including interrupts and continous modes
that are left out of this initial driver.
2020-12-14 03:13:23 +00:00
dylad
7cbaa3f890 net/netdev: create SAM0 Ethernet entry in netdev_type_t 2020-12-13 21:41:20 +01:00
Benjamin Valentin
79c75300b1 drivers/mtd_spi_nor: enter 4-byte address mode needs write enable 2020-12-12 18:36:16 +01:00
chrysn
272c8d29cc
Merge pull request #13908 from benpicco/periph/dac_play
drivers/periph_common: dac: add dac_play()
2020-12-11 07:31:44 +01:00
benpicco
1477a340fe
Merge pull request #15150 from fabian18/ieee802154_security
Initial implementation of IEEE 802.15.4 security
2020-12-09 14:14:27 +01:00
Martine Lenders
1feacd1b88
Merge pull request #15583 from benpicco/byteorder_htols
drivers, sys: use byteorder_htols()
2020-12-08 20:15:19 +01:00
Leandro Lanzieri
06a06c32e3
Merge pull request #15573 from akshaim/Kconfig_rn2xx3_update
drivers/rn2xx3 : Kconfig updates.
2020-12-08 15:20:25 +01:00
Benjamin Valentin
7a7ebb1d5b drivers/mrf24j40: use byteorder_htols()
same as 374d032b82
2020-12-08 13:40:57 +01:00
Benjamin Valentin
26bcaf94b5 drivers/at86rf2xx: use byteorder_htols()
same as 374d032b82
2020-12-08 13:40:24 +01:00
Akshai M
95394c4ba7 drivers/rn2xx3 : Update Kconfig
Expose CONFIG_RN2XX3_DEFAULT_AR to Kconfig
2020-12-08 11:34:03 +01:00
Akshai M
bfd3a903fb drivers/rn2xx3 : r/LORAMAC_DEFAULT_AR/CONFIG_RN2XX3_DEFAULT_AR
Move 'LORAMAC_DEFAULT_AR' to drivers/rn2xx3 i.e
'RN2XX3_DEFAULT_AR'
Move 'RN2XX3_DEFAULT_AR' to 'CONFIG_' namespace

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-12-08 11:33:44 +01:00
Francisco
d0082c6e48
Merge pull request #15561 from leandrolanzieri/pr/kconfig/drivers_bmx280_itg320x/fix_deps
drivers/{bmx280, itg320x}: fix Kconfig deps
2020-12-08 10:12:57 +01:00
Benjamin Valentin
ceb3f8443a drivers/dac_dds: add module to play sample buffer over a DAC
This adds an API function to play a buffer of Audio samples using a DAC.

Double buffered operation is supported by specifying a callback that will
be called when the next buffer can be queued with dac_dds_play().
2020-12-04 23:12:32 +01:00
Leandro Lanzieri
792ea6efce
drivers/itg320x/kconfig: fix interrupt submodule dependency 2020-12-04 11:36:15 +01:00
Leandro Lanzieri
7d02037f87
drivers/bmx280/kconfig: show module only while testing Kconfig deps 2020-12-04 11:36:15 +01:00
Fabian Hüßler
f074e8a635 drivers/at86rf2xx: Use hardware security for IEEE 802.15.4 security 2020-12-04 09:40:55 +01:00
Fabian Hüßler
1b5bcec554 drivers/netdev: Add IEEE 802.15.4 security 2020-12-04 09:40:55 +01:00
Akshai M
d65a4b3f97 drivers/ili9341 : Update documentation 2020-12-03 14:20:34 +01:00
Akshai M
64ddd8384e drivers/ili9341 : Expose to Kconfig
Group display drivers in menuconfig.
2020-12-03 14:20:34 +01:00
Akshai M
9f81956e41 drivers/ili9341 : Model 'CONFIG_ILI9341_LE_MODE' as BOOL 2020-12-03 14:20:34 +01:00
Akshai M
a322c6d4c0 drivers/ili9341 : Move 'ILI9341_VCOML' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
Akshai M
d6935cd7bb drivers/ili9341 : Move 'ILI9341_VCOMH' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
Akshai M
7bb83f9e01 drivers/ili9341 : Move 'ILI9341_GVDD' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
benpicco
a80631a297
Merge pull request #15074 from maribu/ptp-clock
drivers/periph/ptp_clock
2020-12-03 09:59:07 +01:00
Marian Buschsieweke
7d1edd51f4
drivers/periph: Added PTP clock API 2020-12-02 17:53:00 +01:00
benpicco
665c07eb53
Merge pull request #15120 from benpicco/driver/at86rf215-trim
driver/at86rf215: add functions to configure trim & clock output at run-time
2020-12-02 16:53:02 +01:00
Benjamin Valentin
95d082a2be driver/at86rf215: add functions to set trim & clock output at run-time
To calibrate the at86rf215 radio, trim value has to be set at run-time
during board production.
Add two helper functions to control the trim value and clock output register.
2020-12-02 14:59:17 +01:00
Leandro Lanzieri
d91e8463bb
drivers/fxos8700: add module to Kconfig 2020-12-02 10:15:01 +01:00
Leandro Lanzieri
a2d31be65b
drivers/feetech: add module to Kconfig 2020-12-02 10:15:00 +01:00
Leandro Lanzieri
af672ca01a
drivers/dynamixel: add module to Kconfig 2020-12-02 10:14:41 +01:00
Leandro Lanzieri
03e94aab1e
drivers/uart_half_duplex: add module to Kconfig 2020-12-02 10:13:50 +01:00
Leandro Lanzieri
fe2c66fd89
drivers/dsp0401: add module to Kconfig 2020-12-02 10:13:11 +01:00
Leandro Lanzieri
2b70d7ab31
drivers/ds3234: add module to Kconfig 2020-12-02 10:13:11 +01:00
Leandro Lanzieri
480840e209
drivers/ds3231: add module to Kconfig 2020-12-02 10:13:11 +01:00
Leandro Lanzieri
53b5f6dac9
drivers/ds1307: add module to Kconfig 2020-12-02 10:13:11 +01:00
Leandro Lanzieri
05e79ed86d
drivers/ds75lx: add module to Kconfig 2020-12-02 10:13:11 +01:00
Leandro Lanzieri
0eb1f03c45
drivers/ds18: add module to Kconfig 2020-12-02 10:13:10 +01:00
Leandro Lanzieri
895be48336
drivers/disp_dev: add module to Kconfig 2020-12-02 10:13:10 +01:00
Leandro Lanzieri
789a197cee
drivers/dht: add module to Kconfig 2020-12-02 10:13:10 +01:00
Leandro Lanzieri
a0f8ad9e8c
drivers/dfplayer: add module to Kconfig 2020-12-02 10:13:08 +01:00
Leandro Lanzieri
d7e9b242e9
drivers/dcf77: add module to Kconfig 2020-12-02 10:12:16 +01:00
Leandro Lanzieri
92b54ecf94
drivers/edbg_eui: add module to Kconfig 2020-12-02 10:12:12 +01:00
Francisco
c9720d16ca
Merge pull request #15515 from leandrolanzieri/pr/kconfig/drivers_ghij
drivers/{g,h,i,j}*: add Kconfig modules
2020-12-02 10:03:02 +01:00
Marian Buschsieweke
5c70345aa6
Merge pull request #15537 from fabian18/sx127x_netdev_register
drivers/sx127x: use netdev_register()
2020-12-01 21:38:38 +01:00
benpicco
ef0eb9044b
Merge pull request #14954 from benpicco/drivers/at86rf215-netif_pktq
drivers/at86rf215: make use of packet queue if available
2020-12-01 17:59:06 +01:00
Fabian Hüßler
c526a34770 sx127x: make use of netdev_register()
Call netdev_register() in sx127x_setup()
and pass the index in auto_init_sx127x()
and semtech_loramac_init()
2020-12-01 16:34:11 +01:00
Fabian Hüßler
8ca2e09d95 drivers/include: add NETDEV_SX127X 2020-12-01 16:34:06 +01:00
Marian Buschsieweke
56cf30172f
Merge pull request #15532 from fabian18/cc110x_netdev_register
drivers/cc110x: use netdev_register
2020-12-01 16:17:37 +01:00
Benjamin Valentin
7fc042e2a9 drivers/at86rf215: use non-blocking send if gnrc_netif_pktq is active 2020-12-01 16:04:09 +01:00
Fabian Hüßler
39adf908ce cc110x: make use of netdev_register()
Call netdev_register() in cc110x_setup()
and pass the index in auto_init_cc110x()
2020-12-01 12:11:20 +01:00
Fabian Hüßler
320b1c4206 drivers/include: add NETDEV_CC110X 2020-12-01 12:06:12 +01:00
Benjamin Valentin
eb199d4c78 netdev: move definition of NETDEV_INDEX_ANY to netdev 2020-12-01 11:55:06 +01:00
benpicco
333fce44b4
Merge pull request #14973 from benpicco/driver/at86rf215-batmon
drivers/at86rf215: implement battery monitor, add power bus
2020-12-01 11:52:46 +01:00
Benjamin Valentin
a28a60f16c cpu/stm32: periph_eth: register with netdev 2020-11-29 23:10:37 +01:00
Leandro Lanzieri
c74b2ac242
drivers/jc42: add module Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
83e1d43009
drivers/itg320x: add modules to Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
db82f7a5e2
drivers/isl29125: add module to Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
4e99411f2b
drivers/isl29020: add module to Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
9c8212c14e
drivers/io1_xplained: add module to Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
64c2594dee
drivers/sdcard_spi: add module to Kconfig 2020-11-27 09:20:08 +01:00
Leandro Lanzieri
18c21fb22d
drivers/ina3221: add modules to Kconfig 2020-11-27 09:20:07 +01:00
Leandro Lanzieri
c5ce7e60b5
drivers/ina2xx: add modules to Kconfig 2020-11-27 09:20:07 +01:00
Leandro Lanzieri
c964891d20
drivers/ili9341: add module to Kconfig 2020-11-27 09:20:07 +01:00
Leandro Lanzieri
4fa930dbdd
drivers/hts221: add module to Kconfig 2020-11-27 09:20:07 +01:00
Leandro Lanzieri
4a65b13db2
drivers/hmc5883l: add module to Kconfig 2020-11-27 09:20:07 +01:00
Leandro Lanzieri
3744996a97
drivers/hih6130: add module to Kconfig 2020-11-27 09:20:06 +01:00
Leandro Lanzieri
1dbe39c8ba
drivers/hdc1000: add module to Kconfig 2020-11-27 09:20:06 +01:00
Leandro Lanzieri
3604ac3a69
drivers/hd44780: add module to Kconfig 2020-11-27 09:20:06 +01:00
Leandro Lanzieri
e8180566eb
drivers/my9221: add module to Kconfig 2020-11-27 09:20:06 +01:00
Leandro Lanzieri
39d9a592cb
drivers/gp2y10xx: add module to Kconfig 2020-11-27 09:20:05 +01:00
Leandro Lanzieri
bdd3d98477
drivers/grove_ledbar: add module to Kconfig 2020-11-27 09:20:05 +01:00
Francisco
14877443f7
Merge pull request #15494 from gdiribarne/bugfix/sfr04-avr-overflow
drivers/srf04: fix overflow on AVR
2020-11-26 11:14:15 +01:00
Francisco
47ed64fcfd
Merge pull request #15466 from leandrolanzieri/pr/kconfig_drivers_bc
drivers/{b,c}*: model modules in Kconfig
2020-11-26 10:44:28 +01:00
1d5e2e9cd9 all: remove traces of kernel_types.h
Automatically removed using:

    $ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
2020-11-25 17:52:34 +01:00
Leandro Lanzieri
bf2486a195
drivers/ccs811: add modules to Kconfig 2020-11-25 12:00:39 +01:00
Leandro Lanzieri
dd2e299ce5
drivers/can_trx: add module to Kconfig 2020-11-25 12:00:37 +01:00
Leandro Lanzieri
0494e18a58
drivers/bmx280: add modules to Kconfig 2020-11-25 12:00:14 +01:00
Leandro Lanzieri
008582aa6f
drivers/bmx055: add module to Kconfig 2020-11-25 12:00:14 +01:00
Leandro Lanzieri
2407c18890
drivers/saul: add modules to Kconfig 2020-11-25 12:00:13 +01:00
Leandro Lanzieri
283b1f015d
drivers/periph_common: add temperature peripheral to Kconfig 2020-11-25 12:00:13 +01:00
Leandro Lanzieri
2547880f3a
drivers/bmp180: add module to Kconfig 2020-11-25 12:00:13 +01:00
Leandro Lanzieri
18c937ab69
{drivers/pkg}: add bm680 to Kconfig 2020-11-25 12:00:13 +01:00
Leandro Lanzieri
b2aa5332bf
drivers/bh1900nux: add module to Kconfig 2020-11-25 12:00:12 +01:00
Leandro Lanzieri
e29657dfd2
drivers/bh1750fvi: add module to Kconfig 2020-11-25 12:00:03 +01:00
Jean Pierre Dudey
30134eaaab drivers/itg320x: pass arg to gpio_init_int
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-11-24 17:22:47 +01:00
benpicco
b3b07e4e33
Merge pull request #15481 from kaspar030/refactor_thread_defines
core: move scheduler defines
2020-11-23 17:56:09 +01:00
0b801c4de0 all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
Gilles Diribarne
5a5c8507d4 drivers/sfr04: Use uncrustify 2020-11-22 23:12:40 +01:00
Gilles Diribarne
caa1ad822d drivers/sfr04: Fixed int overflow for AVR (arduino board) 2020-11-22 23:03:21 +01:00
Leandro Lanzieri
93dad87fbf
drivers/ata8520e: add module to Kconfig 2020-11-18 18:38:50 +01:00
Leandro Lanzieri
e3eb807361
drivers/at30tse75x: add module to Kconfig 2020-11-18 18:38:50 +01:00
Leandro Lanzieri
c94216bb7b
drivers/at25xxx: add modules to Kconfig 2020-11-18 18:38:50 +01:00
Leandro Lanzieri
f1028dfe85
drivers/at24mac: add module to Kconfig 2020-11-18 18:38:49 +01:00
Leandro Lanzieri
4d35b803c4
drivers/at24cxx: add modules to Kconfig 2020-11-18 18:38:49 +01:00
Leandro Lanzieri
8abd8bc3d4
drivers/mtd: add module to Kconfig 2020-11-18 18:38:49 +01:00
Leandro Lanzieri
024b70cbe1
drivers/at: add modules to Kconfig 2020-11-18 18:38:48 +01:00
Leandro Lanzieri
bb5370592d
drivers/apds99xx: add module to Kconfig 2020-11-18 18:38:48 +01:00
Leandro Lanzieri
d1127bbb94
drivers/apa102: add module to Kconfig 2020-11-18 18:38:48 +01:00
Leandro Lanzieri
1dfb66dbe8
drivers/aip31068: add module to Kconfig 2020-11-18 18:38:47 +01:00
Leandro Lanzieri
a08fa462fa
drivers/adxl345: add module to Kconfig 2020-11-18 18:38:47 +01:00
Leandro Lanzieri
1ff7e6ffac
drivers/adt7310: add module to Kconfig 2020-11-18 18:38:47 +01:00
Leandro Lanzieri
0dda4863ed
drivers/ads101x: add module to Kconfig 2020-11-18 18:38:46 +01:00
Leandro Lanzieri
6eecaef9dc
drivers/adcxx1c: add module to Kconfig 2020-11-18 18:38:46 +01:00
Leandro Lanzieri
e192857ee8
drivers/ad7746: add module to Kconfig 2020-11-18 18:38:46 +01:00
Bas Stottelaar
34c252d0e6
Merge pull request #15461 from basilfx/feature/efm32_driver_coretemp
cpu/efm32: add coretemp driver
2020-11-18 15:08:29 +01:00
e322bfbd47
Merge pull request #15421 from leandrolanzieri/pr/kconfig/native/hello_world
Kconfig: add modules to test on native
2020-11-18 15:02:34 +01:00
Bas Stottelaar
e3b15a4cc4 drivers/saul: add auto init for efm32_coretemp 2020-11-18 12:28:45 +01:00
Leandro Lanzieri
2306516d0d
drivers/periph_common: add CPU specific RTC Kconfig 2020-11-18 10:08:00 +01:00
Leandro Lanzieri
1d1a96fb8a
drivers/periph_common/kconfig.gpio: include CPU configs 2020-11-18 10:07:59 +01:00
benpicco
6cf6b47c27
Merge pull request #15445 from btcven/2020_11_05-gp2y10xx
drivers: add gp2y10xx dust sensor
2020-11-18 09:56:03 +01:00
Jean Pierre Dudey
e920a2e645 drivers: add gp2y10xx dust sensor
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-11-18 09:13:56 +01:00
Francisco
fe510cd823
Merge pull request #15439 from leandrolanzieri/pr/drivers/network_devices_remove_netif_dep
drivers/network devices: remove unused netif dependency
2020-11-17 12:06:18 +01:00
dad5ca3276
Merge pull request #14953 from benpicco/drivers/mtd_mapper-pagewise
mtd_mapper: implement pagewise functions
2020-11-17 11:46:52 +01:00
5d99793bf8
Merge pull request #15431 from haukepetersen/fix_periphrtt_tickconversion
periph/rtt: fix overflow in tick conversion macros
2020-11-17 11:07:00 +01:00
Hauke Petersen
c4a8c45a3e periph/rtt: fix tick conversion macros 2020-11-16 10:00:24 +01:00
Benjamin Valentin
72d0d4c6d7 drivers/at86rf215: fix dependency resolution for 2.4 GHz
With the last cleanup an error sneaked in:
Now the 2.4 GHz interface is disabled, when the `at86rf215m` module
(chip with sub-GHz radio only) is *not* used.

This is the reverse of what should happen.
2020-11-15 16:34:57 +01:00
Benjamin Valentin
f9650bdbc3 drivers/at86rf215: implement Battery Monitor 2020-11-13 22:59:09 +01:00
benpicco
be9eb22bb8
Merge pull request #15106 from chrysn-pull-requests/saul-rgbleds
saul_pwm: auto-init'able RGB LEDs and dimmers
2020-11-13 18:22:30 +01:00
Leandro Lanzieri
90d664e7fd
drivers/mrf24j40: remove unneeded GNRC header inclusion 2020-11-13 09:28:52 +01:00
Leandro Lanzieri
0e52e2747e
drivers: remove netif as dependency for network device drivers 2020-11-13 09:25:59 +01:00
benpicco
d9598a0f54
Merge pull request #15412 from bergzand/pr/flashpage/merge_raw
periph_flashpage: Make pagewise API optional
2020-11-12 22:32:21 +01:00
3aa5203bc5
mtd_flashpage: only depend on periph_flashpage
The features in flashpage_raw are now default in flashpage and do not
have to be included as a separate dependency
2020-11-11 23:16:43 +01:00
41bbaa7442
flashpage: Make pagewise API optional
flashpage currently requires pagewise implementation with an optional
extension for per block writes (flashpage_raw). Most implementations
with flashpage_raw implement the pagewise access via the flashpage_raw
functions. This commit makes the flashpage raw the main access method
and adds an extension feature for the pagewise access.

The functions and defines are renamed to reflect this. The API is also
extended with a dedicated function for erasing a sector.
2020-11-11 22:26:33 +01:00
Hauke Petersen
8a31519558 drivers: add support for ds3231 RTC 2020-11-09 15:18:54 +01:00
Leandro Lanzieri
8b74702c7e
drivers/periph_common: add gpio_fast_read module to Kconfig 2020-11-06 15:57:59 +01:00
Leandro Lanzieri
98cc3c317a
drivers/periph_common: add LPUART module to Kconfig 2020-11-06 15:57:57 +01:00
chrysn
1b7cd3d142 drivers/saul/auto_init: Err on out-of-range input 2020-11-05 19:01:17 +01:00
Benjamin Valentin
14da3717c1 drivers/stmpe811: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
b533e08fe7 drivers/si70xx: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
1954283b34 drivers/sht2x: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
9ad6b6b857 drivers/rn2xx3: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
56763a5cc4 drivers/ph_oem: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
daae2fb9bd drivers/mhz19: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
30e7b6da74 drivers/itg320x: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
0b960ab2de drivers/ili9341: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
044e0a22fb drivers/dsp0401: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
9050fcb547 drivers/ds75lx: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
e2cf95b0a9 drivers/dht: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
04114c3d83 drivers/dfplayer: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
6dbc5fea3a drivers/bme680: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
fd102efea8 drivers/atwinc15x0: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
5b3829845d drivers/ata8520e: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
58d90e252d drivers/aip31068: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Benjamin Valentin
908833a44e drivers/ad7746: convert to xtimer_msleep() 2020-11-05 11:32:41 +01:00
Francisco
78bdf7d274
Merge pull request #15213 from HendrikVE/pr/driver/pca9633-bitarithm
drivers/pca9633: use bitarithm
2020-11-03 16:00:52 +01:00
Francisco
3e3da1217d
Merge pull request #15249 from aabadie/pr/tools/typo
tools/codespell: fix new typos and make it fail when typos are found
2020-11-03 15:01:20 +01:00
Juergen Fitschen
a15d50dffe drivers/mtd_flashpage: fix erasure of multiple sectors 2020-11-03 12:35:43 +01:00
benpicco
9681c204d6
Merge pull request #14959 from benpicco/at86rf215-mr-fsk
drivers/at86rf215: implement MR-FSK
2020-11-03 11:26:24 +01:00
Bas Stottelaar
e8cadc02d8
Merge pull request #15285 from basilfx/feature/optimize_debug
treewide: more cleanups of ENABLE_DEBUG
2020-11-03 11:13:53 +01:00
Benjamin Valentin
a6db7d56ba drivers/at86rf215: fix CCA duration
The standard CCA backoff period is 8 symbols and only differs for
MR-O-QPSK where it is dependent on the chip rate.
2020-11-03 10:51:21 +01:00
Benjamin Valentin
6f23263503 drivers/at86rf215: implement MR-FSK 2020-11-03 10:51:21 +01:00
Bas Stottelaar
62994dfb16 drivers/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00
Bas Stottelaar
d2ce652dff drivers/*: remove unneeded ENABLE_DEBUG 2020-11-02 21:34:12 +01:00
Benjamin Valentin
98f88e849c drivers/mtd_spi_nor: check addr_width with assert() 2020-11-02 21:17:36 +01:00
Benjamin Valentin
53ca0dd1d0 drivers/mtd_spi_nor: define WP and HOLD pin
Hold and WP are not used by the driver, but if they are connected
to the flash they must be driven HIGH to enable writes and not stop
any flash operation.
2020-11-02 21:17:36 +01:00
Benjamin Valentin
dee3ae4ab7 drivers/mtd_spi_nor: enable 32 bit addressing 2020-11-02 17:03:34 +01:00
benpicco
e77d12da26
Merge pull request #15188 from benpicco/drivers/kw41zrf-register
drivers/kw41zrf: register with netdev
2020-10-31 14:30:00 +01:00
Marian Buschsieweke
125c892c03
drivers/periph/timer: Use uint32_t for frequency
For all currently supported platforms `unsigned long` is 32 bit in width. But
better use `uint32_t` to be safe.
2020-10-30 22:02:12 +01:00
nagrawal
f50da0a27d drivers/sdp3x: Corrected improper comments for internal functions 2020-10-29 12:42:51 +01:00
cd3ee9e825
drivers/mii: fix typo 'auto-negotation' => 'auto-negotiation' 2020-10-27 10:33:48 +01:00
Benjamin Valentin
fde3026312 drivers/mtd_spi_nor: prevent data corruption on 'sector erase'
There is no difference between 4k erase and sector erase.
But sector erase would previously do `.block_erase` which would not
erase a sector (4k) but a whole block (64k).

Fortunately all boards declare `SPI_NOR_F_SECT_4K` and all file systems
don't try to erase anything smaller, so this was never triggered.

Add an `assert(0)` to crash instead of corrupting data.
2020-10-26 13:48:26 +01:00
Benjamin Valentin
783df5990b drivers/mtd_spi_nor: do address conversion in SPI function 2020-10-26 13:02:09 +01:00
Benjamin Valentin
27cf34d836 drivers/mtd_spi_nor: introduce helper function to get SPI device 2020-10-26 13:02:09 +01:00
Benjamin Valentin
0425325260 drivers/mtd_spi_nor: use single transfer to read JEDEC ID
Just read the JEDEC ID with a single SPI transfer, there can only
be 10 banks.

This makes adaption to QSPI much simpler because now flash functions
don't call the SPI API directly anymore.
2020-10-26 13:02:09 +01:00
Benjamin Valentin
2fa208e5ed drivers/mtd_spi_nor: cleanup
- remove forward declarations
- remove useless do { … } while (0); loops
- insert whitespace
2020-10-26 13:02:09 +01:00
Bas Stottelaar
6fc3ac8371 drivers/*: remove unneeded ENABLE_DEBUG 2020-10-23 11:29:57 +02:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Bas Stottelaar
8d602435a5 drivers/*: reorder ENABLE_DEBUG after last include 2020-10-23 00:45:56 +02:00
Bas Stottelaar
26835a949f drivers/*: remove unused assert.h include 2020-10-22 11:29:27 +02:00
Bas Stottelaar
4bdfe9a254 drivers/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
Benjamin Valentin
9fb90b11f5 drivers/at86rf215: fix dependency resolution for single radio
Let the user chose `at86rf215_subghz`/`at86rf215_24ghz` if they
only want a single radio.
2020-10-21 19:38:24 +02:00
Jose Alamos
fa0dd8b5e2 netdev_ieee802154_submac: set addresses using netdev_register 2020-10-19 15:18:35 +02:00
chrysn
4687504936 drivers/saul/auto_init: Support bool and percent for dimmers
Booleans make sense for dimmers when accessed from a Sith application
that deals in absolutes.

Percent values are also a widespread interpretation of brightness
levels, and are thus supported as well.

The bit arithmetic makes sure that the arithmetic operation value / 100
* saul_pwm_resolution is done efficiently (by expression as a
multiplication followed by shifting) and accurately (by maximizing the
number of usable bits) while still being flexible both with respect to
integer sizes and to changes of saul_pwm_resolution.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:30 +02:00
chrysn
d196c7c4a6 drivers/saul/auto_init: Add PWM for LEDs
In analogy to the existing GPIO mappings, this provides (write-only)
SAUL entries for PWM'd LEDs in a single-LED (as SAUL_ACT_DIMMER) and an
RGB (as SAUL_ACT_RGB_LED) mode.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:17 +02:00
fd1057ee9f
drivers/saul: fix typo in auto_init adc function name 2020-10-16 12:33:37 +02:00
José Alamos
fc8961ec27
Merge pull request #15081 from akshaim/PR_LoRaWAN_IN_865
net/lorawan : Support for IN865 region, Improve debugging
2020-10-16 12:22:18 +02:00
Marian Buschsieweke
b145f4b0b6
sys/auto_init: auto_init_adc -> auto_init_saul_adc
Avoid confusion between peripheral device initialization and SAUL registration
by renaming `auto_init_adc()` to `auto_init_saul_adc()`.
2020-10-16 09:48:05 +02:00
benpicco
4edf5c7cbd
Merge pull request #15208 from benpicco/ieee802154_submac-etx
netdev/ieee802154_submac: add retransmission reporting
2020-10-15 14:31:54 +02:00
Benjamin Valentin
37aad4ef38 netdev/ieee802154_submac: add retransmission reporting
If we do software retransmissions, we already keep a count.
Allow to query it with `NETOPT_TX_RETRIES_NEEDED`.
2020-10-15 13:26:42 +02:00
Marian Buschsieweke
c38ca6d718
Merge pull request #15212 from miri64/gnrc_pkt/enh/pkt-list-ops
gnrc_pkt: introduce packet list operations
2020-10-15 12:13:03 +02:00
Nishchay-sopho
eb1064eef4 drivers/scd30: Add reset function to Sensirion scd30 sensor 2020-10-14 15:07:01 +02:00
Akshai M
1ef362edea drivers/sx127x : Improve debugging 2020-10-14 00:16:47 +05:30
Martine Lenders
45144fb4a4
treewide: use new gnrc_pkt API functions instead of utlist.h macros 2020-10-13 13:32:53 +02:00
Hendrik van Essen
f5c9be1e37 drivers/pca9633: make use of bitarithm.h 2020-10-12 19:02:58 +02:00
José Alamos
2de78a9862
Merge pull request #15210 from benpicco/ieee802154_submac-ack_req
netdev/ieee802154_submac: enable ACK_REQ by default
2020-10-12 16:46:48 +02:00
Benjamin Valentin
bb546835a1 netdev/ieee802154_submac: enable ACK_REQ
One of the features of the sub-MAC is to allow for ACK-handling in
software.
So enable the use of ACKs by default, just like the netdev drivers do
that support this feature in hardware.
2020-10-12 15:49:34 +02:00
Marian Buschsieweke
6294382627
cpu/stm32: Use mii.h for periph_eth
Use shared MII definitions and utilities instead own definitions.
2020-10-12 08:46:20 +02:00
Marian Buschsieweke
33d916b237
drivers/mii: Media-Independent Interface utils
Add utilities for working with Ethernet Media-Independent Interface for use by
Ethernet drivers.
2020-10-12 08:46:20 +02:00
Benjamin Valentin
b32bc3dbd1 drivers/kw41zrf: register with netdev 2020-10-08 16:19:23 +02:00
Benjamin Valentin
1afe72a5e5 drivers/enc28j60: register with netdev 2020-10-08 10:36:56 +02:00
benpicco
ab37c9fba1
Merge pull request #14949 from benpicco/drivers/mrf24j40-register
drivers/mrf24j40: register with netdev
2020-10-08 10:33:37 +02:00
Francisco
3918d714ce
Merge pull request #13624 from wosym/pr/candev_mcp2515
tests/candev: add mcp2515 + driver/mcp2515: add driver
2020-10-08 09:45:40 +02:00
Benjamin Valentin
a1d8c79a98 drivers/mrf24j40: pass long address via pointer 2020-10-07 16:39:39 +02:00
Benjamin Valentin
988ee1648f drivers/mrf24j40: register with netdev 2020-10-07 16:39:39 +02:00
Marian Buschsieweke
5b9463aca1
drivers/netdev: Clarify documentation 2020-10-06 10:48:06 +02:00
Karl Fessel
9a89b84c2c Makefile.dep: sort dependencies
move most dependencies from <RIOTBASE>/Makefile.dep to the Makefile.dep where
dependant module resides
2020-10-05 18:27:58 +02:00
Wouter Symons
757f810118 drivers/mcp2515: complete driver + adapt to 2020 RIOT API 2020-10-03 15:20:42 +02:00
Vincent Dupont
62a9929f9b mcp2515: add a driver for the mcp2515 SPI CAN controller
This driver implements the candev interface
2020-10-03 15:20:42 +02:00
Francisco
df3ab9f161
Merge pull request #15138 from aabadie/pr/dist/codespell_fixes
dist/codespell: update the list of ignored words and fix all typos
2020-10-02 12:27:12 +02:00
José Alamos
f30da14341
Merge pull request #15007 from akshaim/Kconfig_lora
net/lora : Expose configurations to Kconfig
2020-10-02 11:01:52 +02:00
03c527e24d
drivers/mtd_mci: fix typo 'suports' -> 'supports' 2020-10-02 08:06:48 +02:00
feac7dc978
drivers/pir: fix typo 'whan' -> 'when' 2020-10-02 08:06:16 +02:00
dc8d32d30e
drivers/periph/gpio: fix typo 'occured' -> 'occurred' 2020-10-02 08:05:55 +02:00
9236b6ca5c
drivers/ltc4150: fix typo 'tread' -> 'treat' 2020-10-02 08:05:31 +02:00
59297c3779
drivers/lc709203f: fix typo 'Invlid' -> 'Invalid' 2020-10-02 08:05:00 +02:00
5ef55e37d7
drivers/ina3221: fix typos
- 'measurment' -> 'measurement'
- 'enble' -> 'enable'
2020-10-02 08:04:23 +02:00
2f2eeb7a7b
drivers/at: fix typo 'correspondant' -> 'correspondent' 2020-10-02 08:03:10 +02:00
d0dadb49c0
drivers/enc28j60: fix typo 'Preamle' -> 'Preamble' 2020-10-02 08:02:45 +02:00
cb5e69c478
drivers/at86rf2xx: fix typo 'neccessary' -> 'necessary' 2020-10-02 08:01:49 +02:00
benpicco
6cb8da7813
Merge pull request #14950 from jia200x/pr/ieee802154/submac
ieee802154_submac: add initial support for common MAC sub layer
2020-10-01 11:31:52 +02:00
benpicco
f2a1043654
Merge pull request #13565 from jia200x/pr/netdev_submodule
netdev: make netdev_% variants a submodule
2020-09-30 22:55:45 +02:00
Jose Alamos
4bb77b0b2f netdev/ieee802154_submac: add compatibility layer 2020-09-30 17:25:31 +02:00
Jose Alamos
8289612529 Makefile.dep: fix netdev_register resolution 2020-09-30 16:33:39 +02:00
Akshai M
399273dba5 net/lora : Move 'LORA_PAYLOAD_LENGTH_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
889828ae87 net/lora : Model as bool 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT'
Move 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
e329588be4 net/lora : Move 'LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
acd601ebb9 net/lora : Model as bool 'LORA_FREQUENCY_HOPPING_DEFAULT'
Move 'LORA_FREQUENCY_HOPPING_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
00cc04f596 net/lora : Model as bool 'LORA_IQ_INVERTED_DEFAULT'
Move 'LORA_IQ_INVERTED_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
a161476041 net/lora : Move 'LORA_CR_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_CR_DEFAULT' to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
aaeed98277 net/lora : Move 'LORA_SF_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
349d20349d net/lora : Move 'LORA_BW_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_BW_DEFAULT" to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
979700cd45 net/lora : Move 'LORA_SYMBOL_TIMEOUT_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
de1ad1e8cf net/lora : Move 'LORA_PREAMBLE_LENGTH_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
benpicco
b2401eb73b
Merge pull request #14966 from HendrikVE/pr/driver/aip31068
driver/aip31068: add new driver
2020-09-30 15:52:52 +02:00
Hendrik van Essen
6778bf4b98 driver/aip31068: add new driver 2020-09-29 14:42:15 +02:00
Jose Alamos
413ffbb035 netdev: make netdev_% variants a submodule 2020-09-29 12:16:34 +02:00
Martine Lenders
cd8666735e
Merge pull request #15107 from benpicco/boards/samr21-xpro_edbg_eui
boards/samr21-xpro: fix reading EUI-64 from EDBG on cold boot
2020-09-29 11:04:04 +02:00
Benjamin Valentin
971c03eeb9 drivers/edbg_eui: add note on edbg startup time 2020-09-28 20:18:43 +02:00
7c029c7f43
Merge pull request #14907 from OTAkeys/pr/adcxx1c_get_alert
drivers/adcxx1c: add clear alert function
2020-09-28 13:28:15 +02:00
benpicco
a923cda323
Merge pull request #14944 from benpicco/drivers/mtd_mci
cpu/lpc23xx: add MTD wrapper for MCI driver
2020-09-25 18:22:48 +02:00
316871a4fa
Merge pull request #15068 from MrKevinWeiss/pr/dev_enum
drivers/dev_enums: Remove unused dev_enums.h
2020-09-25 17:35:21 +02:00
Benjamin Valentin
f738ac66d3 drivers/mtd_mci: add MTD wrapper for MCI driver 2020-09-25 15:26:02 +02:00
MrKevinWeiss
7893158b5a drivers/dev_enums: Remove unused dev_enums.h 2020-09-24 09:27:39 +02:00
Viktor Gal
7ea8f738fd
Add support for Adafruit Seesaw Soil moisture sensor (#14835)
drivers/seesaw_soil: Add support for Adafruit Seesaw Soil moisture sensor
2020-09-23 17:35:33 +02:00
chrysn
9295f69da4
Merge pull request #15062 from kaspar030/fix_efm32_16b_timer_set_absolute
cpu/efm32/periph/timer: fix timer_set_absolute() in 16bit case
2020-09-23 11:28:00 +02:00
chrysn
d8d56e5e3a periph/timer: Document that set_absolute is expected to wrap
Most timers are implemented this way already, and keeping (documenting)
it that way allows the generic timer_set implementation to stay as
simple as it is.
2020-09-23 10:59:18 +02:00
MrKevinWeiss
cc1c2ab811 drivers/periph: Remove unused timer enum from dev_enums 2020-09-22 16:26:01 +02:00
Francisco
bcd2b3e369
Merge pull request #14030 from benpicco/cpu/sam0_common-rtc_tamper
cpu/sam0_common: GPIO: use tamper detection to wake from Deep Sleep
2020-09-22 11:41:48 +02:00
99238370a2
drivers/lsm303dlhc: remove useless release/acquire sequence 2020-09-21 11:16:14 +02:00
55ef882860
drivers/lsm303dlhc: improve debug message during init 2020-09-21 11:16:13 +02:00
Francisco
64f6b7ffa4
Merge pull request #14702 from maribu/sched_active_thread
treewide: Fix direct access to scheduler internals
2020-09-21 09:09:59 +02:00
Benjamin Valentin
310eb4970c cpu/sam0_common: GPIO: use tamper detection to wake from Deep Sleep
On samd5x only the RTC can wake the CPU from Deep Sleep (pm modes 0 & 1).
The external interrupt controller is disabled, but we can use the tamper
detection of the RTC.

If an gpio interrupt is configured on one of the five tamper detect pins,
those can be used to wake the CPU from Deep Sleep / Hibernate.
2020-09-17 18:46:25 +02:00
benpicco
0916d34365
Merge pull request #15033 from maribu/xtimer_includes
{drivers/apds99xx, sys/net/gnrc/netreg}: Drop xtimer includes
2020-09-17 10:37:09 +02:00
José Alamos
9c130cd2fd
Merge pull request #15032 from jia200x/pr/at86rf2xx/fix_overflow
drivers/at86rf2xx: fix at86rf2xx_set_rxsensitivity
2020-09-17 10:32:06 +02:00
Marian Buschsieweke
2690b272d9
drivers/apds99xx: Fix includes
The driver does not depend on or use the xtimer module, it should therefore
not include `xtimer.h`. Same for the test, which additionally missed an
include of `mutex.h` (previously implicitly included through `xtimer.h`).
2020-09-16 19:55:22 +02:00