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

31448 Commits

Author SHA1 Message Date
Benjamin Valentin
39951a948e net/netif: move gnrc_netif_addr_to/from_str() to netif
These functions are independent from GNRC and can be used by stack-agnistoc
code.
Avoid pulling in a GNRC dependency by moving those two helper functions to
`netif`.

The old function names are kept as `static inline` wrapper functions to avoid
breaking API users.
2020-08-16 23:52:32 +02:00
Benjamin Valentin
bdc43c245c cpu/native: RTC: implement rtc_set_alarm()
Use xtimer to simulate an RTC timer.
This allows to simulate software that makes use of `rtc_set_alarm()`
on native.
2020-08-16 23:28:30 +02:00
Benjamin Valentin
f0e77840dc cpu/nrf52: spi_twi_irq add workaround for nRF52810 vendor file
Either nRF52810 should define SPIM_COUNT 2 or nRF52805 should
define SPIM_COUNT 1.
But as it nRF52805 defines SPIM_COUNT 2 and nRF52810 defines SPIM_COUNT 1
even though both have a single SPI and a single, separate TWI peripheral.

Re-define SPIM_COUNT to 2 on nRF52810 as this is the easiest solution.
2020-08-16 23:26:17 +02:00
Benjamin Valentin
5ecf2e8bb1 cpu/nrf52: ensure PWM is present
Not all members of the family have a PWM peripheral
2020-08-16 23:26:17 +02:00
Benjamin Valentin
899e97af30 cpu/nrf52: add definitions for remaining family members 2020-08-16 23:26:17 +02:00
Benjamin Valentin
66f1cd5b60 tests/driver_at86rf2xx_aes: only run CI test on whitelisted boards
The test needs a at86rf2xx device attached to the board, otherwise
it will always fail.
2020-08-16 21:59:04 +02:00
Benjamin Valentin
a5043540f4 dist/tools/compile_test: use Python3 2020-08-16 20:00:54 +02:00
Benjamin Valentin
b8e2d14164 gen_esp32part.py: use Python3 2020-08-16 19:48:04 +02:00
zhuoshuguo
d3c87d7bb9 lwmac: add re-initialize radio support. 2020-08-15 22:12:36 +08:00
Marian Buschsieweke
164d2ac8f2
core/byteoder: Moved to sys
The byteorder utilities are never used in `core`, but extensively in `sys`.
They seem to be better located in `sys`.
2020-08-14 16:28:59 +02:00
benpicco
7abcc4242b
Merge pull request #14761 from maribu/byteorder_64bit
core/byteorder: Add byteorder_bebuftohll() and inverse
2020-08-14 15:14:02 +02:00
hugues
7b3b10303b cpu/stm32/vectors/vectors_f3: a small fix for STM32F334x8 2020-08-14 14:03:10 +02:00
Marian Buschsieweke
81d40d3f66
core/byteorder: Add byteoder_htobebufll & inverse
- Add `byteorder_bebuftohll()` to read an 64 bit value from a big endian buffer
- Add `byteorder_htobebufll()` to write an 64 bit value into a big endian buffer
2020-08-14 13:36:40 +02:00
Marian Buschsieweke
030e0af985
sys/unaligned: Add 64 bit version
Add helper function to access `uint64_t` values with possibly unaligned
pointers.
2020-08-14 12:21:24 +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
Marian Buschsieweke
5f9718525b
Merge pull request #14751 from benpicco/tests/periph_gpio-auto_test
tests/periph_gpio: add automatic GPIO test cmd
2020-08-13 10:36:41 +02:00
Benjamin Valentin
53e292569d tests/periph_gpio: add automatic GPIO test cmd
This adds the `auto_test <port> <pin> <port> <pin>` command.

Specify two GPIOs that are electrically connected e.g. via jumper or wire.

