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

4399 Commits

Author SHA1 Message Date
Marian Buschsieweke
702c36c533
drivers/sht1x: fix doccheck
- replace auto-generated patterns with generic ones
- fix `warning: return value '\-EBADMSG' of sht1x_read has multiple
  documentation sections`
2022-09-16 11:12:27 +02:00
Marian Buschsieweke
31b40a863b
drivers/sht1x: document parameters 2022-09-16 11:12:26 +02:00
Benjamin Valentin
66153a47cf treewide: fix typos 2022-09-15 23:31:40 +02:00
Karl Fessel
da51932737 boards: add some missing whitespaces for static tests 2022-09-14 15:11:14 +02:00
Karl Fessel
05f114d0af doc: fix unbalaced grouping
- most were trivial
    - missing group close or open
    - extra space
    - no doxygen comment
- name commad might open an implicit group
    this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00
Marian Buschsieweke
b15af47f34
drivers/sdcard_spi: make 8-bit safe
- replace all `int`s and `unsigned`s with integers with fixed width
- replaced all signed integers of sizes with unsigned ones (sizes
  cannot be negative)
- made bitshifts 8-bit safe (e.g. `1 << 24` is valid on 32-bit, but
  undefined behavior on 8-bit, as a 16 bit wide `int` would be shifted
  by more than the type width)
- use `void *` / `const void *` for data buffers to ease use
2022-09-11 10:27:40 +02:00
benpicco
3e2dc46d4e
Merge pull request #18476 from benpicco/drivers/atwinc15x0-hang
drivers/atwinc15x0: reset device if m2m_wifi_handle_events() fails
2022-09-01 14:45:32 +02:00
benpicco
28cedd52a0
Merge pull request #18201 from benpicco/slip_dose_rxqueue
drivers/{dose, slipdev, sam0_eth}: generate RX event for queued packets
2022-08-26 13:25:13 +02:00
Jose Alamos
744cf54900
drivers/kw2xrf: remove unused kw2xrf_setup function 2022-08-25 15:44:34 +02:00
Benjamin Valentin
566935af44 drivers/atwinc15x0: add RESET state 2022-08-23 18:23:05 +02:00
MrKevinWeiss
a4bc692148
drivers/kw2xrd/Kconfig: fix kconfig model
Nightlies are currently failing as there is a difference between make
and kconfig.
This tries to match the kconfig with the makefile dep.
The only issue is the
```
ifneq (,$(filter netdev,$(USEMODULE)))
  USEMODULE += netdev_ieee802154_submac
endif
```

which may have the same effect as select
HAVE_IEEE802154_RADIO_HAL_INTERFACE.
2022-08-23 10:04:44 +02:00
Benjamin Valentin
b27cd86d2b drivers/atwinc15x0: reset device if m2m_wifi_handle_events() fails
Currently when m2m_wifi_handle_events() fails, we end up in a busy
loop and the netdev thread becomes unusable.

Instead, reset (re-init) the WiFi module if this condition occurs.
While not ideal, it's certainly an improvement to the current situation.
2022-08-19 11:36:05 +02:00
Jose Alamos
2138af65dc
kw2xrf/Kconfig: remove netdev_ieee802154 from dependency resolution 2022-08-18 14:17:53 +02:00
Marian Buschsieweke
2873976d3d
drivers/sx1280: select netdev_legacy_api in KConfig 2022-08-18 09:35:16 +02:00
Leandro Lanzieri
2dd59236c8
Merge pull request #18423 from MrKevinWeiss/pr/disable/hashchecks
.murdock: disable hash checks of kconfig/make
2022-08-17 18:30:36 +02:00
MrKevinWeiss
3e7751ab62
drivers/at25xxx: Fix kconfig model 2022-08-17 14:37:21 +02:00
MrKevinWeiss
40f4950f85
drivers/at24cxxx: Fix kconfig model 2022-08-17 14:37:21 +02:00
Marian Buschsieweke
276ad5716a
sys/net/gnrc/netif: allow checking if a netdev is legacy or new API
A if `netdev_driver_t::confirm_send()` is provided, it provides the
new netdev API. However, detecting the API at runtime and handling
both API styles comes at a cost. This can be optimized in case only
new or only old style netdevs are in use.

To do so, this adds the pseudo modules `netdev_legacy_api` and
`netdev_new_api`. As right now no netdev actually implements the new
API, all netdevs pull in `netdev_legacy_api`. If `netdev_legacy_api` is
in used but `netdev_new_api` is not, we can safely assume at compile
time that only legacy netdevs are in use. Similar, if only
`netdev_new_api` is used, only support for the new API is needed. Only
when both are in use, run time checks are needed.

This provides two helper function to check for a netif if the
corresponding netdev implements the old or the new API. (With one
being the inverse of the other.) They are suitable for constant folding
when only new or only legacy devices are in use. Consequently, dead
branches should be eliminated by the optimizer.
2022-08-17 12:56:07 +02:00
MrKevinWeiss
606402e848
drivers: Only select periph_gpio_ll_irq_unmask if needed 2022-08-16 10:57:25 +02:00
Jose Alamos
4ebcd7c055
drivers/kw2xrf: add IEEE 802.15.4 Radio HAL support
Co-authored-by: Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
2022-08-15 12:11:03 +02:00
Jose Alamos
66edd59b0b
drivers/at86rf215: use global ACK Timeout value 2022-08-12 11:12:12 +02:00
Kevin "Tristate Tom" Weiss
98ec922c67
Merge pull request #18430 from jia200x/pr/kconfig/fix_have_ieee802154_radio_hal_interface
Kconfig/ieee802154: fix typo in HAL selector and add missing radios
2022-08-11 09:05:38 +02:00
Jose Alamos
c0dcbc247e
Kconfig/ieee802154: fix typo in hal selector 2022-08-10 13:43:04 +02:00
Gunar Schorcht
a0d8882a55 drivers/mtd: fix module name for mtd_sdcard in Kconfig 2022-08-03 08:26:59 +02:00
benpicco
307ece1bf5
Merge pull request #18391 from gschorcht/cpu/esp/fix_netdev_register
cpu/esp: fix netdev register
2022-08-02 21:38:24 +02:00
benpicco
e1e99c3bf1
Merge pull request #18108 from benpicco/drivers/dose-rxbuf
drivers/dose: make RX buffer size configurable
2022-08-02 10:51:17 +02:00
Gunar Schorcht
14dde4a835 drivers/netdev: add NETDEV_ESP_WIFI type 2022-08-02 09:33:50 +02:00
Gunar Schorcht
184e411355 drivers/netdev: add NETDEV_ESP_ETH type 2022-08-02 09:33:50 +02:00
Leandro Lanzieri
a2681a0f88
drivers/mrf24j40: model Kconfig 2022-07-28 09:32:25 +02:00
Leandro Lanzieri
4ac0025c84
drivers/at86rf215: model Kconfig 2022-07-28 09:32:25 +02:00
Leandro Lanzieri
8390641638
drivers/kw41zrf: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
c3501e8b35
drivers/kw2xrf: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
9225c4b80e
drivers/cc2420: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
7d95e9b5a9
drivers/at86rf2xx: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
eab508b4b1
drivers/netdev_ieee802154_submac: model Kconfig 2022-07-28 09:32:24 +02:00
Leandro Lanzieri
ed22d624e4
drivers/netdev: model IEEE 802.15.4 in Kconfig 2022-07-28 09:29:03 +02:00
Leandro Lanzieri
1716638792
cpu/stm32/periph_eth: model in Kconfig 2022-07-25 11:08:32 +02:00
Leandro Lanzieri
88df973783
cpu/sam0_common/sam0_eth: model in Kconfig 2022-07-25 11:08:32 +02:00
Leandro Lanzieri
575e58dc5b
cpu/esp32/esp-eth: model in Kconfig 2022-07-25 11:08:32 +02:00
Leandro Lanzieri
065c27555b
drivers/w5100: model in Kconfig 2022-07-25 11:08:31 +02:00
Leandro Lanzieri
96de3ce511
drivers/ethos: model in Kconfig 2022-07-22 16:06:36 +02:00
Leandro Lanzieri
35aba45c1c
drivers/dose: model in Kconfig 2022-07-22 16:06:35 +02:00
Leandro Lanzieri
bc10e6ec79
drivers/encx24j600: model in Kconfig 2022-07-22 16:06:35 +02:00
Leandro Lanzieri
fa9822e6ef
drivers/enc28j60: model in Kconfig 2022-07-22 16:06:35 +02:00
Leandro Lanzieri
9a4a4ea537
drivers/netdev: model netdev_eth in Kconfig 2022-07-22 16:06:34 +02:00
benpicco
2b56495db0
Merge pull request #18353 from jan-mo/fix/20220721__drivers_lis2dh2_release_bug
drivers/lis2dh12: release instead of acquire
2022-07-21 22:00:08 +02:00
Jan Mohr
c97d6e7f26 drivers/lis2dh12: release instead of acquire 2022-07-21 15:51:01 +02:00
benpicco
8907585990
Merge pull request #18347 from jan-mo/fix/20220720__drivers_shtcx_release_i2c_line_missing
drivers/shtcx: I2C-line is not released properly
2022-07-21 12:38:50 +02:00
Jan Mohr
5e69d22840 drivers/shtcx: releases I2C-line properly 2022-07-20 17:37:33 +02:00
Gunar Schorcht
132afe3618 drivers/wx281x: fix DEBUG format string for ESP32-C3 2022-07-20 09:17:04 +02:00
benpicco
54544c0a36
Merge pull request #18131 from firas-hamdi/feat/apply_filters_to_target_mailbox
drivers/mcp2515: apply filters to target mailbox
2022-07-13 09:40:06 +02:00
Marian Buschsieweke
997f3fc1f4
Merge pull request #18305 from maribu/drivers/at86rf2xx
drivers/at86rf2xx: fix NETOPT_RANDOM
2022-07-11 17:30:06 +02:00
Leandro Lanzieri
124dd86845
drivers/kw2xrf/spi: fix documentation on return value 2022-07-11 09:25:00 +02:00
Leandro Lanzieri
98455c265d
drivers/kw2xrf: turn test mode into a submodule 2022-07-11 09:25:00 +02:00
Leandro Lanzieri
4a3231f763
drivers/kw2xrf: add setup function with global index
This index is used to register the network device.
2022-07-11 09:24:59 +02:00
MrKevinWeiss
e3ec242ecf
drivers/mrf24j40: Fix missing .h file in params 2022-07-11 09:24:59 +02:00
MrKevinWeiss
d6ba7c1428
drivers/kw2xrf: Fix missing .h file in params 2022-07-11 09:24:58 +02:00
MrKevinWeiss
34d7c0def6
drivers/cc2420: Fix missing .h file in params 2022-07-11 09:24:58 +02:00
MrKevinWeiss
659618aeeb
drivers/at86rf2xx: Fix missing .h file in params 2022-07-11 09:24:58 +02:00
MrKevinWeiss
413c263b62
drivers/at86rf215: Fix missing .h file in params 2022-07-11 09:24:54 +02:00
Marian Buschsieweke
240cf75a61
drivers/at86rf2xx: fix NETOPT_RANDOM
- fix wrong return value
- fix wrong size parameter
    - note, the behavior is a bit relaxed in that it allows
      NETOPT_RANDOM with different size than `sizeof(uint32_t)`
