Marian Buschsieweke
7e0af3cd22
Merge pull request #18833 from benpicco/bitfield-ops
...
sys/bitfield: add bf_find_first_{set, unset}()
2022-11-07 20:27:48 +01:00
benpicco
8559472179
Merge pull request #18821 from jue89/feature/saml21_pheriph_pm
...
cpu/saml21: add interaction with pm_layered for peripheral drivers
2022-11-07 19:53:57 +01:00
benpicco
8a811e8a69
Merge pull request #18845 from maribu/llvm-compat
...
build system: fix compilation with LLVM
2022-11-07 19:51:18 +01:00
Marian Buschsieweke
0077e9ad70
makefiles/libc: fix wchar_t size warnings on LLVM
...
The test for the requirement of disabling wchar_t size warnings assumed
that $(CC) is used for linking, instead of $(LINK). With GCC $(LINK)
and $(CC) happen to be (in most cases) identical, but with LLVM they
are not. This results in issues with compiling with LLVM.
2022-11-07 15:02:03 +01:00
Marian Buschsieweke
67ba1a0cb7
makefiles/cflags.inc.mk: add -z noexecstack
to link flags
...
GCC on some platforms does need an executable stack to generate
trampoline code, but use of nested functions is not allowed in
RIOT's code base anyway.
2022-11-07 15:02:03 +01:00
Marian Buschsieweke
13eef005ef
Merge pull request #18848 from benpicco/coap_build_reply-return
...
examples: check return value of coap_build_reply()
2022-11-07 12:20:42 +01:00
Martine Lenders
e07747a9f7
Merge pull request #18852 from Teufelchen1/fix/llvm_gnrc_networking
...
gnrc: Fix unused function error when using LLVM
2022-11-06 19:08:53 +01:00
Teufelchen1
64b4d433b9
gnrc: Fix unused function error when using LLVM
2022-11-06 15:39:39 +00:00
Martine Lenders
5c2a99a348
Merge pull request #18850 from Teufelchen1/chore/examples_gnrc
...
examples: Remove macOS references in README
2022-11-06 16:17:27 +01:00
Teufelchen1
2adf0e9072
examples: Remove macOS references in README
2022-11-05 11:54:51 +00:00
benpicco
384e3ca534
Merge pull request #18847 from krzysztof-cabaj/nucleo-f207zg-ADC
...
boards/nucleo-f207zg: support for ADC
2022-11-05 01:55:30 +01:00
krzysztof-cabaj
aa426bd3aa
cpu/stm32/f2: add ADC support for f207zg
2022-11-04 18:02:28 -04:00
krzysztof-cabaj
cfd0183f60
boards/nucleo-f207zg: add ADC support
2022-11-04 18:02:28 -04:00
Benjamin Valentin
4fe202db1e
examples: check return value of coap_build_reply()
...
`coap_build_reply()` may return negative values on error or
0 in the no-response case.
Don't use it to calculate a payload offset without checking first.
2022-11-04 20:00:51 +01:00
Benjamin Valentin
17374301c9
tests/unittests: add tests for bf_set_all()
2022-11-04 16:48:49 +01:00
Benjamin Valentin
60ab2dbc95
sys/bitfield: add bf_set_all()
2022-11-04 16:48:48 +01:00
Kevin "Tristate Tom" Weiss
19943d2aa8
Merge pull request #18787 from gschorcht/cpu/stm32/usbdev_synopsys_dwc_dependency
...
cpu/stm32: improvement of USB device driver selection
2022-11-04 07:57:28 +01:00
benpicco
f954a8bac7
Merge pull request #18842 from kfessel/p-pm-layerd-speedup
...
sys/pm_layered: move (un)block assert for minor speedup
2022-11-04 02:36:57 +01:00
benpicco
0284aa5146
Merge pull request #18819 from benpicco/nanocoap_sock-non-retrans
...
nanocoap_sock: only re-transmit CON messages
2022-11-03 23:10:25 +01:00
Juergen Fitschen
97832d0595
Merge pull request #18837 from gschorcht/core/xfa/doc_fix
...
core/lib/xfa: fix parameter documentation
2022-11-03 21:26:28 +01:00
Karl Fessel
f3ed268ec6
sys/pm_layered: move (un)block assert for minor speedup
2022-11-03 16:20:56 +01:00
Jue
73e6886b2c
cpu/saml21: define required power modes
...
We can get rid initially blocked pm modes \o/
2022-11-03 14:53:45 +01:00
Jue
24461b43f8
cpu/sam0/spi: generalize pm_layered interaction
...
In DMA mode SPI transfers are carried out by HW. We need to block certain pm modes during transfer.
2022-11-03 14:53:44 +01:00
Jue
db9263eeca
cpu/sam0/rtc_rtt: integrate pm_layered
2022-11-03 14:53:43 +01:00
Jue
cc4e880aa8
cpu/sam0/rtc: remove overflow IRQ
...
Due to the RIOT_EPOCH of 2020 this overflow will happen in year 2084. It would be scary if IoT devices are still around then.
We can save RAM and ROM. Furthermore, this overflow handling should block BACKUP power mode in order to keep track of the reference year.
2022-11-03 14:52:38 +01:00
Jue
5866262122
cpu/sam0/usbdev: generalize pm_layered interaction
...
periph_cpu.h should define the required pm modes.
Additionally, some CPUs require a certain pm mode in USB IDLE mode.
2022-11-03 14:27:47 +01:00
Jue
220be1da7e
cpu/sam0/gpio: integrate pm_layered
2022-11-03 14:27:47 +01:00
Jue
ae9190da30
cpu/sam0/uart: integrate pm_layered
2022-11-03 14:27:47 +01:00
Jue
aa5ad12f37
cpu/sam0/uart: skip uart_write() if uart isn't active
...
Otherwise we get stuck in an endless loop ...
2022-11-03 14:27:47 +01:00
Jue
cf5e207d62
cpu/sam0/uart: enable peripheral clock before accessing regs
2022-11-03 14:27:47 +01:00
Jue
4f25c1017d
cpu/sam0/timer: integrate pm_layered
2022-11-03 14:27:47 +01:00
chrysn
b61a203053
Merge pull request #18834 from chrysn-pull-requests/tinyusb-ref-usbus
...
pkg/tinyusb: Note distinction from USBUS
2022-11-03 14:19:15 +01:00
Gunar Schorcht
112f0c6cfc
pkg/tinyusb: improvement of USB driver selection for STM32
...
There are STM32 families where all models use only the Synopsys DWC2 USB OTG core while others completely use only the USB Device FS core. For these families then either the driver `drivers/usbdev_synopsys_dwc2` or the driver `cpu/stm32/periph/usbdev` is used depending on the respective family. However, the STM32 families F1 and L4 use both cores. The correct driver must therefore be selected depending on the CPU line or CPU model.
2022-11-03 13:56:38 +01:00
Gunar Schorcht
31efa61eda
cpu/stm32: improvement of USB driver selection
...
There are STM32 families where all models use only the Synopsys DWC2 USB OTG core while others completely use only the USB Device FS core. For these families then either the driver `drivers/usbdev_synopsys_dwc2` or the driver `cpu/stm32/periph/usbdev` is used depending on the respective family. However, the STM32 families F1 and L4 use both cores. The correct driver must therefore be selected depending on the CPU line or CPU model.
2022-11-03 13:52:01 +01:00
Gunar Schorcht
de632b4df8
core/lib/xfa: fix parameter documentation
2022-11-03 10:25:37 +01:00
Gunar Schorcht
ccbb304eae
Merge pull request #18814 from jue89/fix/efm32_series2_timer
...
cpu/efm32/timer_series2: fix interaction with pm_layered
2022-11-02 16:30:13 +01:00
chrysn
def30c1d3f
pkg/tinyusb: Note distinction from USBUS
2022-11-02 14:12:33 +01:00
Juergen Fitschen
84c89f9dd7
Merge pull request #18783 from jue89/fix/ztimer_lptimer_kconfig
...
sys/ztimer: model ztimer_periph_lptimer for Kconfig
2022-11-02 13:56:05 +01:00
Benjamin Valentin
6185715aea
tests/unittests: add tests for new bitfield functions
2022-11-02 13:06:06 +01:00
Benjamin Valentin
8da267de72
sys/bitfield: add bf_find_first_{set, unset}()
...
At functions to get the first (un)set bit in a bitfield.
2022-11-02 13:06:06 +01:00
Gunar Schorcht
e802203b19
Merge pull request #18829 from jmgraeffe/esp32-bootloader-automatic-xtal-frequency
...
cpu/esp32: set bootloader XTAL frequency configuration to automatic
2022-11-01 19:27:22 +01:00
Jue
ef3e192bc0
boards/xg23-pk6068a: provide ZTIMER_LPTIMER configuration
2022-11-01 14:26:29 +01:00
benpicco
7a2c665d70
Merge pull request #18762 from benpicco/tests/thread_msg_bus-enhance
...
tests/thread_msg_bus: enhance test with non-bus message
2022-11-01 12:56:25 +01:00
Marian Buschsieweke
3c207a3d2c
Merge pull request #18826 from benpicco/slipdev-off_by_one
...
drivers/slipdev: fix off-by-one error in _recv()
2022-11-01 06:59:36 +01:00
Jon-Mailes Graeffe
b0686ce4dd
cpu/esp32: set bootloader XTAL frequency configuration to automatic
2022-11-01 03:22:38 +01:00
Juergen Fitschen
240ccedeea
Merge pull request #18825 from jue89/fix/saml21-pm-modes
...
cpu/saml21/pm: allow blocking IDLE mode
2022-11-01 00:40:12 +01:00
Martine Lenders
780309d71a
Merge pull request #18823 from Diff-fusion/master
...
drivers/ethos: Fix off-by-one bug
2022-10-31 23:32:52 +01:00
Benjamin Valentin
269b3c97c2
drivers/slipdev: fix off-by-one error in _recv()
2022-10-31 22:54:33 +01:00
Jue
4b802ad12e
sys/pm_layered: add debugging outputs
2022-10-31 22:18:00 +01:00
Jue
75295df810
cpu/saml21/pm: allow blocking IDLE mode
2022-10-31 22:18:00 +01:00