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

29260 Commits

Author SHA1 Message Date
b44b8201df
Merge pull request #14134 from benpicco/drivers/edbg_eui
drivers/edbg_eui: add driver to get MAC address from Atmel EDBG
2020-05-26 11:36:18 +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
Francisco Molina
1bd74ee81f
Makefile.include: remove useless assignment of none to BOARD 2020-05-26 10:20:36 +02:00
Francisco Molina
f1079cbe9f
Makefile.include: don't warn about BOARDSDIR usage in sub-make 2020-05-26 10:19:52 +02:00
Maciej Jurczak
edf016a6cb nanocoap: Added token length validation.
Implemented a check in coap_parse() to verify if TKL value is within valid range as specified by RFC7252. The token length must be within 0-8 range, any other value should be considered as invalid and the packet should produce message format error.
A test case was added to tests-nanocoap.c to verify correct behavior in case of TKL in range and out of range.

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>

Update sys/net/application_layer/nanocoap/nanocoap.c

Prefixed debug message with module name and abbreviations expanded.

Co-authored-by: Martine Lenders <mail@martine-lenders.eu>
2020-05-25 22:44:50 +02:00
Maciej Jurczak
3be2c51c42 nanocoap: Fixed buffer read out of the input packet bounds issue.
If token length in the header was longer than actually provided in the following payload, read out of the input buffer bounds or processing of data beyond the actual input packet bound could happen. In order to remove the risk, the options loop condition was modified to early detect the condition and abort packet processing if a malformed packet is detected.

nanocoap: Added pointer range check after token length parsing.

Added a check to verify if the current packet parsing pointer is still within the packet boundaries after incrementing by the token length declared in the header. If packet is malformed an error code is returned.

nanocoap: Combined packet length checks

Combined packet length checks after reading token length and processing options into a single packet length validation after the options parsing loop. The entry to the options parsing loop is safe as the while loop condition protects against entering the loop if the token length was invalid.
2020-05-25 22:44:39 +02:00
benpicco
3a30db4029
Merge pull request #13895 from gschorcht/cpu/esp32/fix_i2c_gpio_32_33
cpu/esp32: fix GPIO32 and GPIO 33 as I2C pins
2020-05-25 22:37:35 +02:00
benpicco
a5836a6b27
Merge pull request #14128 from btcven/2020_05_24-cc13x2-i2c
cc26xx_cc13xx: add periph_i2c implementation
2020-05-25 22:35:55 +02:00
bd919cf2f1
Merge pull request #14129 from fjmolinas/pr_fix_info-boards-supported
makefiles/info-global.inc.mk: fix info-boards-supported
2020-05-25 21:50:12 +02:00
benpicco
4f295a439b
Merge pull request #14131 from aabadie/pr/cpu/stmclk_cleanup
cpu/stm32: move stmclk in its own module, remove useless ifdefs
2020-05-25 20:42:11 +02:00
Leandro Lanzieri
9e10278483
Merge pull request #14137 from aabadie/pr/tests/buttons_fix_deps
tests/buttons: remove unused xtimer dependency
2020-05-25 18:42:17 +02:00
00bca8c57d
tests/buttons: remove unused xtimer dependency 2020-05-25 18:14:41 +02:00
chrysn
2c62fec96e saul/doc: Warn about and deprecate saul_reg_rm
saul_reg_rm can not be used safely unless in tight coordination with the
application. This points out the issue, puts the onus of making sure
nobody calls vanishing registrations on the device driver and deprecates
the call (as the requirements for correct usage are practically
impossible to fulfull for a generic driver).
2020-05-25 16:16:11 +02:00
a4530aaa68
Merge pull request #14135 from aabadie/pr/boards/dma_ifdef_remove
boards/stm32: remove useless #ifdef MODULE_PERIPH_DMA
2020-05-25 13:50:06 +02:00
46c4803eba
cpu/stm32: remove useless ifdef around DMA definitions 2020-05-25 13:23:20 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config 2020-05-25 13:23:20 +02:00
dc6bb50021
Merge pull request #14093 from bergzand/pr/boards_stm32f4/add_spi_dma
boards/stm32f4: Add DMA config for SPI
2020-05-25 13:17:22 +02:00
Marian Buschsieweke
4adb8ab402
Merge pull request #14132 from leandrolanzieri/pr/makefiles/info-global/remove_dependency_cache
makefiles/info-global: Remove dependency resolution cache
2020-05-25 11:58:29 +02:00
709f576d4a
ublox-c030-u201: Add DMA config for SPI 2020-05-25 11:42:12 +02:00
859f0d9c03
stm32f4discovery: Add DMA config for SPI 2020-05-25 11:42:12 +02:00
86ae376a8a
stm32f429i-disc1: Add DMA config for SPI 2020-05-25 11:42:12 +02:00
d0f26ac877
pyboard: Add DMA config for SPI 2020-05-25 11:42:11 +02:00
08123b9736
nucleo-f446ze: Add DMA config for SPI 2020-05-25 11:42:11 +02:00
5cee9c61e1
nucleo-f446re: Add DMA config for SPI 2020-05-25 11:42:11 +02:00
5c63c7ccb6
nucleo-f429zi: Add DMA config for SPI 2020-05-25 11:42:11 +02:00
2028a97db6
nucleo-f413zh: Add DMA config for SPI 2020-05-25 11:42:11 +02:00
61830480e9
nucleo-f412zg: add DMA config for SPI 2020-05-25 11:42:11 +02:00
70e3bf84b0
msbiot: Add DMA config for SPI 2020-05-25 11:42:10 +02:00
1f8bdb73e3
nucleo-f411re: Add DMA config for SPI 2020-05-25 11:42:10 +02:00
09831a40a4
nucleo-f410rb: Add DMA config for SPI 2020-05-25 11:42:10 +02:00
4c1b65c670
nucleo-f401re: Add DMA config for SPI 2020-05-25 11:42:05 +02:00
Leandro Lanzieri
8bb51e9423
makefiles/info-global: Remove dependency resolution cache
This removes a preliminar dependency resolution that is performed
without including features, to skip a full dependency resolution when
boards can be proven to be unsupported on an earlier stage.

