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
Jose Alamos
074dc8d328
drivers/at86rf2xx: fix at86rf2xx_set_rxsensitivity
2020-09-16 14:47:51 +02:00
Hauke Petersen
020642476e
driver/at86rf2xx: fix asserts in _set func
2020-09-15 13:57:15 +02:00
Benjamin Valentin
696ddf3dbb
drivers/periph/timer: amend documentation for timer_set_periodic()
...
The function needs the `periph_timer_periodic` feature.
Add a `@note` about that to the documentation.
2020-09-13 19:06:28 +02:00
benpicco
842933855f
Merge pull request #14995 from benpicco/cpu/cc2538-register
...
cc2538_rf: register with netdev
2020-09-11 16:03:08 +02:00
Benjamin Valentin
1811686540
cc2538_rf: register with netdev
2020-09-11 13:33:37 +02:00
Francisco
858533e68e
Merge pull request #14994 from benpicco/nrf802154-register
...
nrf802154: register with netdev
2020-09-11 12:48:40 +02:00
3e9081ed01
usbdev_mock: fix possible null pointer dereference
2020-09-11 11:07:15 +02:00
Cenk Gündoğan
0d0bc91553
Merge pull request #14754 from leandrolanzieri/pr/no_archives
...
build system: link object files
2020-09-10 09:36:29 +02:00
Benjamin Valentin
58dc106309
nrf802154: register with netdev
2020-09-10 00:05:25 +02:00
Benjamin Valentin
90751bcec1
mtd: fix return in mtd_erase()
...
If `.erase` is implemented we must return, not execute the
fallback code path
fixes #14988
2020-09-09 19:38:40 +02:00
9b9ed236ba
Merge pull request #14916 from MrKevinWeiss/pr/slwstk6220a
...
drivers/periph: Remove UART from device_enums.h
2020-09-09 10:53:27 +02:00
fdaf7fd822
Merge pull request #14596 from benpicco/drivers/at86rf2xx-retries
...
drivers/at86rf2xx: support frame retry reporting on AT86RFR2
2020-09-09 10:27:05 +02:00
MrKevinWeiss
bdeb39576e
drivers/periph: Remove UART from dev_enums.h
2020-09-09 10:25:38 +02:00
Benjamin Valentin
0871b69c84
drivers/at86rf2xx: support frame retry reporting on at86rfr2
...
At86rfr2 doesn't report retries directly, but it can generate a TX start
interrupt for each (re)try, so we can count manually.
2020-09-08 14:48:57 +02:00
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
Marian Buschsieweke
90177889b7
treewide: Cleanup access to internal variables
...
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:
1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
functions
2020-09-07 12:59:55 +02:00
Benjamin Valentin
43ee53a059
mtd_mapper: implement pagewise functions
...
Implement functions to use the pagewise MTD API.
2020-09-04 18:00:44 +02:00
benpicco
c6c0f6a180
Merge pull request #14933 from benpicco/drivers/mtd_shortcut
...
mtd: allow to use non-pagewise functions
2020-09-04 16:25:55 +02:00
Leandro Lanzieri
16b5fd303b
drivers: add usbdev_mock
2020-09-04 15:01:16 +02:00
Benjamin Valentin
08db12be3b
drivers/dose: don't default to UART0
...
The first UART is usually used for the shell, so don't default
DOSE on it.
2020-09-03 20:20:16 +02:00
Benjamin Valentin
f4f1114ead
drivers/dose: use EUI provider
2020-09-03 20:16:32 +02:00
Benjamin Valentin
9a4141880c
mtd: allow to use non-pagewise functions
...
If the underlying driver implements 'plain' read/write/erase
fucntions, don't convert them to pagewise functions and back.
Just use the old direct functions.
2020-09-02 22:50:24 +02:00
Francisco Molina
4648329c66
drivers/periph_common: remove redundant entry
...
- Use same file for MODULE inclusion and configuration
- Fix guard
- Add Kconfig.wdt
2020-09-02 15:31:28 +02:00
Francisco Molina
86ea4b42e4
drivers/Kconfig: add peripheral drivers config menu
2020-09-01 19:04:53 +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
Cenk Gündoğan
538155c344
Merge pull request #14904 from leandrolanzieri/pr/kconfig/change_prefix_convention
...
treewide: modify Kconfig symbol prefixes
2020-09-01 15:57:06 +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
6d61381d2a
drivers: use inline functions for GPIO comparisons
...
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 must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +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
Leandro Lanzieri
2e79e00ca7
treewide: change Kconfig prefix for module symbols
...
This changes the prefix used for the symbols that reprensent modules
(not the ones generated from USEMODULE).
MOD_ => MODULE_
2020-08-31 09:57:28 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
...
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:
KCONFIG_MODULE_ => KCONFIG_USEMODULE_
KCONFIG_PKG_ => KCONFIG_USEPKG_
MODULE_ => USEMODULE_
PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
Benjamin Valentin
f714fac3f4
drivers/at86rf2xx: make use of EUI provider
2020-08-30 23:43:57 +02:00
Benjamin Valentin
0b523835b5
drivers/at86rf215: use eui_provider
2020-08-30 23:43:57 +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
Benjamin Valentin
2aa2bf86a3
drivers/at86rf2xx: AES: don't use binary constant
...
This is a GCC extension. Use hex constant instead.
2020-08-25 14:06:40 +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
7b743cda13
drivers/at86rf2xx: Fix address generation
...
Do not generate address during reset, but during setup. Otherwise the device
will get a new address after every reset. Also: Use common IEEE 802.15.4
setup function for this.
2020-08-23 21:09:21 +02:00
Benjamin Valentin
0f4c5f5b10
drivers/at86rf2xx: fix assert
...
The assert is reversed. It must check if the config value does not
exceed the maximum address length, not the other way round.
previously this would lead to a crash when setting a short address:
2020-08-23 13:59:56,080 # ifconfig 7 set addr_short 2
2020-08-23 13:59:56,081 # 0xdcad
2020-08-23 13:59:56,083 # *** RIOT kernel panic:
2020-08-23 13:59:56,085 # FAILED ASSERTION.
With this it works as expected
2020-08-23 14:05:07,988 # ifconfig 7 set addr_short 2
2020-08-23 14:05:07,992 # success: set (short) address on interface 7 to 2
2020-08-23 14:05:52 +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
9823801cf6
drivers/at86rf215: use netdev_ieee802154_setup()
2020-08-21 15:33:19 +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
68a47b63e3
drivers/mtd_spi_nor: implement mtd_spi_nor_write_page()
2020-08-18 17:25:39 +02:00
Benjamin Valentin
7d291b5707
drivers/mtd_sdard: implement page-wise read() and write()
...
SD cards are usually larger than 4 GiB, so using 32 bit addressing will
break once they are filled to a certain extend.
Implement read_page() and write_page() which at a page size of 512
should work for SD cards of up to 2 TiB.
The read() and write() functions will ignore any offset that is not aligned
with the page boundary, so do the same for the new functions, but at least
report an error.
2020-08-18 17:25:39 +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
benpicco
22d3bf7c51
Merge pull request #14594 from maribu/stm32-eth-cleanup
...
cpu/stm32: Clean up / fix periph_eth
2020-08-17 21:16:27 +02:00
Marian Buschsieweke
8d8af31e39
driver/stm32_eth: Integrate into periph_eth
...
The stm32_eth driver was build on top of the internal API periph_eth, which
was unused anywhere. (Additionally, with two obscure exceptions, no functions
where declared in headers, making them pretty hard to use anyway.)
The separation of the driver into two layers incurs overhead, but does not
result in cleaner structure or reuse of code. Thus, this artificial separation
was dropped.
2020-08-17 20:29:33 +02:00
Marian Buschsieweke
28ed07d6e3
cpu/stm32/periph_eth: zero-copy TX (-6 KiB RAM)
...
The Ethernet DMA is capable of collecting a frame from multiple chunks, just
like the send function of the netdev interface passes. The send function was
rewritten to just set up the Ethernet DMA up to collect the outgoing frame
while sending. As a result, the send function blocks until the frame is
sent to keep control over the buffers.
This frees 6 KiB of RAM previously used for TX buffers.
2020-08-17 20:29:33 +02:00
Marian Buschsieweke
932c311ee2
cpu/stm32/periph_eth: Fix RX logic
...
If any incoming frame is bigger than a single DMA buffer, the Ethernet DMA will
split the content and use multiple DMA buffers instead. But only the DMA
descriptor of the last Ethernet frame segment will contain the frame length.
Previously, the frame length calculation, reassembly of the frame, and the
freeing of DMA descriptors was completely broken and only worked in case the
received frame was small enough to fit into one DMA buffer. This is now fixed,
so that smaller DMA buffers can safely be used now.
Additionally the interface was simplified: Previously two receive flavors were
implemented, with only one ever being used. None of those function was
public due to missing declarations in headers. The unused interface was
dropped and the remaining was streamlined to better fit the use case.
2020-08-17 20:28:49 +02:00
Cenk Gündoğan
f64511ddb5
Merge pull request #14626 from leandrolanzieri/pr/kconfig/test_modules_kconfig
...
kconfig: introduce migration test in CI
2020-08-13 14:11:00 +02:00
fabian18
1fca10c486
drivers/at86rf2xx: SPI AES security module
2020-08-12 17:18:00 +02:00
Nishchay-sopho
3245dee8d8
drivers/sps30: Update units of measurement
2020-08-12 12:50:35 +02:00
Leandro Lanzieri
14499e3b7e
drivers/periph_common: Add modules to Kconfig
2020-08-12 12:22:40 +02:00
Leandro Lanzieri
4ad2180f81
kconfig: Add default modules' symbols
2020-08-12 12:22:38 +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
d8794d7c5a
drivers/cc2420: fix bogus cc2420_set_state(dev, CC2420_GOTO_RX)
...
It doesn't compile, compiler complains that the enum type of
CC2420_GOTO_RX cannot be converted to netopt_state_t as required by the
function.
The numerical value of CC2420_GOTO_RX would be NETOPT_STATE_IDLE (2), which
makes sense as it puts the device into RX mode.
2020-08-04 13:56:49 +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
Marian Buschsieweke
f48147b585
Merge pull request #14663 from benpicco/native-fixes
...
treewide: compile fixes for native
2020-07-31 14:57:41 +02:00
Benjamin Valentin
492283898e
pkg/driver_atwinc15x0: don't be pedantic
2020-07-31 13:38:03 +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
110609195f
drivers/encx24j600: use unsigned char
2020-07-31 13:38:03 +02:00
Benjamin Valentin
2e34298265
drivers/nrf24l01p: use unsigned char
2020-07-31 13:38:03 +02:00
Benjamin Valentin
a81c0a544c
drivers/kw2xrf: use unsigned char
2020-07-31 13:38:03 +02:00
benpicco
7e4b3d0f40
Merge pull request #14653 from Nishchay-sopho/drivers/sdp3x_#14603
...
driver/sdp3x: Resolved irq pin code used even if irq pin not connected
2020-07-31 01:22:02 +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
nagrawal
7cc4f2b79b
driver/sdp3x: Resolved irq pin code used even if irq pin not connected
...
irq_pin check when multiple sensors connected with or without irq pin
2020-07-30 16:35:35 +02:00
f7882f4f2a
drivers/stmpe811: return touch_dev position relative to top left corner
2020-07-29 14:49: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
38f62f9678
Merge pull request #14643 from Nishchay-sopho/drivers/sdp3x_#14601
...
driver/sdp3x: Resolved init condition fail
2020-07-29 13:08:57 +02:00
Leandro Lanzieri
224e2c977d
Merge pull request #14509 from jia200x/pr/lora_implicit_mode
...
sx127x: add support for implicit header mode
2020-07-29 12:52:00 +02:00
Jose Alamos
84eb2dc30c
sx127x: implement NETOPT_PDU_SIZE
2020-07-29 11:57:52 +02:00
nagrawal
cd46360eab
driver/sdp3x: Resolved init fail error
2020-07-28 19:35:35 +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
Marian Buschsieweke
a7cf50eb03
drivers/stm32_eth: Code style fixes
...
- Drop incorrect use of `volatile`
- Fix missing spaces and indention
2020-07-24 11:32:20 +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
Leandro Lanzieri
25723267f7
Merge pull request #14567 from akshaim/Kconfig_l2filter
...
net/l2filter : Expose configurations to Kconfig
2020-07-22 15:11:24 +02:00
37b096562a
drivers/stmpe811: ensure fifo is not empty before reading touch position
2020-07-22 09:59:18 +02:00
Benjamin Valentin
caead7bb75
drivers/stmpe811: always clear interrupt state
2020-07-22 09:59:11 +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
Benjamin Valentin
cbae0186ca
drivers/stmpe811: fix interrupt polarity & type
...
The Interrupt on the stmpe811 is generated on the falling edge.
By observing the rising edge, we will only get an event if the
interrupt gets cleared.
Also configure the interrupt to be edge triggered instead of
level triggered.
2020-07-21 21:22:42 +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
0c86b72ed6
drivers/Makefile.dep: remove global dependency resolution
...
Only keep the dependency resolution for drivers declared as pseudo-modules
2020-07-20 14:32:16 +02:00
304bce3724
drivers: configure per driver dependency resolution
2020-07-20 14:32:16 +02:00
f013be5507
Merge pull request #14497 from aabadie/pr/drivers/makefile_dep_cleanup
...
drivers/Makefile.dep: remove inappropriate use of FEATURES_PROVIDED for rtt_rtc
2020-07-20 13:04:59 +02:00
Martine Lenders
e5d692babe
Merge pull request #14493 from miri64/netopt/cleanup/rm-LINK_CONNECTED
...
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-17 22:35:46 +02:00
87d8124d88
Merge pull request #14536 from HendrikVE/pca9633_fix_copy_pasta
...
drivers/pca9633: fix wrong enum name
2020-07-17 21:03:25 +02:00
5c3c22f31c
Merge pull request #14489 from benpicco/libc_conflict
...
drivers/tests: rename private read() and sleep() functions to avoid conflicts with libc
2020-07-17 20:44:02 +02:00
Hendrik van Essen
9d068d582a
drivers/pca9633: make enum anonymous
2020-07-17 15:05:32 +02:00
0d9aeba804
Makefile.include: don't include drivers/Makefile.include anymore
2020-07-15 20:36:27 +02:00
490126cfa0
drivers: move USEMODULE_INCLUDES in each driver directories
2020-07-15 20:36:27 +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
1cf8f0dc45
drivers/Makefile.dep: remove useless FEATURES_PROVIDED for rtc_rtt
2020-07-10 18:12:31 +02:00
Benjamin Valentin
f4e9ede7bc
drivers/sps30: fix conflict with libc function name
2020-07-10 17:31:29 +02:00
Benjamin Valentin
5f4838e716
drivers/sht3x: fix conflict with libc function name
2020-07-10 17:31:29 +02:00
Benjamin Valentin
b9ed7e9ffd
drivers/bme680: fix conflict with libc function name
2020-07-10 17:31:29 +02:00
Martine S. Lenders
8dba9a9188
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-10 16:18:13 +02:00
Daniel Lockau
0d3dc120ef
drivers/sdcard_spi: remove auto-init
2020-07-09 08:50:53 +02:00
Leandro Lanzieri
a320181f55
drivers/kw2xrf: Enable TX End IRQ in netdev init
...
The driver needs this event but gnrc_netif_ieee802154 only enables the
interrupt when MODULE_NETSTATS_L2 is active.
2020-07-06 14:21:58 +02:00
Benjamin Valentin
b5d711da25
drivers/sdcard_spi: document undocumented defines
...
Murdock enforces these now, so add documentation to make it happy.
2020-07-02 16:33:09 +02:00
Daniel Lockau
e7fbc174bc
drivers/sdcard_spi: make retries configurable
...
- convert count based retry implementation to timeout based
implementation
- allow user definition of retry parameters
2020-07-02 16:33:09 +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
2f858a2c0a
sys/shell: Added shell command "dfplayer"
...
Added a shell command that is added if the modules shell_commands and dfplayer
are both used. It allows to control the DFPlayer Mini MP3 player.
2020-06-28 21:06:49 +02:00
Marian Buschsieweke
82bfb66cb8
drivers: Added driver for the DFPlayer MP3 player
2020-06-28 21:06:43 +02:00
Marian Buschsieweke
fa5fa425a1
drivers: Added doc group drivers_multimedia
2020-06-26 13:09:33 +02:00
Gunar Schorcht
660a852935
drivers: add netdev driver for ATWINC15x0 WiFi module
2020-06-26 12:33:38 +02:00
Francisco
a46adc3d44
Merge pull request #13742 from benemorius/pr/kinetis-pm_layered
...
cpu/kinetis: implement power modes for pm_layered
2020-06-26 10:51:12 +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
Thomas Stilwell
b8ce88e9a7
drivers/kw41zrf: remove duplicate PM_UN/BLOCK defines
2020-06-25 17:34:39 -05:00
Hendrik van Essen
1430ddca55
driver/pca9633: add new driver
2020-06-25 22:31:15 +02:00
Martine S. Lenders
14afbe1030
xbee: remove NETOPT_IPV6_IID support
...
This option is handled in the `gnrc_netif`-layer without any access to
the driver's option since 7ae90564d9
.
2020-06-25 13:41:20 +02:00
Martine S. Lenders
7777c172dd
netdev_ieee802154: remove NETOPT_IPV6_IID support
...
This option is handled in the `gnrc_netif`-layer without any access to
the driver's option since 7ae90564d9
.
2020-06-25 13:40:48 +02:00
Martine S. Lenders
3a60a78606
netdev_eth: remove NETOPT_IPV6_IID support
...
This option is handled in the `gnrc_netif`-layer without any access to
the driver's option since 7ae90564d9
.
2020-06-25 13:40:30 +02:00
Martine S. Lenders
4c01c716fc
cc110x: remove NETOPT_IPV6_IID support
...
This option is handled in the `gnrc_netif`-layer without any access to
the driver's option since 7ae90564d9
.
2020-06-25 13:40:30 +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
f3e28c0350
drivers/sdcard_spi: make use of spi_deinit_pins()
...
Make sure to de-init the SPI bus before using the pins as GPIO.
Once all archs implement periph_spi_reconfigure, we can drop mosi,
miso and clk pins from the `card->params` and just use the bus
getter functions.
2020-06-21 21:21:39 +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
80023c408a
Merge pull request #14259 from fjmolinas/pr_rtt_min_offset
...
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-16 16:22:04 +02:00
Benjamin Valentin
14bb15d91f
drivers/at86rf215: make reset pulse width configurable
...
Some hardware designers like to include filtering capacitors into reset
lines in order to protect against ESD or other pulses.
This increases the raise time of the reset signal. To still reach the
required 16 µs reset pulse width, we thus have to increase the reset pulse
width via board config.
2020-06-11 15:05:21 +02:00
Francisco Molina
8d329942df
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-11 09:30:25 +02:00
93fbecf965
Merge pull request #14084 from benpicco/driver/mtd_spi_nor-jedec_size
...
drivers/mtd_spi_nor: derive capacity from JEDEC ID
2020-06-10 11:17:43 +02:00
Leandro Lanzieri
ab996823ee
Merge pull request #14197 from benpicco/driver/at86rf215_cleanup
...
driver/at86rf215: cleanup
2020-06-09 18:38:57 +02:00
Benjamin Valentin
50914cbf96
drivers/mtd_spi_nor: move printing of flash debug info
...
Move printing the flash information after deriving the capacity.
2020-06-09 16:09:40 +02:00
Benjamin Valentin
585928f23d
drivers/mtd_spi_nor: derive capacity from JEDEC ID
...
Most manufacturers (Spansion, Micron & ISSI) just encode the capacity
in the second ID byte.
Old Adesto (Atmel) chips use a different scheme here.
2020-06-09 16:09:40 +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
1ab35b16ae
drivers/at86rf215: include board.h
...
Board-specific configuration is typically defined in board.h, so
include it here so it gets applied.
2020-06-09 11:48:59 +02:00
Benjamin Valentin
feba1d1bcb
drivers/at86rf215: don't compile modulations that are not selected
...
Don't compile in code for MR-OFDM, etc if `netdev_ieee802154_mr_oqpsk` is
disabled.
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
f585b53d03
drivers/saul/auto_init: remove useless preprocessor directives
...
The files are now built only when the corresponding module is used
2020-06-08 11:10:48 +02:00
e9a23325e1
drivers/saul/init_devs: only build files when related module is used
2020-06-08 11:10:39 +02:00
984c8eed49
drivers/saul: rename some auto_init files
...
In order to name them the same as the module they are related to
2020-06-08 11:10:39 +02:00
benpicco
f08a00312b
Merge pull request #14194 from ThxAndBye/master
...
drivers/lis3dh: fix mask in lis3dh_set_aux_adc()
2020-06-04 13:12:22 +02:00
Marian Buschsieweke
7862baf348
drivers/at86rf215: Fix documentation
...
- Balance Doxygen groups
- Move drivers_at86rf215_oqpsk into drivers_at86rf215
2020-06-03 21:09:50 +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
164e239160
at86rf215: remove obsolete at86rf215_switch_mode()
2020-06-03 15:58:50 +02:00
Benjamin Valentin
cc5fbdf9f8
drivers/at86rf215: implement MR-OFDM
2020-06-03 15:58:50 +02:00
Thx And Bye
9cd31ce17d
drivers/lis3dh: fix mask in lis3dh_set_aux_adc()
2020-06-03 12:09:40 +02:00
Kevin "Tristate Tom" Weiss
972d9441ce
Merge pull request #13404 from leandrolanzieri/pr/boards/samr21-xpro/features_kconfig
...
boards/samr21-xpro: Model features in Kconfig
2020-06-03 09:39:41 +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
67a43e0ada
drivers/wdt/kconfig: Rename HAS_WDT_WARNING_PERIOD
...
The symbol now is HAS_PERIPH_WDT_WARNING_PERIOD.
2020-06-02 17:43:19 +02:00
José Alamos
892032907f
Merge pull request #14187 from leandrolanzieri/pr/periph/wdt_add_warning_period_feature
...
drivers/wdt: Add feature to indicate a configurable warning period
2020-06-02 17:18:40 +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
Thomas Stilwell
f23275af29
drivers/kw41zrf: fix wrong endianness in short_addr get/set
2020-06-01 22:22:07 -05:00
Benjamin Valentin
cd107be976
drivers/periph/timer: add timer_set_periodic()
2020-05-28 17:37:41 +02:00
eee5bf178d
Merge pull request #13993 from benpicco/examples/filesystem-fatfs
...
examples/filesystem: add support for fatfs on SD card
2020-05-26 19:20:47 +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
5699b2469b
drivers/rn2xx3 : Expose to Kconfig
...
Expose configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-05-22 15:52:03 +05:30
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
Benjamin Valentin
3b2cfa6478
drivers/sdcard_spi: add auto_init_storage to DEFAULT_MODULE
...
sdcard_spi is the only driver in auto_init_storage and was previously
pulled in by fatsfs (because it's used on SD cards)
It does however make much more sense if the SD card driver pulls that in
so other file systems can be used on SD card too.
2020-05-20 11:57:05 +02:00
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
benpicco
1776e54d80
Merge pull request #13604 from gschorcht/drivers/sx127x/dio_handling
...
drivers/sx127x: changes in DIO handling
2020-05-16 19:12:26 +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
4042fa2ddf
Merge pull request #13944 from benpicco/drivers/ethos-luid
...
drivers/ethos: use luid_get_eui48()
2020-05-12 10:47:06 +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
f01bbd3c58
drivers/isl29020 : Make ADDR configurable
...
Make ISL29020_PARAM_ADDR configurable
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
Vincent Dupont
c077c07017
drivers/mrd_spi_nor: fix read spanning pages
2020-05-06 16:36:29 +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
5782c3bb0d
drivers/l3g4200d : Make ADR configurable
...
Make L3G4200D_PARAM_ADDR configurable
2020-05-05 13:18:34 +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
9737db935d
drivers/mtd_sdcard : Expose to kconfig
...
Expose Configurations to Kconfig
2020-05-04 22:12:13 +05:30
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
Leandro Lanzieri
34120c1a23
drivers/Kconfig: Move Actuator and Sensor menus to root file
2020-04-29 17:15:47 +02:00
Francisco
80b300289d
Merge pull request #13912 from benpicco/at86rf215-mr-qpsk
...
drivers/at86rf215: implement MR-O-QPSK
2020-04-29 12:44:00 +02:00
Leandro Lanzieri
c8fa7f045b
Merge pull request #13914 from akshaim/Kconfig_fxos8700
...
drivers/fxos8700 : Expose Configurations to Kconfig
2020-04-29 11:42:37 +02:00
Akshai M
0bc7952e30
drivers/fxos8700 : Expose to Kconfig
...
Expose Configurations to Kconfig
2020-04-29 14:32:00 +05:30
Akshai M
e5fe525711
drivers/fxos8700 : Add CONFIG_
...
Add CONFIG_ Prefix for FXOS8700_USE_ACC_RAW_VALUES and model
it as a bool
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-29 14:32:00 +05:30
Benjamin Valentin
e6d47aa825
drivers/at86rf215: implement MR-O-QPSK
2020-04-29 10:41:37 +02:00
Benjamin Valentin
0cf9f6aa7f
drivers/at86rf215: implement at86rf215_get_phy_mode()
2020-04-29 10:41:37 +02:00
Benjamin Valentin
cfc2feca1d
ieee802154: return PDU based on PHY mode
...
IEEE 802.15.4g-2012 specifies a PDU of 2047 for it's PHY modes, so
query the driver for the mode before returning the PDU.
If none of the new modes is used, don't query the driver to not incure
a penalty on existing platforms.
2020-04-29 10:41:37 +02:00
Akshai M
e6924e525d
drivers/slipdev : Expose to Kconfig
...
Expose configurations to Kconfig
2020-04-29 09:42:59 +05:30
Akshai M
b4451ffd43
drivers/slipdev : Add CONFIG_
...
Add CONFIG_ prefix to SLIPDEV_BUFSIZE
2020-04-29 09:42:10 +05:30
c0f46c06bb
drivers/stmpe811: provide adaption to touch_dev interface
2020-04-28 18:18:01 +02:00
3d557556e0
sys: add interface for generic touch device
2020-04-28 18:17:31 +02:00
Akshai M
817370c46b
drivers/sps30 : Expose to Kconfig
...
Expose configurations to Kconfig
2020-04-28 20:11:11 +05:30
Akshai M
819a36d513
drivers/sps30 : Add CONFIG_
...
Add CONFIG_ prefix to SPS30_ERROR_RETRY
2020-04-28 20:10:21 +05:30
81c2b08d9b
drivers/disp_dev: use const qualifier
2020-04-28 13:14:52 +02:00
Akshai M
f796664eed
drivers/opt3001 : Expose to Kconfig
...
Expose configurable parameters to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-27 13:59:38 +05:30
Akshai M
abb1477ffe
drivers/opt3001 : Define Options
...
Define choices for macros.
2020-04-27 13:59:37 +05:30
Akshai M
80534dfc36
drivers/opt3001 : Add CONFIG_
...
Add CONFIG_ prefix to compile time configurations
2020-04-27 13:59:37 +05:30
Akshai M
0277b0facc
drivers/pn532 : Expose to Kconfig
...
Expose configurations to Kconfig
2020-04-25 23:06:07 +05:30
Akshai M
53c988a06c
drivers/pn532 : Add CONFIG_
...
ADD CONFIG_ prefix to PN532_BUFFER_LEN
2020-04-25 22:33:34 +05:30
Benjamin Valentin
d955836187
drivers/ethos: use luid_get_eui48()
...
Previously the MAC address of the border router was entirely random.
That meant that as a DHCPv6 client it would get a new prefix with every
reboot.
Due to #12210 the nodes will never use the new address.
Fix this by using luid_get_eui48() which will always return the same
address across reboots.
It also makes the code simpler.
2020-04-24 21:18:21 +02:00
Francisco Molina
922b35da2d
drivers/xbee: disable CTS/RTS pin unless periph_uart_hw_fc is used
...
If usinng an arduino xbee shield then CTS pin will be wired to the
ICSP connector RESET pin.
If also used on an arduino-% board then if xbee is busy sending or
receiving data it will assert CTS and this will trigger a reset on
the board.
To avoid this disable CTS functionality on start up unless hardware
flow control is explicitly requested.
2020-04-24 10:54:36 +02:00
Francisco Molina
0c0f8ec98f
drivers/periph/rtt.h: add RTT_FREQUENCY & RTT_MAX_VALUE doc
2020-04-23 22:11:16 +02:00
Francisco Molina
2604971753
drivers/periph/rtt.h: ensure RTT_MAX_VALUE is set
2020-04-23 19:07:18 +02:00
Leandro Lanzieri
341916cd30
Merge pull request #13915 from akshaim/Kconfig_mag3110
...
drivers/mag3110 : Expose Configurations to Kconfig
2020-04-23 13:21:34 +02:00
Akshai M
fc3ff2a9d9
drivers/mag3110 : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-23 15:50:26 +05:30
Akshai M
9c052a6288
drivers/mag3110 : Add CONFIG_
...
Add CONFIG_ Prefix for MAG3110_I2C_ADDRESS
2020-04-23 15:49:55 +05:30
Akshai M
c654b4ea3c
drivers/motor_driver : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-23 15:21:17 +05:30
Akshai M
39826d6e5b
drivers/motor_driver : Add CONFIG_
...
Add CONFIG_ Prefix for MOTOR_DRIVER_MAX
2020-04-23 15:21:17 +05:30
Leandro Lanzieri
c2c32a42f5
Merge pull request #13926 from akshaim/Kconfig_mma8x5x
...
drivers/mma8x5x : Expose Configurations to Kconfig
2020-04-23 09:20:09 +02:00
Akshai M
ec98054bea
drivers/mma8x5x : Expose to Kconfig
...
Expose Configurations to Kconfig
2020-04-22 22:02:34 +05:30
Akshai M
7e3096eae1
drivers/mma8x5x : Add CONFIG_
...
Add CONFIG_ Prefix for CONFIG_MMA8X5X_I2C_ADDRESS
2020-04-22 21:57:05 +05:30
Leandro Lanzieri
ee7493429b
Merge pull request #13885 from akshaim/Kconfig_at86rf215
...
drivers/at86rf215 : Expose Configurations to Kconfig
2020-04-22 13:59:29 +02:00
Leandro Lanzieri
7284434656
Merge pull request #13910 from akshaim/Kconfig_dose
...
drivers/dose.h : Expose Configurations to Kconfig
2020-04-22 12:39:30 +02:00
Akshai M
7b2591ea09
drivers_at86rf215 : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: benpicco <benpicco@googlemail.com>
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-22 15:55:21 +05:30
Akshai M
68e2fc5845
drivers/at86rf215 : Add CONFIG
...
Add CONFIG_ Prefix for configuring AT86RF215_TRIM_VAL
2020-04-22 15:54:33 +05:30
Akshai M
8617991312
drivers/at86rf215 : Add CONFIG_
...
Add Add CONFIG_ Prefix for AT86RF215_USE_CLOCK_OUTPUT and model
it as a bool
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-22 15:54:33 +05:30
19119f142a
Merge pull request #13558 from fjmolinas/pr_mtd_powerup
...
drivers/mtd_spi_nor: power up MTD on init
2020-04-21 13:53:07 +02:00
Akshai M
3a65d163f6
drivers/dose : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-21 16:00:25 +05:30
Akshai M
0784190c9c
drivers/dose : Add CONFIG_
...
Add CONFIG_ Prefix for DOSE_TIMEOUT_USEC
2020-04-21 16:00:25 +05:30
Francisco Molina
61eecf6fe0
drivers/mtd_spi_nor: power up MTD on init
2020-04-21 11:09:40 +02:00
Francisco Molina
8a256eba12
drivers/mtd_spi_nor: return error on invalid manuf id
2020-04-21 11:09:40 +02:00
Akshai M
be097f8533
drivers/cc110x : Expose to Kconfig
...
Expose Configurations to Kconfig
2020-04-17 23:55:07 +05:30
Akshai M
01a8c64e39
drivers/cc110x : Add CONFIG_
...
Add Add CONFIG_ Prefix for CC110X_DEFAULT_CHANNEL
2020-04-17 23:27:01 +05:30
Leandro Lanzieri
2f75c60527
Merge pull request #13881 from akshaim/kconfig_ads101x
...
drivers/ads101x : Expose Configurations to Kconfig
2020-04-17 15:39:07 +02:00
Leandro Lanzieri
369eda6bd9
Merge pull request #13831 from akshaim/I2C_Address_Cleanup
...
I2C Address Cleanup and Documentation
2020-04-17 13:42:35 +02:00
Akshai M
137a1c08b4
drivers/ads101x : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-17 16:43:16 +05:30
Akshai M
b20e408854
drivers/ads101x : Add CONFIG_
...
Add CONFIG_ Prefix for configuring the Compile time macros
2020-04-17 16:43:16 +05:30
Akshai M
b75fc0cfa6
drivers/include/tcs37727.h : Remove ifndef for I2C
...
Remove ifndef and better formatting for Doxygen
2020-04-17 15:45:37 +05:30
Akshai M
de5db5c99d
drivers/include/mpl3115a2.h : Remove ifndef for I2C
2020-04-17 15:45:37 +05:30
Akshai M
c6f55b6f81
drivers/include/lpsxxx.h : Expose Parameters
...
Add ifndef and Expose Compile Parameters to Doxyen
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-17 15:45:19 +05:30
Benjamin Valentin
8a2a936726
drivers/at25xxx: return read/written bytes to match MTD API
...
The MTD API expects read() to return the number of read bytes and
write() to return the number of written bytes.
So change the driver API to match that.
2020-04-17 11:32:06 +02:00
Akshai M
f705b0e5af
drivers/include/l3g4200d.h : Expose Parameters
...
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:08:39 +05:30
Akshai M
e2b3175a1c
drivers/include/isl29020.h : Expose Parameters
...
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:07:58 +05:30
Akshai M
6757d97766
drivers/include/hts221.h : Remove ifndef for I2C
2020-04-17 14:07:58 +05:30
Akshai M
1e6c0e3935
drivers/include/ds1307.h : Remove ifndef for I2C
2020-04-17 14:07:58 +05:30
Akshai M
c59e17ea19
drivers/include/bmx055.h : Expose Parameters
...
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:06:07 +05:30
Akshai M
79de2512e1
drivers/hdc1000 : Expose to Kconfig
...
Expose Configurations to Kconfig
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-16 19:16:43 +05:30
Akshai M
7a4191a8d5
drivers/hdc1000 : Add CONFIG_
...
Add CONFIG_ Prefix for configuring the Compile time macros
2020-04-16 17:17:27 +05:30
Akshai M
c452323ab5
drivers/include/cc110x.h : Add group
...
Add compile parameters to config_drivers_netdev group to Doxygen
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-15 13:58:31 +05:30
Akshai M
aa7e84a6d7
drivers/mma8x5x.h : Compile Configs
...
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
b9f71610d7
drivers/include/ads101x.h : Add Group
...
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
b36b3b9819
drivers/include/fxos8700.h : Add group
...
Add compile parameters to config_drivers_sensors group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
32c4fe3cd4
drivers/include/ds1307.h : Add group
...
Add compile parameters to config_drivers_sensors group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
eb3456ee1d
drivers/include/dose.h : Add group
...
Add compile parameters to config_drivers_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
11c2803bcf
drivers/include/at86rf215.h : Add Group
...
Add CT Params to netdev group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
007cd5bb26
drivers/include/at.h : Add Group
...
Add CT Params to misc group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
358d7eb616
drivers/adcxx1c_params.h : Add Group
...
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
497a967a23
drivers/include/sx127x.h : Add group
...
Add to config_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
80c6374cc4
drivers/include/mrf24j40.h : Modify group
...
Add to config_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
bc65ffdcde
drivers/include/ethos.h : Compile Configs
2020-04-14 20:52:16 +05:30
Akshai M
10d6b7a976
drivers/include/tmp00x.h : Compile Configs
2020-04-14 20:52:16 +05:30
Akshai M
a6d7eab027
drivers/include/tcs37727.h : Compile Configs
2020-04-14 20:52:16 +05:30