2022-07-11 08:05:42 +02:00
chrysn
d9879c96ca
Merge pull request #16833 from chrysn-pull-requests/rust-lib
Add some Rust library building infrastructure
2022-07-10 21:39:35 +02:00
chrysn
841e4deee5 lsm303agr: New sensor driver using external Rust crate
It is enabled by saul_default on microbit-v2.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2022-07-10 21:27:12 +02:00
eduazocar
e6a7039de4 drivers/at86rf2xx: Adding Switch SRT to Random Number Generator 2022-07-03 17:44:47 -04:00
Firas Hamdi
bc0d3f9de3 drivers/mcp2515: apply the filter to a target mailbox
sys/include/can: add the mailbox target as a member to the filter structure

drivers/mcp2515: cleanup defines
2022-06-30 10:07:24 +02:00
benpicco
d9fc082686
Merge pull request #18062 from firas-hamdi/mcp2515-enable-filtering
drivers/mcp2515: enable filtering
2022-06-26 22:23:07 +02:00
Firas Hamdi
3f9866e709 drivers/mcp2515: fix to add filters
drivers/mcp2515: enable filtering

The current driver implementation initializes the driver in a way to receive all the CAN messages without matching the filters. This commit changes that by adding a macro definition that will be enabling or disabling the filtering and accordingly set the appropriate mcp2515 acceptance mode
2022-06-26 17:38:23 +02:00
benpicco
32a1c22e76
Merge pull request #18252 from gschorcht/cpu/esp32/update_ws281x
drivers/ws281x: update ESP32 driver to use ESP-IDF CPU HAL
2022-06-25 19:04:23 +02:00
Gunar Schorcht
94e7dbfa4b drivers/atwinc15x0: blacklist esp32 architecure
esp32 vendor code and atwinc15x0 both define conflicting spi_flash_{read, write} functions. esp32 already have build-in WiFi, so it's unlikely to ever use this driver - just blacklist the architecture.
2022-06-25 08:12:31 +02:00
benpicco
a7ade355da
Merge pull request #18258 from firas-hamdi/mcp2515_fix/rst_pin_valid
drivers/mcp2515: undefine rst_pin
2022-06-25 01:13:42 +02:00
Firas Hamdi
e8da4269e3 drivers/mcp2515: undefine rst_pin 2022-06-24 17:29:03 +02:00
Gunar Schorcht
e7294cd2bd drivers/ws281x: use ESP-IDF CPU HAL 2022-06-23 15:53:05 +02:00
Gunar Schorcht
24103ad58a
Merge pull request #18215 from benpicco/pkg/driver_atwinc15x0-bump
pkg/driver_atwinc15x0: bump version to 1.6.1
2022-06-20 18:48:53 +02:00
Benjamin Valentin
bede0615ad drivers/mtd: fix doc of mtd_read_page(), mtd_write_page_raw()
The function allows for offsets greater than the page size.
2022-06-20 14:59:41 +02:00
Benjamin Valentin
f8431d7623 drivers/atwinc15x0: blacklist esp8266 2022-06-19 16:53:34 +02:00
Benjamin Valentin
74b401f1eb drivers/dose: generate RX event for queued packets 2022-06-17 10:50:31 +02:00
Benjamin Valentin
86f55c5637 drivers/slipdev: generate RX event for queued packets 2022-06-17 10:50:31 +02:00
Marian Buschsieweke
c5083303f6
Merge pull request #12665 from gschorcht/drivers/hd44780_i2c_pcf857x
drivers/hd44780: PCF857x I2C interface added
2022-06-14 10:23:19 +02:00
benpicco
056b33a242
Merge pull request #18197 from gschorcht/drivers/rtt_rtc_fix_set_alarm
drivers/rtt_rtc: normalize tm struct in rtc_set_alarm
2022-06-12 18:45:05 +02:00
Gunar Schorcht
ded656a67b drivers/rtt_rtc: normalize tm struct in rtc_set_alarm 2022-06-12 15:57:04 +02:00
Benjamin Valentin
f7ab95ad97 dirvers/mtd: return early if init fails
If init fails (e.g. because an SD card was not inserted) don't
fail the `mtd->write_size != 0` assertion but instead return early.
2022-06-07 00:59:37 +02:00
Benjamin Valentin
3d8ba016ec drivers/mtd_mapper: inherit physical properties 2022-06-03 00:22:06 +02:00
benpicco
e1e2b7c5b6
Merge pull request #17601 from gschorcht/cpu/esp32/upgrade_esp-idf_v4.4
cpu/esp32: Upgrade to ESP-IDF v4.4
2022-06-02 10:18:07 +02:00
benpicco
cb5e19beb5
Merge pull request #17979 from maribu/drivers/netdev_ieee802154
drivers/netdev_ieee802154: drop duplicate struct member
2022-06-02 00:47:56 +02:00
Karl Fessel
6e41c685b2
Merge pull request #17935 from dp1/ir_nec
drivers/ir_nec: NEC remote receiver implementation
2022-06-01 13:44:51 +02:00
Gunar Schorcht
259dbc03d8 drivers/ws281x: changes for ESP-IDF 4.4 2022-06-01 13:31:00 +02:00
Dario Petrillo
18f8a476e6
drivers/ir_nec: ir remote implementation 2022-05-31 17:58:39 +02:00
benpicco
4b6da5c8e4
Merge pull request #17863 from benpicco/sam0_sdhc
cpu/samd5x: add SD Host Controller implementation
2022-05-31 15:33:24 +02:00
Benjamin Valentin
babee877ce cpu/sam0_common: add SD Host Controller implementation 2022-05-31 11:07:20 +02:00
Leandro Lanzieri
ca85b4f5ad
drivers/st7735/kconfig: add hardware feature symbol 2022-05-24 17:45:58 +02:00
Fabian Hüßler
477a86022f drivers/mtd: move write_size assertion after init call 2022-05-23 19:46:46 +02:00
Marian Buschsieweke
16f859dafd
drivers/saul: use const qualifier for data to write
This makes life easier when calling e.g. `saul_reg_write()` with data
stored in flash.

As now the signatures for reading and writing differ (in that `const`
qualifier only), `saul_notsup()` is split into `saul_write_notsup()`
and `saul_read_notsup()`. However, one is implemented as a symbol alias
of the other, so that ROM consumption remains unchanged.
2022-05-23 08:35:27 +02:00
chrysn
dc7bc9f854
Merge pull request #17683 from chrysn-pull-requests/mtd-granularity
mtd: Introduce write granularity
2022-05-20 11:52:03 +02:00
Francisco
37da85f047
Merge pull request #18033 from thingsat/pr/sx1280_v2
drivers/sx1280: add driver for SX1280 transceiver v2
2022-05-18 22:10:38 +02:00
Aymeric Brochier
09ca09adbf drivers/sx1280: initial import 2022-05-18 17:06:12 +02:00
benpicco
5fd88e1d35
Merge pull request #17889 from benpicco/drivers/atwinc15x0-fix_sleep
drivers/atwinc15x0: disconnect when sleeping
2022-05-18 16:27:34 +02:00
benpicco
260c59e6a2
Merge pull request #17914 from benpicco/drivers/at86rf215-non-blocking
drivers/at86rf215: make at86rf215_blocking_send a DEFAULT_MODULE
2022-05-17 11:14:48 +02:00
Benjamin Valentin
d0ca6294ea drivers/dose: make RX buffer size configurable
To benefit from the chunked ringbuffer if large frames are being sent,
we need to allocate more than one ethernet frame length to it.

Rename the define and make it overwriteable by the user.
2022-05-15 14:43:47 +02:00
Benjamin Valentin
37159fe4d9 drivers/atwinc15x0: make use of wake pin 2022-05-12 00:29:28 +02:00
Benjamin Valentin
14121a5298 drivers/atwinc15x0: fix DEBUG() macro 2022-05-12 00:29:28 +02:00
Benjamin Valentin
71bfc3a1ca drivers/atwinc15x0: disconnect when sleeping
Don't try to re-connect when the interface is in SLEEP state.
Also disconnect before entering sleep.
2022-05-12 00:29:28 +02:00
Benjamin Valentin
9ea5e58774 drivers: drop NETOPT_RX_END_IRQ 2022-05-11 23:44:24 +02:00
Marian Buschsieweke
bae91c1660
Merge pull request #17723 from benpicco/periph_timer_periodic-set_stopped
drivers/periph/timer: add TIM_FLAG_SET_STOPPED flag
2022-05-03 12:06:37 +02:00
Daniel Lockau
257ffdb442 drivers/mcp2515: fix set bittiming
- apply hardware dependent parameters to bittiming struct before
  reinitializing the hardware with the new parameter set
2022-05-02 14:04:52 +02:00
Benjamin Valentin
4b5858bc7f drivers/dose: make use of TIM_FLAG_SET_STOPPED 2022-04-29 22:33:07 +02:00
Marian Buschsieweke
1fd4d41d76
driver/netdev_ieee802154: Make timestamp optional
Also remove duplicate struct member.
2022-04-22 14:33:56 +02:00
Marian Buschsieweke
f881ad3f90
drivers/Kconfig: split netdev Kconfig to drivers/netdev 2022-04-22 14:33:50 +02:00
Marian Buschsieweke
23855e140e
drivers: Add periph/gpio_ll API
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: chrysn <chrysn@fsfe.org>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2022-04-22 08:39:04 +02:00
56359d6fb1
Merge pull request #17930 from aabadie/pr/drivers/lcd_rotation_rework
drivers/lcd: rework rotation management and enable it for st7735
2022-04-21 14:31:49 +02:00
Francisco Molina
02ce15b2e9 drivers/scard_spi: _dyn_spi_rxtx_byte return void
Both _sw_spi_rxtx_byte and _hw_spi_rxtx_byte return always 1, so
having a return value and checking for it does not make sense,
instead return void and remove the checks
2022-04-20 14:54:36 +02:00
df95c6ca83
Merge pull request #17945 from fjmolinas/pr_mcp2515_cleanups
drivers/mcp2515: fixes and cleanups
2022-04-20 10:42:08 +02:00
Francisco Molina
6959f5eb78 drivers/mcp2515: use ztimer 2022-04-20 09:23:50 +02:00
85ba0597f7
drivers/lcd: rework rotation modes and enable it with st7735 2022-04-19 16:22:10 +02:00
646fb1135a
Merge pull request #17925 from aabadie/pr/drivers/lcd_params_rework
drivers/lcd: slightly rework params to expose offset values to ili9341 driver
2022-04-19 16:21:42 +02:00
Francisco Molina
babaa6ec4a drivers/mcp2515/candev_mcp2515: remove Illegal ID error
0x1fffffff marks and extended can id.
2022-04-19 15:57:57 +02:00
Francisco Molina
cd21bc00da drivers/candev_mcp2515: set default bitrate to 500kbps 2022-04-19 15:56:45 +02:00
Francisco Molina
c07514ad3f drivers/mcp2515: allow for can_mask == 0, promiscuos
can_mask = 0 is a valid value to reaceive all frames
2022-04-19 15:56:45 +02:00
Francisco Molina
3084928151 drivers/mcp2515: support no rst_pin 2022-04-19 15:56:44 +02:00
Francisco Molina
0c526f12c6 driver/mcp2515: clear irq masks after read
This fixes a bug where it triggers twice on e.g. tx isr
2022-04-19 15:55:29 +02:00
63b25483c9
Merge pull request #17921 from aabadie/pr/drivers/disp_dev_coordinates
drivers/disp_dev: use struct to store display area coordinates
2022-04-19 12:48:12 +02:00
718b1e350d
Merge pull request #17459 from aabadie/pr/drivers/cst816s_enh
drivers/cst816s: add touch_dev interface + add Kconfig + migrate to ztimer
2022-04-19 11:43:34 +02:00
benpicco
b7c68a2c69
Merge pull request #17940 from fjmolinas/pr_stdio_ethos_missing_include
drivers/ethos: add missing vfs include
2022-04-14 16:24:54 +02:00
dbc59aa75b
drivers/cst816s: use gpio_is_valid where appropriate 2022-04-14 11:31:36 +02:00
a2fc925a0e
drivers/cst816s: add touch_dev interface 2022-04-14 11:31:35 +02:00
b1ac9e124d
drivers/cst816s: add Kconfig 2022-04-14 11:31:35 +02:00
d3330e1813
drivers/cst816s: migrate to ztimer 2022-04-14 11:31:34 +02:00
Francisco Molina
9473f88e3a drivers/ethos: add missing vfs include 2022-04-14 08:36:27 +02:00
Marian Buschsieweke
c2e029b427
drivers/mtd_spi_nor: fix off by one bug
The boolean expression to detect when 32 bit address mode are needed
was off by one, this fixes the issue.
2022-04-13 17:24:39 +02:00
81cf5dba53
drivers/lcd: apply offset parameters to ili9341 2022-04-13 12:55:16 +02:00
1152a47817
drivers/lcd: adapt ltdc periph disp_dev interface 2022-04-13 12:49:58 +02:00
36211f3fae
drivers/disp_dev: use struct to store display area coordinates 2022-04-13 12:49:58 +02:00
d311dd94cf
drivers/ili9341: st7735: adapt to new build system rules 2022-04-12 12:39:00 +02:00
Francisco Molina
c5cc2966ff
drivers/ili9341: use common lcd driver 2022-04-12 12:39:00 +02:00
Francisco Molina
827fa976a6
driveres/st7735: add driver based on common lcd driver 2022-04-12 12:38:59 +02:00
Francisco Molina
8f2fa772e9
drivers/lcd: add common driver for lcd display 2022-04-12 12:35:02 +02:00
benpicco
e3f9252947
Merge pull request #17913 from benpicco/mtd_fixes
mtd: minor cleanup & test fixes
2022-04-12 09:30:27 +02:00
Benjamin Valentin
72bb9c749f drivers/at86rf215: make at86rf215_blocking_send a DEFAULT_MODULE
So it can be disabled.
2022-04-11 16:28:52 +02:00
Benjamin Valentin
e3c8187736 dirvers/mtd: don't use work_buf as proxy for !direct write flag
Currently work_buf is only NULL when MTD_DRIVER_FLAG_DIRECT_WRITE is
set, so it served as a proxy for that flag.