This was introducing issues on some boards since the blacklisting of
some features depends on board information which is not available at the
time of performing this resolution.
2020-05-25 11:07:15 +02:00
Leandro Lanzieri
9a9136af7e
Merge pull request #14130 from fjmolinas/pr_info_boards_blacklisted
makefiles/info-global.inc.mk: add info-boards-features-blacklisted
2020-05-25 10:22:31 +02:00
Francisco Molina
8eee779c50
makefiles/info-global.inc.mk: add info-boards-features-blacklisted 2020-05-25 09:48:36 +02:00
Francisco Molina
1c01e46956
makefiles/info-global.inc.mk: fix info-boards-supported
When using eval the function board_unsatisfied_features is evaluated
twice, in the first evaluation this will lead to the previous value
for `BOARDS` to be expanded, so escape all occurrences.
2020-05-25 09:45:06 +02:00
Jean Pierre Dudey
85a223245e
boards/cc1352p-launchpad: add I2C configuration
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-05-24 13:15:17 -05:00
Jean Pierre Dudey
a2d470687d
boards/cc1352-launchpad: add I2C configuration
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-05-24 12:44:16 -05:00
Jean Pierre Dudey
99118e257a
boards/cc1312-launchpad: add I2C configuration
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-05-24 12:44:16 -05:00
Jean Pierre Dudey
0f3393d61a
cpu/cc26x0: move i2c code to cc26xx_cc13xx
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-05-24 12:44:09 -05:00
benpicco
ee319a40ed
Merge pull request #14116 from jue89/feature/board_samr30-xpro_ext-spi
boards/samr30-xpro: add SPI dev for ext pin header
2020-05-23 17:34:30 +02:00
benpicco
f86934a497
Merge pull request #14107 from jue89/fix/sam0_spi_muxing
cpu/sam0_common/spi: move clk pin muxing into spi_acquire / spi_release
2020-05-23 17:34:13 +02:00
Juergen Fitschen
a1b3a80985 boards/samr30-xpro: add SPI dev for ext pin header 2020-05-23 14:01:08 +02:00
Juergen Fitschen
ee0a254a21 boards/samr30-xpro: fix identation 2020-05-23 14:01:08 +02:00
Juergen Fitschen
a9305e47f7 boards/samr30-xpro: add notes on peripheral definition 2020-05-23 14:01:08 +02:00
Juergen Fitschen
df90176b1f cpu/sam0_common/spi: move clk pin muxing into spi_acquire / spi_release
When the SPI peripheral is disabled, the output lines will become HIGH-Z.
If the clk pin is not pulled HIGH or LOW, connected SPI slaves will start drawing current expectedly.
2020-05-23 13:54:39 +02:00
63a79ae6e4
cpu/stm32: move stmclk in its own module, remove useless ifdefs 2020-05-22 21:21:08 +02:00
MichelRottleuthner
b13a4d6c9c
Merge pull request #14060 from miri64/lwip_sock/fix/re-recv-signal
lwip_sock: re-issue receive events if there are still received messages after `*_recv()` or `*_accept()` was called.
2020-05-22 15:59:25 +02:00
Leandro Lanzieri
d62cf184c9
Merge pull request #13952 from akshaim/Kconfig_rn2xx3
drivers/rn2xx3 : Expose Configurations to Kconfig
2020-05-22 15:57:56 +02:00
Akshai M
26c0dabd14 (RIOTBASE) : Kconfig macro definitions
Create new file for Kconfig Macro definitions

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-05-22 18:06:54 +05:30
Martine Lenders
e011e3ed38
Merge pull request #14043 from pokgak/pr/sock_dtls/send_api_change
sock_dtls: add timeout to sock_dtls_send and add sock_dtls_session_init
2020-05-22 14:33:54 +02:00