Benjamin Valentin
634714ff78
drivers/at86rf215: implement Reduced Power Consumption
...
Reduced Power Consumption is available for MR-O-QPSK and
MR-FSK.
In this mode the receiver will be turned off periodically,
defaulting to a 50% duty cycle.
This reduces power consumption when in IDLE RX by almost 50%
and is therefore enabled by default.
2020-09-07 13:48:47 +02:00
Leandro Lanzieri
16b5fd303b
drivers: add usbdev_mock
2020-09-04 15:01:16 +02:00
Francisco
6f84870c26
Merge pull request #14634 from benpicco/eui_provider
...
net/link_layer: implement EUI provider
2020-09-01 16:26:08 +02:00
benpicco
6f271b7d3e
Merge pull request #14903 from benpicco/drivers/include/periph/rtc-fix
...
drivers/periph_common: RTC: fix doxygen
2020-09-01 15:15:55 +02:00
Vincent Dupont
8526e68b70
drivers/adcxx1c: add clear alert function
2020-08-31 15:53:53 +02:00
Benjamin Valentin
bd57640d5b
drivers/periph_common: RTC: fix doxygen
2020-08-31 14:16:42 +02:00
Gunar Schorcht
147b79169c
drivers/periph/gpio: add comparison functions
...
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers and other modules must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +02:00
Benjamin Valentin
3e8d6388f8
netdev_ieee802154: use eui_provider in netdev_ieee802154_setup()
2020-08-30 23:43:57 +02:00
benpicco
a0bae383d7
Merge pull request #14818 from Nishchay-sopho/drivers/sps30/add_sleep_mode
...
drivers/sps30: Add sleep mode
2020-08-25 23:49:32 +02:00
Nishchay-sopho
a368b0bc36
drivers/sps30: Add sleep mode
2020-08-25 16:20:18 +02:00
9b2aa40e03
Merge pull request #14038 from benpicco/mtd_pagewise
...
mtd: add page addressed operations to allow access > 4GiB on SD cards
2020-08-25 13:10:20 +02:00
Marian Buschsieweke
92ae260617
Merge pull request #14778 from benpicco/sys/luid_netdev
...
sys/luid: add luid_netdev_get_eui48() & luid_netdev_get_eui64()
2020-08-21 21:30:14 +02:00
Benjamin Valentin
d29397cfd8
netdev_ieee802154: add netdev_ieee802154_setup()
2020-08-21 15:33:19 +02:00
6199ada6b5
drivers/sx127x: migrate to ztimer
2020-08-20 13:41:32 +02:00
Benjamin Valentin
02f37b998a
drivers/at24cxxx: export page-wise write function
...
Export the _write_page() function so it can be used by the MTD subsystem.
2020-08-18 17:25:40 +02:00
Benjamin Valentin
7c8fe862ce
drivers/at25xxx: export page-wise write function
...
Export the _write_page() function so it can be used by the MTD subsystem.
2020-08-18 17:25:40 +02:00
Benjamin Valentin
4034f96169
mtd: add page addressed operations
...
Currently read(), write() and erase() all use 32 bit addressing.
This is a problem when writing to media > 4 GiB, e.g. SD cards.
The current implementation would wrap around after 4 GiB and corrupt data.
To avoid this, add functions to the MTD subsystem that allow for page-wise
addressing. This is how most of the underling storage drivers and the
file-systems above work anyway.
In the future we should then deprecate the 32-bit functions if all drivers
are converted.
2020-08-18 17:25:39 +02:00
Benjamin Valentin
1582b105d3
drivers/at86rf2xx: fix typo
2020-08-17 22:53:51 +02:00
Benjamin Valentin
decadc41a0
drivers/dose: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
4f19b54b7b
drivers/at86rf215: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
53eedc283b
drivers/at86rf2xx: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
7ceb3f0a68
netdev: add netdev_register() to keep track if netdev IDs
...
It is desireable to have a way to identify network devices.
This should be independent from the type of netdev, so a common identifier is needed.
Base this on the driver ID and the index in the configuration struct.
This way we achive unique IDs that stay consistent for any firmware flashed on a board.
2020-08-17 22:50:18 +02:00
Nishchay-sopho
3245dee8d8
drivers/sps30: Update units of measurement
2020-08-12 12:50:35 +02:00
Francisco
ad3568be87
Merge pull request #14712 from benpicco/gpio_init_int-clarify
...
periph/gpio: clarify behavior of gpio_irq_enable()
2020-08-11 11:30:05 +02:00
Benjamin Valentin
7543e714c1
drivers/periph_common: RTC: move RIOT_EPOCH to header, document it.
2020-08-07 13:22:19 +02:00
Benjamin Valentin
8c95198cbb
periph/gpio: clarify behavior of gpio_irq_enable()
...
What happens with events that occured after `gpio_irq_disable()` is
currently not defined.
If they are not cleared, they will generate an interrupt on `gpio_irq_enable()`.
This does not seem like the intended behavior, so make the documentation more
explicit.
2020-08-05 17:41:27 +02:00
José Alamos
7967066f51
Merge pull request #14657 from maribu/netdev_doc
...
drivers/net: Fix netdev_driver_t doc
2020-08-04 10:49:24 +02:00
Benjamin Valentin
aa0e5e7afa
drivers/cc110x: replace binary constants and use unsigned char
...
binary constants are a GCC extension
2020-07-31 13:38:03 +02:00
Benjamin Valentin
2e34298265
drivers/nrf24l01p: use unsigned char
2020-07-31 13:38:03 +02:00
Marian Buschsieweke
86513dc97a
drivers/net: Fix netdev_driver_t doc
...
- Fix indent
- Use @reval instead of @return when referring to a single return value
- Use term "frame" instead of "packet"
2020-07-30 20:22:17 +02:00
4b4e9830b0
drivers/touch_dev: clarify touch position coordinates origin
2020-07-29 14:49:17 +02:00
388bbfa008
drivers: add generic screen wrapper around display and touch devices
2020-07-29 14:30:03 +02:00
benpicco
7acdecb1df
Merge pull request #14447 from Nishchay-sopho/drivers/scd30
...
driver/scd30 : Add driver for scd30 sensor
2020-07-28 12:41:58 +02:00
benpicco
ecab75b529
Merge pull request #13632 from benpicco/cpu/sam0_common/uart-deinit
...
drivers/periph/uart: add periph_uart_reconfigure feature & implementation for sam0
2020-07-28 11:12:19 +02:00
nagrawal
900e4b61dc
driver/scd30: Add driver for Sensirion SCD30
...
Created tests for Sensirion scd30 driver
Moved Makefile.dep and Makefile.include as per new spec
2020-07-28 10:38:01 +02:00
Benjamin Valentin
3eb54179ae
drivers/periph/uart: add periph_uart_reconfigure feature
2020-07-28 10:10:15 +02:00
Benjamin Valentin
7af8a3e2d3
drivers/periph/timer: add note about TIM_FLAG_RESET_ON_MATCH
2020-07-27 17:17:08 +02:00
Francisco
d187e83221
Merge pull request #14570 from fjmolinas/pr_fix_mock_rtt_defs
...
drivers/rtt: override RTT_MAX_VALUE and RTT_FREQUENCY for mock
2020-07-22 16:33:29 +02:00
Francisco Molina
9dde6ec53d
drivers/rtt: overrite RTT_MAX_VALUE and RTT_FREQUENCY for mock
...
mock_rtt relies on setting mock values for RTT_MAX_VALUE and
RTT_FREQUENCY. Platforms with a rtt will already define these
values which leads to mock_rtt working with different values than
rtt_rtc.
This commit changes the ifdef logic so that when using mock_rtt
RTT_MAX_VALUE and RTT_FREQUENCY are redefined.
2020-07-22 08:52:54 +02:00
Akshai M
60170971bd
net/l2filter : Update documentation
2020-07-22 00:26:09 +05:30
Akshai M
caab4cd8c5
net/l2filter : Move 'L2FILTER_LISTSIZE' to 'CONFIG_'
2020-07-22 00:26:09 +05:30
Hendrik van Essen
9d068d582a
drivers/pca9633: make enum anonymous
2020-07-17 15:05:32 +02:00
Benjamin Valentin
b080d3da7a
drivers/soft_uart: implement inverted TX & RX
...
In the current implementation, RX is flank based, so it's entirely level
agnostic.
I still chose to include a SOFT_UART_FLAG_INVERT_RX flag for symmetry and
to allow for a possible future, sampling based implementation.
2020-07-14 23:04:36 +02:00
Benjamin Valentin
96c67b0fa5
drivers/soft_uart: add software based UART implementation
2020-07-14 22:51:59 +02:00
Francisco
325b7a8d8e
Merge pull request #13631 from benpicco/cpu/sam0_common/spi-deinit
...
drivers/periph/spi: add periph_spi_reconfigure feature & implementation for sam0
2020-06-30 15:34:53 +02:00
Leandro Lanzieri
955efd85ff
drivers/at: Add at_urc_isr module to process URCs upon arrival
2020-06-30 11:41:13 +02:00
benpicco
a92dac5701
Merge pull request #14329 from Nishchay-sopho/drivers/sdp3x
...
driver/sdp3x : Add driver for sdp3x sensor
2020-06-29 21:16:39 +02:00
Dirk Ehmen
05980765f2
drivers/sdp3x: Driver for sensirion sdp3x sensor
2020-06-29 20:50:41 +02:00
benpicco
f372beb405
Merge pull request #12363 from maribu/dfplayer
...
drivers/dfplayer: New driver for the DFPlayer Mini MP3 player
2020-06-28 23:24:36 +02:00
Marian Buschsieweke
82bfb66cb8
drivers: Added driver for the DFPlayer MP3 player
2020-06-28 21:06:43 +02:00
Gunar Schorcht
660a852935
drivers: add netdev driver for ATWINC15x0 WiFi module
2020-06-26 12:33:38 +02:00
benpicco
3665e40726
Merge pull request #14242 from HendrikVE/pr/driver/pca9633
...
driver/pca9633: add new driver
2020-06-26 00:44:24 +02:00
Hendrik van Essen
1430ddca55
driver/pca9633: add new driver
2020-06-25 22:31:15 +02:00
benpicco
b13085defb
Merge pull request #14110 from fabian18/mtd_at24cxxx
...
drivers/at24cxxx: MTD wrapper for at24cxxx
2020-06-24 18:46:36 +02:00
Benjamin Valentin
896fcd43b0
drivers/periph/spi: add periph_spi_reconfigure feature
2020-06-21 21:19:17 +02:00
Marian Buschsieweke
f3af071b19
Merge pull request #11432 from maribu/pulse_counter_c11_atomics
...
drivers/pulse_counter: Use C11 atomics & bugfix
2020-06-17 17:03:48 +02:00
Akshai M
e672ca2010
drivers/at : Expose to Kconfig
...
Expose configurations to Kconfig:
Model choice for CONFIG_AT_SEND_EOL
Allow value to be configured as exponent for AT_BUF_SIZE
2020-06-17 14:52:21 +05:30
Akshai M
f9741b3ed5
drivers/at : Add CONFIG_
...
Add CONFIG_ prefix to AT_SEND_EOL, AT_SEND_SKIP_ECHO,
CONFIG_AT_RECV_OK, CONFIG_AT_RECV_ERROR
2020-06-17 14:52:21 +05:30
Akshai M
921badbf38
drivers/at : Inverse Logic
...
Inverse logic for AT_SEND_ECHO
2020-06-17 14:52:21 +05:30
ebc147d058
drivers/mhz19: initial support
2020-06-17 08:41:41 +02:00
Francisco Molina
8d329942df
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-11 09:30:25 +02:00
Benjamin Valentin
93236e0f2c
drivers/at86rf215: add modulation config to KConfig
2020-06-09 11:48:59 +02:00
Benjamin Valentin
6a2d9f9762
drivers/at86rf215: make default O-QPSK rate configutable
2020-06-09 11:48:59 +02:00
Benjamin Valentin
4e9420bffc
drivers/at86rf215: prefix configuration defines with CONFIG_
2020-06-09 11:48:59 +02:00
benpicco
3a1ee4983c
Merge pull request #14010 from benpicco/at86rf215-mr-ofdm
...
drivers/at86rf215: implement MR-OFDM
2020-06-03 16:39:04 +02:00
Benjamin Valentin
cc5fbdf9f8
drivers/at86rf215: implement MR-OFDM
2020-06-03 15:58:50 +02:00
Leandro Lanzieri
16c6ecf28d
Merge pull request #14046 from benpicco/at86rf2xx-phy_modes
...
drivers/at86rf2xx: add support for high data rates
2020-06-03 08:35:30 +02:00
Leandro Lanzieri
48759eccdc
drivers/wdt: Add feature to indicate a configurable warning period
...
This adds the feature `periph_wdt_warning_period` that indicates that a
platform WDT driver implementation supports a configurable
CONFIG_WDT_WARNING_PERIOD.
2020-06-02 12:54:25 +02:00
Benjamin Valentin
cd107be976
drivers/periph/timer: add timer_set_periodic()
2020-05-28 17:37:41 +02:00
Benjamin Valentin
616ebf9cfb
drivers/edbg_eui: add driver to get MAC address from Atmel EDBG
...
The EDBG debugger on the `samr21-xpro` contains a unique 64 bit address
intended to be used as a MAC address for the internal radio.
This adds a driver to read that EUI-64 from the debugger, it should match
with the MAC address printed on the label on the board.
2020-05-26 10:44:11 +02:00
Akshai M
7d679c7f0f
drivers/rn2xx3.h : Add CONFIG_
...
Add CONFIG_ prefix to RN2XX3_DEFAULT_SLEEP
2020-05-22 15:52:03 +05:30
fabian18
9ecd836443
drivers/at24cxxx: add MTD wrapper for at24cxxx EEPROMs
2020-05-20 19:20:05 +02:00
Akshai M
74a7bb230b
drivers/tmp00x : Expose to Kconfig
...
Expose configurations to Kconfig
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-05-20 19:09:48 +05:30
Akshai M
414fae5b0c
drivers/tmp00x : Model as bool
...
Model CONFIG_TMP00X_USE_LOW_POWER and CONFIG_TMP00X_USE_RAW_VALUES
as bool
2020-05-20 19:09:48 +05:30
Akshai M
94d6b898fc
drivers/tmp00x : Add CONFIG_
...
Add CONFIG_ prefix to compile configurations
2020-05-20 19:09:48 +05:30
Leandro Lanzieri
391f49fade
Merge pull request #14047 from benpicco/drivers/mrf24j40-turbo
...
drivers/mrf24j40: add Turbo Mode
2020-05-19 18:00:05 +02:00
Marian Buschsieweke
568404134a
drivers/periph/cpuid: Fix typo in doc
2020-05-14 16:53:05 +02:00
673ba21b9e
Merge pull request #14045 from benpicco/mtd_mapper_sectors
...
mtd_mapper: count offset in sectors
2020-05-12 13:47:12 +02:00
Benjamin Valentin
81b07895af
mtd_mapper: count offset in sectors
...
The offset of MTD regions must be aligned with erase sectors.
So in order not to waste address space, avoid misconfiguration and
eventually support storage media > 4 GiB, give the offset in sectors
instead of bytes.
2020-05-12 12:02:05 +02:00
Benjamin Valentin
baeb5134b7
drivers/mrf24j40: add Turbo Mode
...
MRF24J40 supports a proprietary turbo mode with a data rate of 625 kbit/s
instead of the standard 250 kbit/s.
It can be enabled through
ifconfig 7 set high_rate 1
2020-05-09 16:10:46 +02:00
Benjamin Valentin
ac040c6baf
drivers/at86rf2xx: add support for high data rates
...
AT86RF2xx supports high data rates in O-QPSK mode.
This is a proprietary feature, so data rates > 0 are only supported by
other AT86RF2xx devices.
high_rate 0: 250 kbit/s (IEEE mode)
high_rate 1: 500 kbit/s
high_rate 2: 1000 kbit/s (compatible with at86rf215)
high_rate 3: 2000 kbit/s
2020-05-09 01:24:08 +02:00
Akshai M
db96ebcbe1
drivers/isl29020 : Expose to Kconfig
...
Expose configurations to Kconfig.
2020-05-08 18:07:27 +05:30
Akshai M
38687e63bb
drivers/isl29020 : Add CONFIG_
...
Add CONFIG_ prefix to ISL29020_DEFAULT_ADDRESS
2020-05-08 18:07:27 +05:30
Akshai M
b4a23b8899
drivers/tcs37727 : Expose to Kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-05-07 23:55:32 +05:30
Akshai M
04bdd405d2
drivers/tcs37727 : Add CONFIG_
...
Add CONFIG_ prefix to TCS37727_ATIME_DEFAULT and update
documentation for doxygen.
2020-05-07 23:20:24 +05:30
fabian18
50d408b202
Revert "drivers/at25xxx: return read/written bytes to match MTD API"
...
This reverts commit 8a2a936726
.
2020-05-06 20:24:27 +02:00
fabian18
a3a1c160ee
mtd: Change API to return 0 on success
...
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
benpicco
8e11acc9f8
Merge pull request #13877 from ML-PA-Consulting-GmbH/feat/20200409__add_mtd_spi_eeprom
...
drivers/mtd_spi_eeprom: add MTD wrapper for AT25XXX EEPROMs
2020-05-06 15:56:34 +02:00
Francisco
cea0d1c532
Merge pull request #13421 from benpicco/cpu/sam0_common/i2c-deinit
...
drivers/periph/i2c: add periph_i2c_reconfigure feature & implementation for sam0
2020-05-05 19:09:47 +02:00
Benjamin Valentin
21958ff531
drivers/periph/i2c: add periph_i2c_reconfigure feature
...
It is often desireable to re-configure the pins of a bus back to GPIO mode,
either to save power when an external peripheral is turned off and current
would leak, or because a device may need a non-standard in-band signal to
be generated on the bus lines.
To serve those use cases, this patch introduces four new functions to the
I2C API:
- `i2c_init_pins()` equivalent to spi_init_pins(), restores I2C pin configuration
- `i2c_deinit_pins()` to switch the configuration of the I2C pins back to GPIO
mode and block access to the bus.
- `i2c_pin_sda()` to get the data pin for a given bus
- `i2c_pin_scl()` to get the clock pin for a given bus
Since it's unreasonable to expect having implementations for all platforms
already, those functions are only availiable when the periph_i2c_reconfigure
feature is availiable.
Applications should use FEATURES_REQUIRED += periph_i2c_reconfigure or
FEATURES_OPTIONAL if they want to make use of those functions.
2020-05-05 16:12:19 +02:00
Johannes Koster
177a653bd1
drivers/at25xxx: add MTD wrapper for AT25XXX EEPROMs
...
drivers/at25xxx: add mtd_wrapper as submodule
tests: add mtd_at25xxx test module for mtd wrapper
drivers/Makefile.dep: add at25xxx dep for mtd_at25xxx module
2020-05-05 13:37:51 +01:00
Akshai M
21dd8f7555
drivers/l3g4200d : Expose to Kconfig
...
Expose configurations to Kconfig.
2020-05-05 13:19:49 +05:30
Akshai M
ebbfcfb56b
drivers/l3g4200d : Add CONFIG_
...
Add CONFIG_ prefix to L3G4200D_DEFAULT_ADDRESS
2020-05-05 13:18:34 +05:30
Leandro Lanzieri
28eedd6459
Merge pull request #14000 from akshaim/Kconfig_lpsxxx
...
drivers/lpsxxx : Expose Configurations to Kconfig
2020-05-05 09:09:30 +02:00
Leandro Lanzieri
1fe30c1aca
Merge pull request #13932 from akshaim/Kconfig_mtd_sdcard_1
...
drivers/mtd_sdcard : Expose Configurations to Kconfig
2020-05-04 21:14:59 +02:00
Akshai M
854145c884
drivers/mtd_sdard : Add MACRO and CONFIG_
...
Replace MTD_SDCARD_SKIP_ERASE with MTD_SDCARD_ERASE
Add CONFIG_ Prefix to MTD_SDCARD_ERASE
Model CONFIG_MTD_SDCARD_ERASE as bool
2020-05-04 22:12:13 +05:30
Akshai M
a084383baf
drivers/lpsxxx : Expose to Kconfig
...
Expose configurations to Kconfig and update documentation.
2020-05-04 18:20:56 +05:30
Akshai M
9ef4f30c5e
drivers/bmx055 : Expose to Kconfig
...
Expose configurations to Kconfig
2020-05-04 18:18:00 +05:30
Akshai M
db7ca7eed9
drivers/lpsxxx : Add CONFIG_
...
Add CONFIG_ prefix to LPSXXX_DEFAULT_ADDRESS
2020-05-04 17:42:04 +05:30
Akshai M
211b86c54d
drivers/bmx055 : Add CONFIG_
...
Add CONFIG_ prefix to compile configurations
2020-05-04 17:40:01 +05:30