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

33435 Commits

Author SHA1 Message Date
Marian Buschsieweke
7364f1b451
sys/ztimer: compat for xtimer_mutex_lock_timeout 2020-12-09 13:26:37 +01:00
Marian Buschsieweke
aa4532a2e7
tests/ztimer_mutex_lock_timeout: new test 2020-12-08 22:54:45 +01:00
Marian Buschsieweke
d48fac278b
sys/ztimer: drop unused internal typedef 2020-12-08 22:54:39 +01:00
Marian Buschsieweke
71a0c53df2
sys/ztimer: Add ztimer_mutex_lock_timeout() 2020-12-08 22:54:39 +01:00
Martine Lenders
1feacd1b88
Merge pull request #15583 from benpicco/byteorder_htols
drivers, sys: use byteorder_htols()
2020-12-08 20:15:19 +01:00
Martine Lenders
23eb4d4e18
Merge pull request #15581 from janosbrodbeck/pr/dtls/remove_session_create
sock/dtls: remove sock_dtls_session_create due to deprecation
2020-12-08 20:08:20 +01:00
benpicco
18062aca09
Merge pull request #15586 from bergzand/pr/littlefs2/bump_2.3
littlefs2: Bump to v2.3
2020-12-08 19:20:01 +01:00
Francisco
ee80e5aced
Merge pull request #15534 from jia200x/pr/cc2538_rf_submac
cc2538_rf: default to netdev_ieee802154_submac
2020-12-08 17:59:37 +01:00
229291ef01
Merge pull request #15442 from maribu/mutex_abort
core/mutex: Add mutex_cancel
2020-12-08 17:12:52 +01:00
benpicco
c15001d33a
Merge pull request #15584 from fjmolinas/pr_submac_state_type
sys/net/link_layer/ieee802154/submac: fix type
2020-12-08 16:42:46 +01:00
0a96c71053
littlefs2: Bump to v2.3 2020-12-08 16:32:08 +01:00
Benjamin Valentin
518c95e0ee gnrc_netif_ieee802154_create: use byteorder_htols() 2020-12-08 16:31:20 +01:00
Benjamin Valentin
ec5e45defb gnrc/lwmac: use byteorder_htols() 2020-12-08 16:30:43 +01:00
Benjamin Valentin
dd87737ca0 gnrc/gomach: use byteorder_htols() 2020-12-08 16:30:17 +01:00
Benjamin Valentin
129e9ae8a3 sys/gnrc_lorawan: use byteorder_htols()/byteorder_htoll() 2020-12-08 16:29:10 +01:00
Leandro Lanzieri
06a06c32e3
Merge pull request #15573 from akshaim/Kconfig_rn2xx3_update
drivers/rn2xx3 : Kconfig updates.
2020-12-08 15:20:25 +01:00
bb907e60ab
Merge pull request #15582 from kaspar030/update_cortexm_codeowners
CODEOWNERS: update for cpu/cortexm_common/
2020-12-08 15:19:19 +01:00
4e1ac22902
Merge pull request #15580 from kaspar030/fix_cortexm_pendsv_r12_clobber
cpu/cortexm_common: fix r12 clobber in pendsv for Cortex-M3+
2020-12-08 15:18:58 +01:00
Marian Buschsieweke
df66dd0272
core/mutex: uncrustify 2020-12-08 14:50:50 +01:00
Marian Buschsieweke
9127deb6fe
tests: Add test for core_mutex/mutex_cancel 2020-12-08 14:50:49 +01:00
Marian Buschsieweke
e348407888
core/mutex: Add mutex_cancel() & mutex_lock_cancelable()
Add a version of `mutex_lock()` that can be canceled with the obvious name
`mutex_lock_cancelable()`. This function returns `0` on success, and
`-ECANCELED` when the calling thread was unblocked via a call to
`mutex_cancel()` (and hence without obtaining the mutex).