The command will automatically conduct several tests to ensure that the
GPIO implemenation behaves according to the specification.
2020-08-13 10:12:21 +02:00
Benjamin Valentin
2509c206ee cpu/lm4f120: GPIO: clear stale interrupt 2020-08-13 10:12:21 +02:00
Francisco Molina
8ab8d04e9b
makefiles/info-global.inc.mk: include FEATURES_CONFLICTS
If there are FEATURES_CONFLICTING consider the application not
supported for the BOARD.
2020-08-13 09:29:34 +02:00
benpicco
add10b5fab
Merge pull request #14113 from fabian18/at86rf2xx_spi_security_module
drivers/at86rf2xx; spi security module (AES)
2020-08-12 23:14:12 +02:00
Martine Lenders
834b1f4b6a
Merge pull request #14740 from miri64/gh-actions/enh/release-test-artifacts
gh-actions: rename release test artifacts
2020-08-12 19:48:44 +02:00
fabian18
74eec8274e tests/driver_at86rf2xx_aes: Test for at86rf2xx AES security module 2020-08-12 18:54:23 +02:00
7e411ec1b0
Merge pull request #14741 from fjmolinas/pr_fe310_configurable_rtt
cpu/fe310: add unified rtt configuration
2020-08-12 18:36:15 +02:00
fabian18
1fca10c486 drivers/at86rf2xx: SPI AES security module 2020-08-12 17:18:00 +02:00
Francisco Molina
442b11d0ee
cpu/fe310: add unified rtt configuration 2020-08-12 14:46:59 +02:00
benpicco
02a714e06f
Merge pull request #14747 from Nishchay-sopho/drivers_sps30_update_comments
drivers/sps30: Update units of measurement
2020-08-12 14:04:23 +02:00
benpicco
04f20e5a54
Merge pull request #14748 from fjmolinas/pr_cc2538_32b_timer
cpu/cc2538/timer: fix 32 bit timer reload value
2020-08-12 14:04:17 +02:00
benpicco
e1c6f11fd8
Merge pull request #14742 from kaspar030/fix_timer_msg_tests
tests/[xz]timer_msg: check result of thread_create()
2020-08-12 14:03:42 +02:00
benpicco
dfcc69dcb1
Merge pull request #14193 from aabadie/pr/pkg/lvgl_v7
pkg/lvgl: bump to v7
2020-08-12 14:03:24 +02:00
Nishchay-sopho
3245dee8d8 drivers/sps30: Update units of measurement 2020-08-12 12:50:35 +02:00
Cenk Gündoğan
8f1fd3a5a3
murdock: add test for Kconfig dependency modelling
This adds a list of board/application pairs which should be tested. The
test consists on comparing the binaries generated using dependency
resolution in Makefile and in Kconfig.
2020-08-12 12:22:43 +02:00
Leandro Lanzieri
7dc6639f59
cpu/cortexm_common: add default Kconfig configuration 2020-08-12 12:22:43 +02:00
Leandro Lanzieri
f4e651e26d
cpu/sam0_common: Add default Kconfig configuration
The configuration file is included by samd21 so it is merged when using
Kconfig.
2020-08-12 12:22:42 +02:00
Leandro Lanzieri
180ee6efc9
makefiles: introduce KCONFIG_ADD_CONFIG variable
This holds a list of .config files to be merged. For more details see
kconfig.mk.
2020-08-12 12:22:42 +02:00
Leandro Lanzieri
01454188e8
Makefile.include: introduce TEST_KCONFIG switch
This switch allows to test the module dependency modelling during the
Kconfig migration. When set, it will use the symbols prefixed with
CONFIG_MOD_ defined by Kconfig as the list of modules to compile.
2020-08-12 12:22:41 +02:00
Leandro Lanzieri
e76387911c
sys/pm_layered: Add module to Kconfig 2020-08-12 12:22:41 +02:00
Leandro Lanzieri
4f2494fa1a
sys/stdio: add module to Kconfig 2020-08-12 12:22:41 +02:00
Leandro Lanzieri
67b2519a7d
sys: add newlib modules to Kconfig 2020-08-12 12:22:40 +02:00
Leandro Lanzieri
14499e3b7e
drivers/periph_common: Add modules to Kconfig 2020-08-12 12:22:40 +02:00
Leandro Lanzieri
b98527ef53
cpu: Add 'periph' module to Kconfig
Select it from cortexm_common module as it is always needed.
2020-08-12 12:22:39 +02:00
Leandro Lanzieri
0ddd2886b7
cpu/sam0_common: add sam0_common_periph module to Kconfig 2020-08-12 12:22:39 +02:00
Leandro Lanzieri
2d53003ee2
cpu/cortexm_common: Model cortexm_common modules
This models cortexm_common and cortexm_common_periph modules.
2020-08-12 12:22:39 +02:00
Leandro Lanzieri
4ad2180f81
kconfig: Add default modules' symbols 2020-08-12 12:22:38 +02:00
Leandro Lanzieri
f5e57fbca4
core: Add modules to Kconfig 2020-08-12 12:22:35 +02:00
Francisco Molina
8ed8daa493
cpu/cc2538/timer: fix 32 bit timer reload value
The interval load value was only set to 0xffff regardless of the counter
mode used which mad the 32bit timer apparently stop after 0xffff (it
would never reach values >0xffff).

When a GPTM is configured to one of the 32-bit modes, TAILR appears as a
32-bit register (the upper 16-bits correspond to the contents of the
GPTM Timer B Interval Load (TBILR) register). In a 16-bit mode, the
upper 16 bits of this register read as 0s and have no effect on the
state of TBILR.

Thsi commit set the correct value for TAILR depending on the configured
timer mode.
2020-08-12 11:35:42 +02:00
Martine Lenders
76709fa453
Merge pull request #14745 from benpicco/nanocoap-coverity
nanocoap: validate input with NDEBUG
2020-08-12 07:43:51 +02:00
15b1816e4a
Merge pull request #14746 from aabadie/pr/examples/lorawan_test_typo
examples/lorawan: fix typo in automatic test script
2020-08-11 18:00:33 +02:00
benpicco
419ee52ddc
Merge pull request #14711 from benpicco/cpu/sam0_common/gpio-intermediate_irq
cpu/sam0_common: GPIO: ignore stale interrupts
2020-08-11 16:32:57 +02:00
377d389ce9
Merge pull request #14609 from fjmolinas/pr_openwsn_bump
pkg/openwsn: bump version
2020-08-11 16:25:36 +02:00
Benjamin Valentin
d4aa8aad10 nanocoap: validate input with NDEBUG
A malformed or malicious CoAP request may contain invalid field lengths.
`nanocoap` protects with this by using `assert()`, which safely crashes
the application in debug mode.

In release mode the check is removed.

Instead of allowing arbitrary memory writes, return 0 on invalid inputs.

Discovered by [Coverity](https://scan3.coverity.com/reports.htm#v46910/p10250/fileInstanceId=38357789&defectInstanceId=9793779&mergedDefectId=297306)
2020-08-11 15:54:23 +02:00