However, we might want to have a work buffer even when writes without
erase are possible.
2022-04-11 14:29:52 +02:00
Marian Buschsieweke
697448e51c
drivers/periph_cpuid: Minor cleanup
Avoid use of `memcpy` altogether to work around false positive of
`-Warray-bounds` in newer GCC versions.
2022-04-11 12:01:57 +02:00
Fabian Hüßler
045d88df7c drivers/periph_common/cpuid: disable false positive warnings
The warnings appeared after the -fno-builtin compiler flag was removed (#17898),
but the code is looking fine and tests/periph_cpuid shows correct results.
2022-04-10 15:52:23 +02:00
Oleg Hahm
31f44fbf5f
Merge pull request #17879 from kfessel/p-mtd-nor
driver/mtd_spi_nor: cleanup sleep timing
2022-04-08 14:06:19 +02:00
Francisco
8b18898760
Merge pull request #17880 from benpicco/drivers/atwinc15x0-mcast
drivers/atwinc15x0: join multicast groups
2022-04-07 15:42:26 +02:00
chrysn
5221ce278e
Merge pull request #17860 from Ollrogge/deprecate_flashpage
periph/flashpage: deprecate *_free functions
2022-03-31 20:42:01 +02:00
Ollrogge
4974790bad periph/flashpage: deprecate *_free functions 2022-03-31 17:59:54 +02:00
Ollrogge
a834cc9acf periph/flashpage: activate FLASH_WRITABLE_INIT documentation 2022-03-31 17:59:44 +02:00
chrysn
47148642f9 drivers/mtd_{mci,sdcard}: Pages need to be written at once
See-Also: https://github.com/RIOT-OS/RIOT/pull/17683#issuecomment-1084245744
2022-03-31 10:58:52 +02:00
chrysn
88f4f7c6e8 drivers/mtd_spi_nor: Storage is byte-writable
See-Also: https://github.com/RIOT-OS/RIOT/pull/17683#discussion_r815362737
2022-03-31 10:58:52 +02:00
chrysn
d764e037bf drivers/at2[45]: EEPROMs can be written byte-wise
See-Also: https://github.com/RIOT-OS/RIOT/pull/17683#discussion_r815362737
2022-03-31 10:58:52 +02:00
chrysn
52ea93ef03 drivers/mtd_mapper: Add write_size 2022-03-31 10:58:52 +02:00
chrysn
882f76ab01 drives/mtd_flashpage: Configure write_size in MTD device 2022-03-31 10:52:34 +02:00
chrysn
9ec42492da mtd: Introduce write_size, setting no-rewrite policy
... with flags defining more clearly which kinds of overwrites are OK

Co-authored-by: benpicco <benpicco@googlemail.com>
2022-03-31 10:50:30 +02:00
chrysn
df9226fb80 mtd doc: Editorial fix 2022-03-31 10:50:30 +02:00
Benjamin Valentin
d800cca1c3 drivers/atwinc15x0: register with netdev 2022-03-30 16:07:29 +02:00
Karl Fessel
f8607ecc28 driver/mtd_spi_nor: clearup sleep timming 2022-03-30 11:58:58 +02:00
Benjamin Valentin
b173bbb0b7 drivers/atwinc15x0: join multicast groups
I noticed the wifi module would not receive any router advertisements
while an esp8266 did just fine.

Turns out joining the multicast groups was not enabled.
With this it works as expected.
2022-03-29 15:16:54 +02:00
Francisco
52f12e0734
Merge pull request #17711 from benpicco/periph_init_buttons
drivers/periph_common: add periph_init_buttons to init on-board buttons
2022-03-29 10:29:39 +02:00
Francisco
c078fdeb70
Merge pull request #17836 from fjmolinas/pr_xtimer_backoff_cleanups
drivers/mtd_spi_nor: add ztimer_usec alternative
2022-03-28 21:39:50 +02:00
benpicco
1133d04de1
Merge pull request #17813 from leandrolanzieri/pr/tests/eth_drivers_rework
tests: rework eth drivers
2022-03-28 18:15:27 +02:00
Francisco Molina
3017020bc9 drivers/mtd_spi_nor: add ztimer_usec alternative 2022-03-28 09:08:31 +02:00
Benjamin Valentin
628855fead drivers/mtd_spi_nor: fix Atmel size calculation
Lower bits of the device ID are not the capacity in bytes but in sectors:

 4 - 4 Mb -> 32k << 4
 5 - 8 Mb -> 32k << 5
 …
2022-03-27 23:01:14 +02:00
benpicco
7135c91763
Merge pull request #17866 from jue89/fix/mtd_mapper_backend
drivers/mtd_mapper: fix read_page and write_page backend
2022-03-26 16:10:32 +01:00
Jue
6cf7e419fc drivers/mtd_mapper: fix read_page and write_page backend 2022-03-26 14:30:42 +01:00
Benjamin Valentin
a0059eee43 drivers/sdcard_spi: be sure to always write state 2022-03-25 19:09:11 +01:00
Benjamin Valentin
c3543b7a69 drivers/mtd_sdcard: drop printf()
Only print errors when debug is enabled.
2022-03-25 17:21:15 +01:00
Gunar Schorcht
753b435cb5
Merge pull request #17854 from benpicco/drivers/atwinc15x0-sleep
drivers/atwinc15x0: enable sleep state
2022-03-25 16:43:27 +01:00
Francisco
a10b1572aa
Merge pull request #17627 from benpicco/mtd_flashpage_t
drivers/mtd_flashpage: add mtd_flashpage_t type
2022-03-25 16:24:04 +01:00
Benjamin Valentin
b28738c11c drivers/atwinc15x0: enable sleep state
This allows the interface to enter SLEEP state in which it only
consumes 4µA.
2022-03-24 14:04:53 +01:00
Leandro Lanzieri
a2e5934ec9
drivers/encx24j600: introduce setup function with index 2022-03-24 09:32:10 +01:00
Leandro Lanzieri
5f7a906b95
drivers/w5100: introduce setup with index 2022-03-24 09:30:42 +01:00
Gunar Schorcht
4bdcc9385a periph/pwm: fix alphabetical order in Kconfig 2022-03-21 09:14:32 +01:00
Gunar Schorcht
2851d6c0e0 periph/timer: fix Kconfig menu title 2022-03-20 21:35:16 +01:00
benpicco
1e66baf94b
Merge pull request #17699 from viktorbatista/shtc3
drivers/shtcx: converted the shtc1 driver into shtcx and added shtc3 support
2022-03-18 14:05:42 +01:00
Leandro Lanzieri
202fb261fe
Merge pull request #17811 from fjmolinas/pr_xtimer_dep_rework_simple
sys/*timer: rework dependecies to ease backend switch, prefer ztimer_xtimer_compat over xtimer_on_ztimer
2022-03-18 08:17:24 +01:00
benpicco
82b0e08745
Merge pull request #10082 from gschorcht/drivers_l3gd20h
drivers: add driver for L3GD20H 3-axis gyroscope
2022-03-18 08:10:24 +01:00
Gunar Schorcht
ce04d978ef Update drivers/l3gxxxx/Kconfig
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2022-03-18 06:34:54 +01:00
Gunar Schorcht
1c666c5955 kconfig: add ST L3Gxxxx 3-axis gyro family 2022-03-18 06:34:54 +01:00
chrysn
facb5e633f
Merge pull request #17436 from Ollrogge/reserve_flash
cpu: add flash_writable section to linker script
2022-03-17 21:44:32 +01:00
Ollrogge
6ab1fb9a09 periph/flashpage: Add FLASH_WRITABLE_INIT macro 2022-03-17 19:46:00 +01:00
Ollrogge
41f961a197 periph/flashpage: Add _in_address_space feature 2022-03-17 19:45:54 +01:00
Gunar Schorcht
24106edde9 drivers/saul: add ST L3Gxxxx 3-axis gyroscope family 2022-03-17 18:34:57 +01:00
Gunar Schorcht
1569299c92 drivers: support for ST L3Gxxxx 3-axis gyroscope family 2022-03-17 18:34:57 +01:00
Francisco Molina
2cc5af664e treewide: make all modules use Kconfig ZTIMER_USEC indirection 2022-03-17 14:33:07 +01:00
Benjamin Valentin
3a77988b03 drivers/at86rf215: fix CONFIG_AT86RF215_RPC_EN macro name 2022-03-16 20:59:35 +01:00
Francisco
921f778af9
Merge pull request #17795 from benpicco/drivers/sdcard_spi-board
drivers/sdcard_spi: allow board to overwrite SD_CARD_SPI_SPEED_POSTINIT
2022-03-11 18:01:52 +01:00
Benjamin Valentin
63247d17c4 drivers/sdcard_spi: allow board to overwrite SD_CARD_SPI_SPEED_POSTINIT
Include board.h so we can overwrite SD_CARD_SPI_SPEED_POSTINIT there.
2022-03-11 11:59:40 +01:00
Leandro Lanzieri
7ca22f7791
drivers/mrf24j40: move CFLAG to Makefile.include 2022-03-11 09:26:43 +01:00
Vic
e18557f9c4 drivers/shtcx: integration of shtc3 sensor 2022-03-10 21:35:25 +01:00
Vic
07531cdecd shtc1->shtcx: renamed files 2022-03-10 14:47:34 +01:00
Francisco
9cbca219b2
Merge pull request #17783 from gschorcht/drivers/sht3x_ztimer_msec
drivers/sht3x: ztimer_msec port
2022-03-10 09:03:36 +01:00
Gunar Schorcht
0508850266 drivers/sht3x: ztimer_msec port 2022-03-10 07:26:42 +01:00
a3fc5c1d17
Merge pull request #17697 from viktorbatista/drivers/lps22ch
driver/lpsxxx: adding lps22ch support
2022-03-09 21:28:11 +01:00
Vic
947efa7d65 driver/lpsxxx: adding lps22ch support 2022-03-09 15:23:51 +01:00
Leandro Lanzieri
34dc24822f
Merge pull request #17669 from MrKevinWeiss/pr/kconfig/netdrivers
drivers/*/Kconfig: Cleanup of simple drivers
2022-03-09 09:23:54 +01:00
MrKevinWeiss
ed026622d3
drivers/Kconfig: Add missing kconfig drivers 2022-03-04 14:16:02 +01:00
MrKevinWeiss
dc564b4d03
drivers/tja1042: Update kconfig model 2022-03-04 14:16:02 +01:00
MrKevinWeiss
0981dc4f8e
drivers/ncv7356: Update kconfig model 2022-03-04 14:16:01 +01:00
MrKevinWeiss
c4e4bc2122
drivers/mcp2515: Update kconfig model 2022-03-04 14:16:01 +01:00
MrKevinWeiss
482bbc3056
drivers/bh1750fvi: Update kconfig model 2022-03-04 14:16:01 +01:00
MrKevinWeiss
061345a352
drivers/ws281x: Update kconfig model 2022-03-04 14:16:00 +01:00
MrKevinWeiss
a319ae0c11
drivers/veml6070: Update kconfig model 2022-03-04 14:16:00 +01:00
MrKevinWeiss
8064bc7493
drivers/vcnl40x0: Update kconfig model 2022-03-04 14:16:00 +01:00
MrKevinWeiss
ce2c415dbb
drivers/tsl4531x: Update kconfig model 2022-03-04 14:15:59 +01:00
MrKevinWeiss
0d6ca33319
drivers/tsl2561: Update kconfig model 2022-03-04 14:15:59 +01:00
MrKevinWeiss
622deb1e55
drivers/tps6274x: Update kconfig model 2022-03-04 14:15:58 +01:00
MrKevinWeiss
442f072059
drivers/sx127x: Update kconfig model 2022-03-04 14:15:58 +01:00
MrKevinWeiss
dcf2c224c1
drivers/srf08: Update kconfig model 2022-03-04 14:15:58 +01:00
MrKevinWeiss
32225f1bac
drivers/srf04: Update kconfig model 2022-03-04 14:15:57 +01:00
MrKevinWeiss
841a32ecde
drivers/srf02: Update kconfig model 2022-03-04 14:15:57 +01:00
MrKevinWeiss
6dd6720739
drivers/sps30: Update kconfig model 2022-03-04 14:15:56 +01:00
MrKevinWeiss
fe25c7a699
drivers/sm_pwm_01c: Update kconfig model 2022-03-04 14:15:56 +01:00
MrKevinWeiss
1ace3f0d35
drivers/si70xx: Update kconfig model 2022-03-04 14:15:56 +01:00
MrKevinWeiss
f185d7acab
drivers/si114x: Update kconfig model 2022-03-04 14:15:55 +01:00
MrKevinWeiss
48e88c47aa
drivers/si1133: Update kconfig model 2022-03-04 14:15:55 +01:00
MrKevinWeiss
578cf66d78
drivers/shtc1: Update kconfig model 2022-03-04 14:15:54 +01:00
MrKevinWeiss
e75462c904
drivers/sht2x: Update kconfig model 2022-03-04 14:15:54 +01:00
MrKevinWeiss
1d720084ee
drivers/sht1x: Update kconfig model 2022-03-04 14:15:53 +01:00
MrKevinWeiss
b539ee8223
drivers/sgp30: Update kconfig model 2022-03-04 14:15:53 +01:00
MrKevinWeiss
050ae8b12e
drivers/seesaw_soil: Update kconfig model 2022-03-04 14:15:53 +01:00
MrKevinWeiss
1ed8f6b508
drivers/sds011: Update kconfig model 2022-03-04 14:15:52 +01:00
MrKevinWeiss
7f6c1def8a
drivers/sdp3x: Update kconfig model 2022-03-04 14:15:52 +01:00
MrKevinWeiss
6434c8c328
drivers/sdcard_spi: Update kconfig model 2022-03-04 14:15:52 +01:00
MrKevinWeiss
934374a464
drivers/scd30: Update kconfig model 2022-03-04 14:15:51 +01:00
MrKevinWeiss
c0e7c7f89a
drivers/qmc5883l: Update kconfig model 2022-03-04 14:15:50 +01:00
MrKevinWeiss
b443ca5794
drivers/pn532: Update kconfig model 2022-03-04 14:15:50 +01:00
MrKevinWeiss
5f85c26f78
drivers/ph_oem: Update kconfig model 2022-03-04 14:15:50 +01:00
MrKevinWeiss
9f918a8ee0
drivers/pcf857x: Update kconfig model 2022-03-04 14:15:49 +01:00
MrKevinWeiss
0eb86d8c4c
drivers/pcd8544: Update kconfig model 2022-03-04 14:15:49 +01:00
MrKevinWeiss
6dfe07de17
drivers/pca9685: Update kconfig model 2022-03-04 14:15:48 +01:00
MrKevinWeiss
9a3b4f7b9d
drivers/pca9633: Update kconfig model 2022-03-04 14:15:48 +01:00
MrKevinWeiss
0b25a838ca
drivers/opt3001: Update kconfig model 2022-03-04 14:15:48 +01:00
MrKevinWeiss
5829bfb218
drivers/my9221: Update kconfig model 2022-03-04 14:15:47 +01:00
MrKevinWeiss
5e6319fee5
drivers/mq3: Update kconfig model 2022-03-04 14:15:47 +01:00
MrKevinWeiss
5c63569025
drivers/mma7660: Update kconfig model 2022-03-04 14:15:47 +01:00
MrKevinWeiss
551d25a296
drivers/mhz19: Update kconfig model 2022-03-04 14:15:46 +01:00
MrKevinWeiss
0ec4525733
drivers/lpd8808: Update kconfig model 2022-03-04 14:15:45 +01:00
MrKevinWeiss
1ff07e0133
drivers/lis2dh12: Update kconfig model 2022-03-04 14:15:45 +01:00
MrKevinWeiss
e30ee6aaf0
drivers/lc709203f: Update kconfig model 2022-03-04 14:15:45 +01:00
MrKevinWeiss
247aa5ecb9
drivers/jc42: Update kconfig model 2022-03-04 14:15:44 +01:00
MrKevinWeiss
73794dc608
drivers/itg320x: Update kconfig model 2022-03-04 14:15:44 +01:00
MrKevinWeiss
44d2dbe12c
drivers/isl29125: Update kconfig model 2022-03-04 14:15:44 +01:00
MrKevinWeiss
d5336efb41
drivers/isl29020: Update kconfig model 2022-03-04 14:15:43 +01:00
MrKevinWeiss
1dbf5836da
drivers/io1_xplained: Update kconfig model 2022-03-04 14:15:43 +01:00
MrKevinWeiss
5007241e84
drivers/ina3221: Update kconfig model 2022-03-04 14:15:42 +01:00
MrKevinWeiss
d2f3e6c0de
drivers/ina2xx: Update kconfig model 2022-03-04 14:15:42 +01:00
MrKevinWeiss
bb444214f9
drivers/hsc: Update kconfig model 2022-03-04 14:15:41 +01:00
MrKevinWeiss
29874e8f3d
drivers/hmc5883l: Update kconfig model 2022-03-04 14:15:41 +01:00
MrKevinWeiss
a311bc1915
drivers/hih6130: Update kconfig model 2022-03-04 14:15:40 +01:00
MrKevinWeiss
1975ccf442
drivers/hd44780: Update kconfig model 2022-03-04 14:15:40 +01:00
MrKevinWeiss
4754f339a0
drivers/grove_ledbar: Update kconfig model 2022-03-04 14:15:40 +01:00
MrKevinWeiss
1d05b3f727
drivers/gp2y10xx: Update kconfig model 2022-03-04 14:15:39 +01:00
MrKevinWeiss
ff1ac6b286
drivers/edbg_eui: Update kconfig model 2022-03-04 14:15:38 +01:00
MrKevinWeiss
9ebb223079
drivers/dsp0401: Update kconfig model 2022-03-04 14:15:38 +01:00
MrKevinWeiss
f26a84d1bb
drivers/ds75lx: Update kconfig model 2022-03-04 14:15:38 +01:00
MrKevinWeiss
fc515df185
drivers/ds3234: Update kconfig model 2022-03-04 14:15:37 +01:00
MrKevinWeiss
d78ffe2fc9
drivers/ds3231: Update kconfig model 2022-03-04 14:15:37 +01:00
MrKevinWeiss
d2c3252074
drivers/ds18: Update kconfig model 2022-03-04 14:15:37 +01:00
MrKevinWeiss
690b1c8725
drivers/ds1307: Update kconfig model 2022-03-04 14:15:36 +01:00
MrKevinWeiss
2dd5e76d29
drivers/dht: Update kconfig model 2022-03-04 14:15:36 +01:00
MrKevinWeiss
890ba2e127
drivers/dfplayer: Update kconfig model 2022-03-04 14:15:35 +01:00
MrKevinWeiss
3b5f4797d4
drivers/dcf77: Update kconfig model 2022-03-04 14:15:35 +01:00
MrKevinWeiss
8979586e7d
drivers/dac_dds: Update kconfig model 2022-03-04 14:15:35 +01:00
MrKevinWeiss
ce4b0f03c0
drivers/cst816s: Update kconfig model 2022-03-04 14:15:34 +01:00
MrKevinWeiss
65e774f819
drivers/ccs811: Update kconfig model 2022-03-04 14:15:34 +01:00
MrKevinWeiss
e72c11136f
drivers/bq2429x: Update kconfig model 2022-03-04 14:15:34 +01:00
MrKevinWeiss
b1fdef7fe5
drivers/bmx280: Update kconfig model 2022-03-04 14:15:33 +01:00
MrKevinWeiss
7966f18479
drivers/bmx055: Update kconfig model 2022-03-04 14:15:33 +01:00
MrKevinWeiss
d276b89ed0
drivers/bme680: Update kconfig model 2022-03-04 14:15:32 +01:00
MrKevinWeiss
a25f429f0d
drivers/bh1900nux: Update kconfig model 2022-03-04 14:15:32 +01:00
MrKevinWeiss
323a88ead2
drivers/at30tse75x: Update kconfig model 2022-03-04 14:15:32 +01:00
MrKevinWeiss
470e7aaae4
drivers/at25xxx: Update kconfig model 2022-03-04 14:15:28 +01:00
Leandro Lanzieri
de79edb352
drivers/encx24j600: define default parameters 2022-03-04 09:58:50 +01:00
MrKevinWeiss
7204a0b486
drivers/apds99xx: Update kconfig model 2022-03-02 14:03:30 +01:00
MrKevinWeiss
5121c00738
drivers/apa102: Update kconfig model 2022-03-02 14:03:29 +01:00
MrKevinWeiss
4afca9b8f1
drivers/aip31068: Update kconfig model 2022-03-02 14:03:29 +01:00
MrKevinWeiss
a3e057866c
drivers/adt7310: Update kconfig model 2022-03-02 14:03:28 +01:00
MrKevinWeiss
af45f94a2f
drivers/adcxx1c: Update kconfig model 2022-03-02 14:03:28 +01:00
MrKevinWeiss
f08f3886ec
drivers/ad7746: Update kconfig model 2022-03-02 14:03:27 +01:00
Benjamin Valentin
3d252bfba3 drivers/periph/timer: add TIM_FLAG_SET_STOPPED flag 2022-03-01 13:45:01 +01:00
Benjamin Valentin
e6d2ff668b drivers/dose: only disable watchdog when transiting from RECV state
The DOSE watchdog should only run if at least one interface is in RECV
state.

That means it must be enabled when entering RECV state and disabled
when leaving RECV state.

The watchdog was *always* disabled on a transition to IDLE.
This is wrong: If there are two interfaces and one is in RECV state
but the other did just SEND something and transitions to IDLE state
from SEND state, it would still disable the watchdog.

Fix this by only disabling the watchdog if the current state is RECV.
2022-02-28 17:22:48 +01:00
Benjamin Valentin
bf34cc6b17 drivers/periph_common: add periph_init_buttons to init on-board buttons 2022-02-26 22:45:46 +01:00
benpicco
6cfbec4f8e
Merge pull request #10518 from gschorcht/drivers_mcp47xx
drivers: support for Microchip MCP47xx DAC devices added
2022-02-26 22:13:41 +01:00
Fabian Hüßler
fa52f1e986 cpu/stm32: Consider VBAT on CPU init 2022-02-21 10:49:43 +01:00
Fabian Hüßler
33c2944076 cpu/stm32: add VBAT for stm32 2022-02-21 10:49:43 +01:00
Fabian Hüßler
66a7a0a065 drivers/periph: add VBAT interface 2022-02-20 13:43:19 +01:00
Francisco
dd150fe47e
Merge pull request #17584 from benpicco/auto_init_leds
sys/auto_init: add auto_init_leds, drop LED init code from boards
2022-02-18 19:40:50 +01:00
Benjamin Valentin
982598a199 drivers/periph_common: add periph_init_leds to init all on-board LEDs 2022-02-18 14:35:43 +01:00
Francisco
e58af6a876
Merge pull request #17619 from benpicco/drivers/mtd_sdcard-unaligned
drivers/mtd_sdcard: support unaligned reads & writes
2022-02-17 10:09:06 +01:00
Marian Buschsieweke
f232401391
Merge pull request #17667 from benpicco/drivers/at86rf215-disable_mod
drivers/at86rf215: fix disabling individual modulations
2022-02-16 22:26:08 +01:00
Benjamin Valentin
03dc48602e drivers/at86rf215: fix disabling individual modulations
This should work now:

DISABLE_MODULE += netdev_ieee802154_mr_oqpsk
DISABLE_MODULE += netdev_ieee802154_mr_ofdm
DISABLE_MODULE += netdev_ieee802154_mr_fsk
2022-02-16 18:01:07 +01:00
chrysn
b832bb1224 mtd doc: Add overview defining terms; link modules
Contributes-To: https://github.com/RIOT-OS/RIOT/issues/17663
2022-02-16 16:25:01 +01:00
Karl Fessel
726c461cb5
Merge pull request #17574 from kfessel/p-fix-asserth
core/assert: avoid including panic.h with assert.h
2022-02-15 11:57:55 +01:00
Karl Fessel
766b3b613f saul/auto_init_sgp30: if is compiled there is saul 2022-02-12 18:30:58 +01:00
Karl Fessel
124f8cd2a9 driver/disp_dev: include stddef.h 2022-02-12 18:30:58 +01:00
Jens Wetterich
4dfeafcabd cpu/native/netdev_tap: Add to netdev_register 2022-02-11 07:54:11 +01:00
benpicco
c423148bbc
Merge pull request #17608 from benpicco/drivers/ethos-standalone
drivers/ethos: fix build without ethos_stdio
2022-02-10 13:07:11 +01:00
benpicco
be45400631
Merge pull request #17341 from benpicco/vfs-mtd_cleanup
sys/vfs: add file-system auto-mount
2022-02-09 21:50:34 +01:00
Benjamin Valentin
2fe41b1b40 drivers/mtd_flashpage: add mtd_flashpage_t type 2022-02-08 17:13:30 +01:00
Benjamin Valentin
91ca757b9a drivers/mtd_sdcard: implement erase_sector() 2022-02-07 11:40:27 +01:00
Benjamin Valentin
ac9de922c5 drivers/mtd_sdcard: support unaligned reads & writes 2022-02-07 11:36:07 +01:00
benpicco
effad2e571
Merge pull request #17613 from benpicco/drivers/mtd_spi_nor-microchip
boards/same54-xpro: support for board variation with SST26VF064B flash
2022-02-06 18:39:31 +01:00
Benjamin Valentin
67417ce5a9 drivers/mtd_spi_nor: drop addr_width from mtd_spi_nor_params_t
This is now always determined at run-time.
2022-02-04 12:17:17 +01:00
Benjamin Valentin
4c282a3a41 drivers/mtd_spi_nor: set address width at run-time 2022-02-04 12:17:17 +01:00
Benjamin Valentin
1795785a92 drivers/mtd_spi_nor: add support for Microchip (SST) flash 2022-02-04 12:17:17 +01:00
Benjamin Valentin
748e85ed39 drivers/ethos: set defaults for !ethos_stdio 2022-02-04 12:09:19 +01:00
Benjamin Valentin
c460c0eb77 drivers/ethos: fix build without ethos_stdio 2022-02-03 11:03:31 +01:00
Benjamin Valentin
0695a7e40e drivers/dose: include board.h
`DOSE_TIMER_DEV` is defined in `board.h`, so we have to include it.
It's not included by the header (and should not), so move the check
to the .c file.
2022-02-02 15:38:57 +01:00
MrKevinWeiss
719e00fa42
drivers/mpu9x50: Model saul_default in kconfig 2022-02-01 13:58:06 +01:00
MrKevinWeiss
0250bf20e3
drivers/bmp180: Model saul_default in kconfig 2022-02-01 13:58:05 +01:00
MrKevinWeiss
0861012200
drivers/adxl345: Model saul_default in kconfig 2022-02-01 13:58:04 +01:00
Juergen Fitschen
617eb359c0
Merge pull request #17565 from fjmolinas/pr_dose_to_ztimer
drivers/dose: migrate to ztimer_usec
2022-01-28 13:04:44 +01:00
Benjamin Valentin
a471f3583e drivers/sx127x: add support for WLR089/SAM R34
The device ID returned on WLR089 is 0x13 instead of 0x12, but it appears to
work just like sx1276.

Also check for the other device ID to make the driver work on this module.
2022-01-27 13:36:26 +01:00
Francisco Molina
b229f77ac1 drivers/lis2dh12: use ifdef instead of IS_USED
Using IS_USED leads to undefined API references
2022-01-25 08:45:09 +01:00
Francisco Molina
dc27c080ea drivers/dose: migrate to ztimer_usec 2022-01-25 08:43:33 +01:00
Benjamin Valentin
70d9f2fb1a sys/vfs: move mtd_vfs_ops to vfs.h
This avoids a cyclic include of mtd.h
2022-01-24 13:53:21 +01:00
Kevin "Tristate Tom" Weiss
c94033016e
Merge pull request #17458 from aabadie/pr/boards/stm32f429i-disc1_kconfig_deps_fix
{disp,touch}_dev: improve Kconfig at different levels
2022-01-24 12:00:44 +01:00
Francisco
b985a74894
Merge pull request #17367 from fjmolinas/pr_driver_ztimer_corner_cases
drivers: migrate xtimer64 and xtimer/ticks users to ztimer
2022-01-24 10:41:24 +01:00
8e56da3658
drivers/stmpe811: don't use a choice to select the bus 2022-01-22 15:14:26 +01:00
240f80e43a
drivers/stmpe811: extend Kconfig 2022-01-22 15:14:17 +01:00
96f338bafc
drivers/stmpe811: cleanup Kconfig 2022-01-22 15:14:17 +01:00
Leandro Lanzieri
91012bc3f9
drivers/ft5x06: remove unnecessary pseudomodules 2022-01-21 14:13:49 +01:00
Leandro Lanzieri
4eb58d74b5
drivers/ft5x06: allow multiple device types 2022-01-21 13:13:09 +01:00
Benjamin Valentin
a8983d288f drivers/dose: add documentation for dose_watchdog 2022-01-20 18:37:23 +01:00
Benjamin Valentin
a8ad618a71 drivers/dose: make use of ringbuffer for RX 2022-01-19 11:43:35 +01:00
Francisco
bc6624e67b
Merge pull request #17180 from benpicco/drivers/dose-watchdog
drivers/dose: introduce watchdog timer
2022-01-18 23:43:29 +01:00
5e599a82dd
Merge pull request #17531 from fjmolinas/pr_spi_gpio_init_reference
drivers/periph_spi: spi_init_with_gpio_mode mode by reference
2022-01-18 18:44:54 +01:00
Francisco Molina
c19a78765a drivers/pir: migrate to ztimer64 2022-01-18 16:27:44 +01:00
Francisco Molina
a1fe17c698 drivers/ltc4150: migrate to ztimer64 2022-01-18 16:27:44 +01:00
Francisco Molina
0398fb3f83 drivers/nvmram_spi: convert to ztimer_usec 2022-01-18 16:27:44 +01:00
Francisco Molina
24a848e844 drivers/nrf24l01p: migrate to ztimer 2022-01-18 16:27:44 +01:00
Francisco Molina
579ca6d941 drivers/periph_spi: spi_init_with_gpio_mode mode by reference 2022-01-18 16:22:18 +01:00
Benjamin Valentin
3e1076e3b9 drivers/dose: set backoff timer before send 2022-01-18 15:41:38 +01:00
Benjamin Valentin
ddf80a8bdb drivers/dose: introduce watchdog timer 2022-01-18 15:41:38 +01:00
Francisco Molina
8b45ed87be drivers/rtt_rtc: select rtc_utils 2022-01-18 15:32:38 +01:00
75f5048b68
Merge pull request #17497 from jia200x/pr/lora/fix_rssi_val
[treewide] lora: use int16_t for RSSI value
2022-01-17 18:57:37 +01:00
Jose Alamos
d6899f40a7
drivers/atwinc15x0: adapt NETOPT_RSSI to int16_t 2022-01-17 17:54:18 +01:00
Jose Alamos
9955a35c63
[treewide] lora: use int16_t for RSSI value
The RSSI values reported by LoRa transceiver can be less than -127.
Therefore, `int8_t` is not enough. This commit defines the RSSI of
`netdev_lora_rx_info` as `int16_t` and adapt the drivers accordingly
(sx126x, sx127x).
2022-01-17 17:54:18 +01:00
Francisco Molina
393c78b8e2 drivers/si1133: migrate to ztimer 2022-01-17 12:04:12 +01:00
Francisco
54d62f1303
Merge pull request #17517 from aabadie/pr/sys/lora_remove_deprecated_define
sys/lora: remove deprecated LORA_PAYLOAD_CRC_ON_DEFAULT define
2022-01-17 11:09:00 +01:00
e809952ca4
drivers/sx12{6,7}x: use inverse CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT 2022-01-14 10:31:55 +01:00
37bc47e21c
drivers/at: remove deprecated AT_SEND_ECHO define 2022-01-14 09:06:17 +01:00
380b2468e3
drivers/ethos: remove deprecated USE_ETHOS_FOR_STDIO define 2022-01-11 12:41:24 +01:00
f5b5af9469
drivers/ft5x06: add touch_dev interface 2022-01-09 16:43:34 +01:00
11f73ea5c9
drivers/ft5x06: add touch panel driver 2022-01-08 15:08:05 +01:00
86192de81b
drivers/stmpe811: improve interrupt callback management 2022-01-07 18:30:34 +01:00
ad03af4a50
drivers/hm330x: fix build issues when SAUL is used 2022-01-06 12:07:42 +01:00
e0324d5278
drivers/lis2dh12: fix missing stdbool include 2022-01-06 12:07:41 +01:00
ac1e926776
drivers/sm_pwm_01c: fix undefined saul attribute 2022-01-06 12:07:41 +01:00
768a989298
drivers/init_devs: reorder alphabetically auto_init calls 2022-01-06 12:07:41 +01:00
34f2cc6083
drivers: make use of new driver_with_{disp,touch}_dev.mk 2022-01-06 12:07:07 +01:00
b4267fbd5e
drivers: make use of new driver_with_saul.mk where applicable 2022-01-06 12:07:07 +01:00
Marian Buschsieweke
f022f88629
drivers/sps30: make cppcheck happy 2022-01-05 15:09:10 +01:00
Marian Buschsieweke
362b964ed2
drivers/sps30: use static_assert() instead of BUILD_BUG_ON() 2022-01-05 15:09:09 +01:00
0056648581
Merge pull request #17418 from aabadie/pr/drivers/periph_build_enh
drivers/periph_common: build periph module selectively
2022-01-04 14:59:39 +01:00
9963e28d18
drivers/sdcard_spi: replace GPIO_UNDEF by SPI_CS_UNDEF 2022-01-04 12:53:02 +01:00
acd73529a5
drivers/netdev: fix missing and non matching arguments in doc 2022-01-03 09:52:04 +01:00
7ce1894da9
drivers/candev: fix non matching argument in doc 2022-01-03 09:51:40 +01:00
chrysn
ffe2ef3da6 drivers/motor_driver: Use irq_restore 2021-12-21 18:23:11 +01:00
79df157727
sys: move rtc utility functions to their own module 2021-12-20 13:04:20 +01:00
749efa507d
drivers/periph_common: build periph module selectively 2021-12-20 13:04:20 +01:00
c9e30b01c0
Merge pull request #16333 from fjmolinas/pr_driver_hm3301
drivers/hm330x: initial commit
2021-12-16 17:56:45 +01:00
Francisco Molina
fe38284a3c drivers/hms330x: initial import 2021-12-16 15:19:44 +01:00
Martine Lenders
e062ad78f3
Merge pull request #17265 from miri64/ethos/fix/threadify-state-machine
ethos: move bulk of state machine out of ISR context
2021-12-16 12:24:14 +01:00
Martine Lenders
820a3976ad
ethos: move bulk of state machine out of ISR context
This moves the following parts of ethos' state machine out of ISR
context:

- Sending and replying to HELLO messages
- Byte-unstuffing

Some escape handling is still needed in the ISR handler, due to ethos'
protocol design, to determine if a received byte must go into the
netdev queue (tsrb) or the STDIO queue (isrpipe), but the actual
unstuffing is now done in the STDIO and netdev handler threads,
respectively.
2021-12-15 16:15:30 +01:00
Martine Lenders
568be105f2
stdio_ethos: move to ethos_stdio 2021-12-15 16:15:29 +01:00
16baad825d
drivers/ws281x: use coreclk() instead of CLOCK_CORECLOCK 2021-12-15 13:14:19 +01:00
Kevin "Tristate Tom" Weiss
e3f6212708
Merge pull request #17355 from leandrolanzieri/pr/boards/samd21/model_kconfig
boards/samd21-based: model Kconfig
2021-12-15 12:35:32 +01:00
Francisco
10165da210
Merge pull request #17308 from aabadie/pr/drivers/mhz19_ztimer
drivers/mhz19: migrate to ztimer
2021-12-15 11:05:16 +01:00
Leandro Lanzieri
14d986d25d drivers: add Kconfig hardware feature to various drivers
- fxos8700
- hdc1000
- pir
- pulse_counter
2021-12-15 10:30:51 +01:00
MrKevinWeiss
8fc06376e4
drivers/lsm6dsl Allow SAUL_DEFAULT in kconfig 2021-12-15 08:39:00 +01:00
MrKevinWeiss
be6e671d4c
drivers/saul: Fix spelling mistake 2021-12-15 08:38:59 +01:00
MrKevinWeiss
aa138dbe4b
drivers/lsm303dlhc: Allow SAUL_DEFAULT in kconfig 2021-12-15 08:38:59 +01:00
MrKevinWeiss
ac769807c4
drivers/lpsxxx: Allow SAUL_DEFAULT in kconfig 2021-12-15 08:38:58 +01:00
MrKevinWeiss
e6352fd383
drivers/lpsxxx: Allow SAUL_DEFAULT in kconfig 2021-12-14 16:17:06 +01:00
MrKevinWeiss
4654bc5eb1
drivers/lm75: Allow SAUL_DEFAULT in kconfig 2021-12-14 16:17:06 +01:00
MrKevinWeiss
5462583e89
drivers/l3g4200d: Allow SAUL_DEFAULT in kconfig 2021-12-14 16:17:05 +01:00
MrKevinWeiss
b1bb309566
driver/isl29020: Allow SAUL_DEFAULT in kconfig 2021-12-14 16:17:05 +01:00
e20f3e5d32
Merge pull request #17381 from gschorcht/drivers/atwinc15x0_migrate_ztimer
drivers/atwinc15x0: migrate to ztimer
2021-12-13 15:10:51 +01:00
Gunar Schorcht
c6874dfbdf drivers/atwinc15x0: mirgate to ztimer 2021-12-13 13:58:42 +01:00
c5e28d4ef3
drivers/lis3mdl: fix timer dep + migrate app to ztimer 2021-12-12 10:45:09 +01:00
3e717480ac
drivers/ws281x: pull xtimer module from test application 2021-12-11 17:56:40 +01:00
e1310e3378
drivers/sps30: fix unused include, migrate to ztimer 2021-12-11 17:56:39 +01:00
e71988d22a
drivers/shtc1: migrate to ztimer 2021-12-11 17:56:39 +01:00
097b1970d2
drivers/pulse_counter: migrate to ztimer 2021-12-11 17:56:39 +01:00
38c2ea57aa
drivers/pn532: migrate to ztimer 2021-12-11 17:56:39 +01:00
d9fe3a74e5
drivers/lis2dh12: migrate to ztimer 2021-12-11 16:53:14 +01:00
9d53ed3ebf
drivers/ad7746: migrate to ztimer 2021-12-11 16:53:14 +01:00
Leandro Lanzieri
b761701ca3
sys/rtt_rtc/kconfig: do not select RTC feature 2021-12-10 18:54:28 +01:00
Leandro Lanzieri
bfdfbb1a48
cpu/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
d0eb8e2f7b
Merge pull request #17361 from fjmolinas/pr_sdcard_ztimer
drivers/sdcard_spi: convert to ztimer_usec
2021-12-09 17:44:48 +01:00
Francisco
7362074f49
Merge pull request #17235 from leandrolanzieri/cpu/kinetis/model_kconfig
cpu/kinetis: model kconfig
2021-12-09 14:22:10 +01:00
Francisco Molina
7cffaab47a drivers/sdcard_spi: factorize timeout code 2021-12-09 14:00:39 +01:00
benpicco
ccc97db715
Merge pull request #17360 from viktorbatista/debug_fixes
core/include/debug.h: minor fix in debug.h
2021-12-09 12:41:33 +01:00
Francisco
e8d8759a69
Merge pull request #17358 from aabadie/pr/drivers/ztimer_bis
drivers: migrate mpu9x50 and si70xx to ztimer
2021-12-09 10:39:52 +01:00
Kevin "Tristate Tom" Weiss
285e1e61cf
Merge pull request #17346 from gschorcht/cpu/esp32/esp_i2c_sw_clear_bus
cpu/esp32: add clear bus during init to the I2C software implementation
2021-12-09 10:13:17 +01:00
5c99f951cd
Merge pull request #17315 from aabadie/pr/drivers/ztimer
drivers: migrate some drivers to ztimer
2021-12-09 09:49:47 +01:00
3a8a543a0c
drivers/mpu9x50: migrate to ztimer 2021-12-09 09:32:31 +01:00
f4474ed817
drivers/si70xx: migrate to ztimer 2021-12-09 09:32:31 +01:00
Francisco Molina
74fc764a41 drivers/sdcard_spi: convert to ztimer_usec 2021-12-09 08:02:06 +01:00
Francisco Molina
8a4e7bf7fe drivers/sdcard_spi: uncrustify 2021-12-09 07:58:49 +01:00
Benjamin Valentin
75a6892480 drivers/stmpe811: add ; after DEBUG() 2021-12-08 21:47:29 +01:00
benpicco
e8cbf1ea90
Merge pull request #16681 from benpicco/drivers/dose-collision
drivers/dose: make use of UART collision detection feature
2021-12-08 20:48:28 +01:00
Benjamin Valentin
8c5b898ed4 drivers/mtd_spi_nor: add ; after DEBUG() 2021-12-08 18:30:43 +01:00
Benjamin Valentin
0c5631bd52 drivers/dose: make use of periph_uart_collision feature 2021-12-08 17:35:00 +01:00
2a1be13f17
drivers/ccs811: migrate to ztimer 2021-12-08 15:15:30 +01:00
1acdec389e
drivers/lsm6dsl: migrate to ztimer 2021-12-08 15:15:30 +01:00
40a1dcb35b
drivers/tsl2561: migrate to ztimer 2021-12-08 15:15:30 +01:00
aa65feab25
drivers/si114x: migrate to ztimer 2021-12-08 15:15:30 +01:00
0076eb83fc
drivers/stmpe811: migrate to ztimer 2021-12-08 15:15:30 +01:00
Leandro Lanzieri
15165bfdf7
Merge pull request #17299 from fjmolinas/pr_nrf52_boards_kconfig
boards: model nrf52 boards
2021-12-08 14:45:03 +01:00
Francisco Molina
69ac014664 drivers/*: add HAVE* 2021-12-08 13:25:26 +01:00
Francisco Molina
738ec239b1 drivers/saul/Kconfig: fix autoselection based on SAUL_DEFAULT 2021-12-08 13:25:26 +01:00
Francisco Molina
39cfa43262 drivers/apds99xx/Kconfig: fix multimodel selection 2021-12-08 13:25:26 +01:00
Francisco Molina
2dab9eeb32 drivers/lpsxxx: fix variant selection 2021-12-08 13:25:26 +01:00
Francisco Molina
cfdd941f9b drivers/lis2dh12: explicit bus variant selection 2021-12-08 10:39:55 +01:00
Gunar Schorcht
739fbf41fb drivers/mcp47xx: add Kconfig 2021-12-08 05:42:07 +01:00
Gunar Schorcht
033fa00b9f drivers/mcp47xx: SAUL integration 2021-12-08 05:42:07 +01:00
Gunar Schorcht
499cbb9062 drivers/mcp47xx: add driver for MCP47xx DAC devices 2021-12-08 05:42:07 +01:00
José Alamos
ce8cda2fd8
Merge pull request #16932 from benpicco/socket_zep-hal
socket_zep: port to radio HAL
2021-12-07 18:24:33 +01:00
Leandro Lanzieri
e04169d2d6
drivers/tmp00x/kconfig: rework modelling 2021-12-07 11:32:16 +01:00
Leandro Lanzieri
2c35ab234e
drivers/tcs37727/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
2d27b993d7
drivers/mpl3115a2/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
a223847621
drivers/mma8x5x/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
3e1ba5af2d
drivers/mag3110/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
88e4c1e5f9
drivers/lis3dh/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
ef71ff5199
drivers/hdc1000/kconfig: add hardware feature 2021-12-07 11:32:14 +01:00
Leandro Lanzieri
e2a78efb42
drivers/fxos8700/kconfig: add hardware feature 2021-12-07 11:32:14 +01:00
benpicco
228ba83dc6
Merge pull request #17184 from benpicco/drivers/dose-standby_fix
drivers/dose: fix standby mode
2021-12-07 11:09:43 +01:00
Francisco
de7df7201a
Merge pull request #17309 from aabadie/pr/pkg/ztimer
pkg: migrate some packages to ztimer
2021-12-07 09:13:39 +01:00
Gunar Schorcht
2cbd6d19cb drivers/aip31068: remove dependeny of I2C implementation on ESP32
On the ESP32 it is often not possible with the I2C software implementation to communicate with an AIP31068 based LCD module.  Therefore, the I2C hardware implementation is enabled when the AIP31068 driver is used, but it is more buggy than stable. The timing of the two implementations seems to be almost identical. The only difference is that the hardware implementation clears the bus before each access by sending 10 clock pulses on the SCL line while SDA is LOW. Using the same mechanism during I2C initialization for the software implementation solves the communication problem with the AIP31068. The special dependency on I2C hardware implementation for AIP31068 is removed therefore.
2021-12-06 22:02:30 +01:00
2e0c02b25d
Merge pull request #17340 from gschorcht/driver/fix_css811_read_status
driver/css811: fix read status
2021-12-04 17:41:02 +01:00
Gunar Schorcht
74afd3b365 drivers/hd44780: PCF857x I2C interface added 2021-12-04 17:38:34 +01:00
benpicco
0646862421
Merge pull request #10430 from gschorcht/drivers_pcf857x
drivers: add PCF857X I2C I/O expander driver
2021-12-04 16:57:01 +01:00
Gunar Schorcht
a471d947f0 drivers/saul: add PCF857X driver 2021-12-04 14:11:04 +01:00
Gunar Schorcht
7eb599e765 drivers: add PCF857X I/O expander driver 2021-12-04 14:11:04 +01:00
Gunar Schorcht
6bdc590516 drivers/ccs811: small cleanups in documentation 2021-12-04 13:43:31 +01:00
Gunar Schorcht
27265095cd drivers/ccs811: fix the data ready check
When the measurement results are read from the `ALG_RESULT_DATA` register set including the STATUS register, the `DATA_RDY` flag in the STATUS register is already cleared during reading. Therefore it is not possible to check this flag after the `ALG_RESULT_DATA` has been read. Therefore the function `ccs811_read_iaq` always returned `CCS811_ERROR_NO_NEW_DATA` although the data were valid either after checking for new data with the function `ccs811_data_ready` or after triggering the Data Ready interrupt.
2021-12-04 13:43:31 +01:00
8329112c45
Merge pull request #17088 from fjmolinas/pr_stmpe811_spi
drivers/stmpe811: add spi mode
2021-12-03 21:37:46 +01:00
Francisco Molina
e17fe0aee2 drivers/stmpe811: add spi mode 2021-12-03 17:12:03 +01:00
Marian Buschsieweke
c97a2119f3
drivers/mcp2515: use container_of()
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Francisco
215fb49446
Merge pull request #17288 from leandrolanzieri/pr/drivers/ili9341/add_kconfig_feature
drivers/ili9341/Kconfig: add feature to indicate hardware
2021-12-03 00:46:29 +01:00
Francisco
662aba4680
Merge pull request #17307 from leandrolanzieri/pr/sys/ztimer/kconfig/fix_compat_deps
sys/ztimer/kconfig: enable xtimer compat only with timer backend
2021-12-02 14:52:30 +01:00
b6cc07009f
Merge pull request #17284 from fjmolinas/pr_ztimer_no_periph_rtt
sys/ztimer: add 'ztimer_no_periph_rtt'
2021-12-02 11:02:24 +01:00
Leandro Lanzieri
004da59672
sys/ztimer/kconfig: enable xtimer compat only with timer backend
This also moves the selection of MODULE_ZTIMER_PERIPH_TIMER from
MODULE_ZTIMER_USEC to the visible symbol ZTIMER_USEC.
2021-12-02 09:38:06 +01:00
Francisco Molina
7c3360e4d6 sys/ztimer: add 'ztimer_no_periph_rtt'
This is a temporary fix for Issue #17060. It allows to disable
auto inclusion of `ztimer_periph_rtt` in cases where another
module or application requires direct access.

Limitations:
- as ifeq are involved order of inclusion matters, therefore
  these modules should be included early in the build at application
  level and not in modules `Makefile.dep`
- this does not disallow direct inclusions of `ztimer_periph_rtt`,
  since this only disables auto inclusion of these modules

This is a temporary solution since this is already possible with
Kconfig, but not in make.
2021-12-02 07:54:38 +01:00
25d1e2daa2
pkg/driver_bme680: migrate to ztimer 2021-12-01 17:54:55 +01:00
19018760a5
drivers/mhz19: migrate to ztimer 2021-12-01 14:32:41 +01:00
Francisco
7a8f840627
Merge pull request #17303 from aabadie/pr/drivers/remove_useless_xtimer_includes
drivers: remove some useless xtimer includes
2021-12-01 13:46:08 +01:00
1e2d53987b
drivers/si114x: remove useless xtimer include 2021-12-01 11:29:32 +01:00
Leandro Lanzieri
7b35d6e0f0
drivers/sht1x: rework Kconfig 2021-12-01 10:14:35 +01:00
Leandro Lanzieri
371161548c
drivers/ltc4150/kconfig: add feature 2021-12-01 10:14:35 +01:00
a079ec818b
drivers/sds011: remove useless xtimer include 2021-12-01 10:06:25 +01:00
c6bf3fc897
drivers/hmc5883l: remove useless xtimer include 2021-12-01 10:06:24 +01:00
51638c0ba1
drivers/hts221: remove useless xtimer include 2021-12-01 10:06:24 +01:00
f2dcaee7bd
drivers/grove_ledbar: remove useless xtimer include 2021-12-01 10:06:24 +01:00
9ad52ec7eb
drivers/feetech: remove useless xtimer include 2021-12-01 10:06:24 +01:00
06211f967b
drivers/dfplayer: remove useless xtimer include 2021-12-01 10:06:24 +01:00
03770e36e7
drivers/tsl2561: remove useless xtimer include 2021-12-01 10:06:24 +01:00
557e929bdb
drivers/vcnl40x0: remove useless xtimer include 2021-12-01 10:06:23 +01:00
e4ab484bcb
drivers/veml6070: remove useless xtimer include 2021-12-01 10:06:23 +01:00
86a388a280
drivers/ws281x: remove useless xtimer include 2021-12-01 10:06:23 +01:00
Francisco Molina
1ef9ca8a6f drivers/soft_spi: remove nanosleep 2021-11-30 10:31:22 +01:00
Gunar Schorcht
8794b357a1
Merge pull request #17289 from leandrolanzieri/pr/drivers/sx126x/kconfig/rework
drivers/sx126x/Kconfig: rework model selection
2021-11-30 06:01:01 +01:00
benpicco
05b9c84369
Merge pull request #17255 from MrKevinWeiss/pr/kconfig/sam54
.murdock: Add same54-xpro to kconfig tests
2021-11-29 23:22:23 +01:00
benpicco
c84a40abc4
Merge pull request #17275 from gschorcht/drivers/periph_i2c_acquire_void
drivers/periph_i2c: let i2c_acquire return void
2021-11-29 11:44:59 +01:00
Leandro Lanzieri
f979ec5812
drivers/sx126x/Kconfig: rework model selection 2021-11-29 10:45:10 +01:00
Leandro Lanzieri
4512a25427
drivers/ili9341/Kconfig: add feature to indicate hardware 2021-11-29 10:38:48 +01:00
Kevin "Tristate Tom" Weiss
7f649aa505
Merge pull request #17270 from leandrolanzieri/pr/boards/saml21/model_kconfig
boards/saml21-based: model kconfig
2021-11-29 09:57:15 +01:00
MrKevinWeiss
fba9cad987
periph/gpio: Model TAMPER_WAKE for kconfig 2021-11-29 09:12:28 +01:00
MrKevinWeiss
f98128f0fb
boards/same54-xpro: Kconfig mtd model 2021-11-29 09:12:28 +01:00
MrKevinWeiss
51f92fa816
drivers/periph_spi: Kconfig SPI_ON_QSPI model 2021-11-29 09:12:27 +01:00
Gunar Schorcht
312c31dce5 drivers: update to new I2C API 2021-11-29 06:35:25 +01:00
Gunar Schorcht
3d93b2bcf0 drivers/periph/i2c: i2c_acquire() returns void
Since all implementations simply return 0 and most drivers do not check the return value, it is better to return void and use an assert to ensure that the given device identifier and given device parameters are correct.
2021-11-29 06:35:25 +01:00
Leandro Lanzieri
d962787043
Merge pull request #17274 from fjmolinas/pr_kconfig_nrf51
cpu/nrf51: model kconfig
2021-11-26 12:55:27 +01:00
Leandro Lanzieri
e44ff31560
drivers/sx127x/kconfig: rework modelling 2021-11-26 11:06:50 +01:00
Francisco Molina
3a4f30ec80 drivers/periph_common: add periph_uart_hw_fc 2021-11-26 10:39:40 +01:00
Francisco Molina
272ebd73f4 drivers/bmx055: add saul_default Kconfig selection 2021-11-26 10:39:40 +01:00
Francisco Molina
dbdaa776e4 drivers/mma8x5x: add HAVE_MMA8X5X 2021-11-25 12:33:40 +01:00
f47db6f2c2
drivers/dsp0401: migrate to ztimer 2021-11-23 15:58:56 +01:00
Leandro Lanzieri
7036388769
drivers/periph_common: add RTC ms module to Kconfig 2021-11-22 12:25:57 +01:00
Leandro Lanzieri
e525e23143
drivers/dfplayer: add no_strerror option to Kconfig 2021-11-22 12:25:57 +01:00
Leandro Lanzieri
0a19e58fcb
driver/at30tse75x/Kconfig: enable as default sensor when present 2021-11-22 12:25:31 +01:00
Leandro Lanzieri
e6789198f8
drivers/at24mac/Kconfig: enable as EUI provider when present 2021-11-22 12:25:31 +01:00
Leandro Lanzieri
7c5630032f
drivers/bmx280: refactor Kconfig model 2021-11-22 12:25:31 +01:00
Leandro Lanzieri
347fb256d5
drivers/at24mac: add Kconfig feature 2021-11-22 12:25:31 +01:00
Wouter Symons
5055d0993e drivers/dht: correct interpreting raw values 2021-11-20 14:55:02 +01:00
Benjamin Valentin
669104d841 cpu/sam0_common: SPI: don't perform DMA transfer for small buffers
Setting up a DMA transfer can take longer than sending out a buffer
byte by byte if the buffer is small.

DMA only shows advantages for large buffers, using it for every transfer
will cause a net slowdown.

Since we did not come up with a good way to determine the treshold based
on the SPI frequency, just use a fixed buffer for now so that DMA can be
used without slowing things down overall.
2021-11-19 17:22:51 +01:00
benpicco
24aa7eb6bf
Merge pull request #17191 from benpicco/drivers/periph-byte_type
drivers/periph: use uint_fast8_t as default type
2021-11-18 17:21:55 +01:00
Leandro Lanzieri
c5f9d50a57 socket_zep: add Kconfig 2021-11-18 14:17:29 +01:00
Benjamin Valentin
1768e93710 drivers/periph: use uint_fast8_t as default type
The default driver type is just an index into a device array defined
by the board.

If a platform wants to encode additional information in the device type,
it can define a custom type.

This means we can just set the default type to whatever fits the target
CPU best.

On ARM this will still be a 32 bit word, but on AVR it will by a 8 bit byte.
2021-11-18 10:29:50 +01:00
Benjamin Valentin
4664e63ad4 drivers/soft_uart: fix type usage 2021-11-18 10:14:51 +01:00
Leandro Lanzieri
6a1340da26
drivers/si70xx/kconfig: rework 2021-11-18 09:03:07 +01:00
Leandro Lanzieri
a8d679062a
drivers/ccs811/kconfig: add feature symbol 2021-11-18 09:03:07 +01:00
Leandro Lanzieri
ab84ec5134
drivers/bmx280: rework Kconfig model 2021-11-18 09:03:07 +01:00
f8e7e2f557
usbdev_mock: Adapt to xmit API
Includes the adaptations needed in the test application
2021-11-16 20:16:59 +01:00
597f1d19aa
usbdev: Refactor to xmit API
This API change refactors the usbdev API to supply buffers via the
usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
be used when defining buffers used for endpoints to adhere to the DMA alignment
restrictions often required with usb peripherals.

Main advantage is that the usbdev peripherals no longer have to allocate
oversized buffers for the endpoint data, potentially saving multiple KiB
of unused buffer space. These allocations are now the responsibility of
the individual USB interfaces in the firmware
2021-11-16 11:21:07 +01:00
59e85cf921
usbdev: Refactor to xmit API
This API change refactors the usbdev API to supply buffers via the
usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
be used when defining buffers used for endpoints to adhere to the DMA alignment
restrictions often required with usb peripherals.

Main advantage is that the usbdev peripherals no longer have to allocate
oversized buffers for the endpoint data, potentially saving multiple KiB
of unused buffer space. These allocations are now the responsibility of
the individual USB interfaces in the firmware
2021-11-16 11:21:00 +01:00
Francisco
6dbf1c3013
Merge pull request #17102 from aabadie/pr/drivers/ads101x_ztimer
drivers/ads101x: migrate to ztimer
2021-11-15 09:56:14 +01:00
benpicco
7da50b05a9
Merge pull request #17190 from benpicco/drivers/dose-padding
drivers/dose: reduce struct padding
2021-11-12 20:45:24 +01:00
Karl Fessel
3d33cee551
Merge pull request #17137 from kfessel/p-ztimer-at30tse75x
driver/at30tse75x: port to ztimer_usec
2021-11-12 17:12:11 +01:00
Benjamin Valentin
b34b67feee drivers/dose: reduce struct padding
By moving all the single byte struct elements to the end, we can reduce
padding inside `dose_t` and ensure that `recv_buf` is always aligned.

This saves some RAM:

master
------
   text	   data	    bss	    dec	    hex	filename
  36384	    136	  12944	  49464	   c138 tests/driver_dose/bin/samr21-xpro/tests_driver_dose.e

this patch
----------
   text	   data	    bss	    dec	    hex	filename
  36484	    136	  12936	  49556	   c194	tests/driver_dose/bin/samr21-xpro/tests_driver_dose.elf
2021-11-12 16:19:20 +01:00
Benjamin Valentin
965fa3ef10 drivers/dose: clarify timeout calculation 2021-11-11 14:43:07 +01:00
Benjamin Valentin
32c29bf062 drivers/dose: fix standby mode
Previously we would not disable the sense pin, this meant that
a node could still wake up if the standby pin is not connected.

Properly disable sensing when in standby and wait for a state
transition to IDLE to avoid aborting a reception and messing up the
DOSE internal state.
2021-11-11 14:33:55 +01:00
Francisco
b609646961
Merge pull request #17138 from fjmolinas/pr_sx126x_fixes
drivers/sx126x: fix sync word and TX PA configuration
2021-11-11 10:59:08 +01:00
Benjamin Valentin
f89d0c7c25 drivers/periph/uart: add periph_uart_collision feature 2021-11-10 15:57:45 +01:00
benpicco
026d6cfba1
Merge pull request #16768 from benpicco/drivers/dose-timeout_bytes
drivers/dose: calculate timeout based on symbol rate
2021-11-10 12:40:13 +01:00
Francisco
035ee0a595
Merge pull request #17172 from kaspar030/drivers_ds18_missing_stdint.h
drivers/ds18.h: add missing stdint.h include
2021-11-10 08:42:03 +01:00
Francisco
fb4947937f
Merge pull request #17169 from gschorcht/doc/fix_ccs811_doc
drivers/ccs811: fix of documentation
2021-11-10 08:41:26 +01:00
5d3a4d63d8 drivers/ds18.h: add missing stdint.h include 2021-11-09 21:48:48 +01:00
Gunar Schorcht
8e88906445 drivers/ccs811: fix of documentation 2021-11-09 19:50:07 +01:00
benpicco
12ade5a8b5
Merge pull request #16752 from benpicco/drivers/dose-standby
drivers/dose: enable standby pin
2021-11-09 18:20:17 +01:00
Benjamin Valentin
6c1481b6ee drivers/dose: enable standby pin
Some CAN transceivers have a standby pin that has to be pulled low
in order to use it.
If the interface is disabled we can set it to high again to save some
power.
2021-11-09 15:19:35 +01:00
Francisco Molina
e17e3254e1 drivers/sx126x: add tx_pa_mode
BOARDs with RF switch might only support one of the TX modes, and
on init the BOARD needs to be configured accordingly and the correct
mode selected on TX.
2021-11-08 18:42:05 +01:00
benpicco
358abcf133
Merge pull request #17156 from maribu/drivers/encx24j600
drivers/encx24j600: fix unaligned memory access
2021-11-07 18:55:58 +01:00
Marian Buschsieweke
4c22716001
drivers/encx24j600: make cppcheck happy
Rename cmd buffer to cmd_buf to avoid shadowing outer function.
2021-11-07 08:46:06 +01:00
Marian Buschsieweke
9f1cece6ee
drivers/encx24j600: fix unaligned memory access 2021-11-06 20:33:43 +01:00
Marian Buschsieweke
5e75047a2b
drivers/lis3dh: fix unaligned memory access
The bogus packed attribute added to lis3dh_data_t resulted in the
structure being aligned two 1 byte. It was later casted to an
uint16_t pointer (which is aligned two 2 bytes). By dropping the
packed attribute the alignment mismatch is fixed.
2021-11-06 20:05:05 +01:00
26346188b9
Merge pull request #17105 from aabadie/pr/drivers/ata8520e_ztimer
drivers/ata8520e: migrate to ztimer
2021-11-05 16:22:59 +01:00
baa1ed38cc
drivers/ata8520e: migrate to ztimer 2021-11-05 12:49:37 +01:00
benpicco
bfb8d1d3fd
Merge pull request #17014 from benpicco/periph/gpio-cb_not_NULL
drivers/periph/gpio: state that interrupt callback must not be NULL
2021-11-05 12:47:16 +01:00
Karl Fessel
314bc00902 driver/at30tse75x: cleanup for static tests 2021-11-05 12:19:35 +01:00
Karl Fessel
fc8e6f01bd driver/at30tse75x: port to ztimer_usec 2021-11-05 12:19:35 +01:00
eaa007d412
Merge pull request #17135 from bergzand/pr/usbdev/fix_cppcheck_vera
usb(dev|bus): Fix static-check issues
2021-11-05 08:36:53 +01:00
7ce5d8a5dd
Merge pull request #17112 from aabadie/pr/drivers/rn2xx3_ztimer
drivers/rn2xx3: migrate to ztimer
2021-11-05 00:38:55 +01:00
Francisco
f08c5da7aa
Merge pull request #17101 from aabadie/pr/drivers/bmp180_ztimer
drivers/bmp180: migrate to ztimer
2021-11-04 15:25:48 +01:00
Karl Fessel
4d552e7e4a driver/at30tse75x: avoid direct use of xtimer_ticks 2021-11-04 14:16:07 +01:00
c918630e5e
usbdev_mock: Uncrustified and fixed static-check issues 2021-11-04 13:49:34 +01:00
295092bc29
drivers/rn2xx3: migrate to ztimer 2021-11-04 10:39:36 +01:00
Francisco Molina
5579fd2220 drivers/xbee: uncrustify 2021-11-02 21:46:19 +01:00
Francisco Molina
472f6495a8 drivers/xbee: migrate to ztimer_msec 2021-11-02 21:46:19 +01:00
9029e1caf9
drivers/bmp180: migrate to ztimer 2021-11-02 14:57:50 +01:00
3fa2154d48
drivers/ads101x: migrate to ztimer 2021-11-02 14:49:45 +01:00
Leandro Lanzieri
f64b166319
Merge pull request #16845 from MrKevinWeiss/pr/kconfig/supportstms
.murdock: Add nucleo boards to kconfig test
2021-11-01 09:55:22 +01:00
Francisco Molina
9a2c880a60 drivers/stmpe811: use errno 2021-10-30 23:25:50 +02:00
dbbdc8590e
Merge pull request #17031 from fjmolinas/pr_lvgl_ztimer
pkg/lvgl: use ztimer instead of xtimer
2021-10-28 11:36:04 +02:00
Ollrogge
c6e94aa6be periph/flashpage.h: add comment about riotboot impact on flashpage layout 2021-10-26 14:35:33 +02:00
Francisco
7f3344870d
Merge pull request #16972 from Ollrogge/flashpage_pr
periph/flashpage: extend API
2021-10-26 12:51:05 +02:00
Francisco Molina
bac1f8c82d drivers/ili9341: use ztimer instead of xtimer 2021-10-25 10:48:49 +02:00
9f8aee4e95
usbdev: Deprecate USBDEV_EVENT_TR_FAIL 2021-10-24 19:33:29 +02:00
Ollrogge
72d47013dd periph/flashpage: extend API 2021-10-19 22:33:09 +02:00
Benjamin Valentin
f624eb473a drivers/periph/gpio: state that interrupt callback must not be NULL
This allows us to use `assert(cb != NULL)` inside `gpio_init_int()`
and save a few cycles of interrupt latency.
2021-10-19 21:26:50 +02:00
MrKevinWeiss
9b6a63a951
drivers/kconfig: simplify shared rtt/rtc hardware in kconfig 2021-10-14 11:28:46 +02:00
MrKevinWeiss
c7820cf7e5
*/rtt|rtc: Fix Kconfig modeling 2021-10-14 11:28:44 +02:00
MrKevinWeiss
0c5c657912
drivers/spi: Model Kconfig spi_gpio_mode 2021-10-14 11:28:43 +02:00
Gunar Schorcht
62dd51d8ba drivers: add anchor to doc to allow stable references 2021-10-13 17:37:16 +02:00
Jose Alamos
cb6e242b65
net/netdev_ieee802154_submac: prevent calling ACK TO fired if cancelled 2021-10-07 14:37:05 +02:00
benpicco
b4de70e9d8
Merge pull request #16922 from jia200x/pr/netdev/signal_netdev_register
netdev: add netdev_register_signal
2021-10-05 22:59:49 +02:00
Jose Alamos
503f5a9ddb
netdev: add netdev_register_signal 2021-10-05 14:35:07 +02:00
2ccdac1b7f
drivers/ws281x: declare pseudomodules at driver level 2021-10-05 11:48:53 +02:00
22d9040211
drivers/at: declare pseudomodules at driver level 2021-10-05 11:48:53 +02:00
a090f492bb
drivers/at24cxxx: declare pseudomodules at driver level 2021-10-05 11:48:53 +02:00