This is intended to simplify the implementation of `xtimer_mutex_lock_timeout()`
and to implement `ztimer_mutex_lock_timeout()`.
2020-12-08 14:50:49 +01:00
Francisco Molina
7bf2263507
sys/net/link_layer/ieee802154/submac: fix type 2020-12-08 14:22:09 +01:00
Benjamin Valentin
7a7ebb1d5b drivers/mrf24j40: use byteorder_htols()
same as 374d032b82
2020-12-08 13:40:57 +01:00
Benjamin Valentin
26bcaf94b5 drivers/at86rf2xx: use byteorder_htols()
same as 374d032b82
2020-12-08 13:40:24 +01:00
04ca147f59 cpu/cortexm_common: fix r12 clobber in pendsv for Cortex-M3+ 2020-12-08 13:29:54 +01:00
493f956dd6 CODEOWNERS: update for cpu/cortexm_common/ 2020-12-08 13:24:59 +01:00
71f6b73251
Merge pull request #15519 from benpicco/byteorder_letoh
sys/byteorder: add helpers to convert from little endian to host byte order
2020-12-08 12:52:32 +01:00
János Brodbeck
126d363cea
sock/dtls: remove sock_dtls_session_create
due to deprecation
2020-12-08 12:04:14 +01:00
János Brodbeck
c191f3b1a7
sock/dtls: doc: fix wrong numbering in client operations 2020-12-08 12:04:14 +01:00
Akshai M
95394c4ba7 drivers/rn2xx3 : Update Kconfig
Expose CONFIG_RN2XX3_DEFAULT_AR to Kconfig
2020-12-08 11:34:03 +01:00
Akshai M
bfd3a903fb drivers/rn2xx3 : r/LORAMAC_DEFAULT_AR/CONFIG_RN2XX3_DEFAULT_AR
Move 'LORAMAC_DEFAULT_AR' to drivers/rn2xx3 i.e
'RN2XX3_DEFAULT_AR'
Move 'RN2XX3_DEFAULT_AR' to 'CONFIG_' namespace

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-12-08 11:33:44 +01:00
2d551ec125 tests/core: Add tests for little endian functions 2020-12-08 11:26:20 +01:00
8b8a3ffbd9
Merge pull request #15491 from aabadie/pr/tools/qemu_debug
tools/emulator: add debug feature with qemu emulator
2020-12-08 11:23:33 +01:00
37bf3fd723
Merge pull request #15579 from kaspar030/split_cortexm_pendsv
cpu/cortexm_common: split isr_pendsv()
2020-12-08 11:06:38 +01:00
977f0dfd70 cpu/cortexm_common: split isr_pendsv() 2020-12-08 10:14:45 +01:00
Francisco
1d8c541b32
Merge pull request #15548 from benpicco/suit/transport/coap_blocksize
suit/transport/coap: make blocksize configurable
2020-12-08 10:14:34 +01:00
Francisco
d0082c6e48
Merge pull request #15561 from leandrolanzieri/pr/kconfig/drivers_bmx280_itg320x/fix_deps
drivers/{bmx280, itg320x}: fix Kconfig deps
2020-12-08 10:12:57 +01:00
Leandro Lanzieri
f74cb053b2
Merge pull request #15547 from akshaim/Kconfig_driver_ili9341
drivers/ili9341 : Expose configurations to Kconfig
2020-12-07 09:49:33 +01:00
benpicco
e3558a4482
Merge pull request #15567 from iosabi/qn908x_rtc
cpu/qn908x: Add the RTC module.
2020-12-06 23:20:49 +01:00
iosabi
3890091ced cpu/qn908x: Add the RTC module.
This patch implements the real time clock module for the QN908X cpus.

This module is very straightforward with only the one notable drawback
that it doesn't have a match register like the CTIMER block to implement
the alarm function. Instead, this driver can only use the interrupt
generated ever 1 second to implement the alarm match comparison in
software.
2020-12-06 20:49:51 +00:00
benpicco
0fcecdeaca
Merge pull request #15568 from iosabi/qn908x_gpio_int
cpu/qn908x: Fix triggering GPIO IRQ.
2020-12-06 19:38:24 +01:00
iosabi
ac4c4d6132 cpu/qn908x: Fix triggering GPIO IRQ.
The IRQ for each GPIO port needs to be enabled in the NVIC on top of
enabling the corresponding bit in the GPIO port.

This was not caught in tests before because I was testing with a larger
stack of commits (including UART and timers) which also had this fix.

Manually poking the GPIOs while using tests/periph_gpio now properly
fires the interrupts.
2020-12-06 18:07:44 +00:00
benpicco
f72e98d0a0
Merge pull request #15557 from iosabi/qn908x_ctimer
cpu/qn908x: Add timer driver based on CTIMER.
2020-12-05 17:36:36 +01:00
iosabi
ef4b58f4f0 cpu/qn908x: Add timer driver based on CTIMER.
The QN908x CPU has several timer modules: one RTC (Real-Time Clock) that
can count from the 32kHz internal clock or 32.768 kHz external clock,
four CTIMER that use the APB clock and have four channels each and one
SCT timer with up to 10 channels running on the AHB clock.

This patch implements a timer driver for the CTIMER blocks only, which
is enough to make the xtimer module work. Future patches should improve
on this module to support using the RTC CNT2 32-bit free-running
counter unit and/or the SCT timer.
2020-12-04 23:18:27 +01:00
iosabi
80bd203b4d cpu/qn908x: Add missing gpio & uart enum values.
GPIO_BOTH gpio_flank_t; UART_PARTY_MARK and UART_PARTY_SPACE in
uart_parity_t; and UART_DATA_BITS_5 and UART_DATA_BITS_6
uart_data_bits_t enum values where missing from the periph_cpu.h header
since they are not supported by the CPU. This was causing some tests to
fail to compile, but only after adding the periph_timer module.

This patch adds those missing macros and makes the corresponding
functions fail when trying to use them.

A minor fix to the NWDT_TIME_LOWER_LIMIT value setting it to 1U to avoid
a -Werror=type-limits error in the tests/periph_wdt test. In theory 0
is a totally valid value although a bit useless since it will trigger
the WDT right away.
2020-12-04 23:18:27 +01:00
benpicco
ffebb5d792
Merge pull request #15529 from chrysn-pull-requests/nrf5x-periph_timer_periodic
cpu/nrf5x: implement periph_timer_periodic
2020-12-04 22:02:50 +01:00
chrysn
e3e89fe513 cpu/nrf5x: implement periph_timer_periodic 2020-12-04 19:03:44 +01:00
Martine Lenders
5673adaf48
Merge pull request #14706 from maribu/sock-aux-dtls
pkg/tinydtls: Implement sock_aux_local
2020-12-04 17:08:00 +01:00
Marian Buschsieweke
f222a3f2e9
pkg/tinydtls: Implement sock_aux_local 2020-12-04 16:00:32 +01:00
Martine Lenders
599c2a145e
Merge pull request #15558 from aabadie/pr/ci/murdock_no_static_tests
.murdock: don't run static-tests on Murdock
2020-12-04 13:59:38 +01:00