Benjamin Valentin
03bbd6badf
pkg/tinyusb: implement stdio via CDC ACM
2022-11-09 12:06:36 +01:00
Benjamin Valentin
5938bd815a
pkg/tinyusb: provide common tusb_config.h
2022-11-09 12:06:36 +01:00
Benjamin Valentin
0bd67d98d9
cpu: always rely on stdio.inc.mk for default stdio selection
2022-11-09 10:42:47 +01:00
benpicco
e38e0b937c
Merge pull request #18835 from gschorcht/pkg/tinyusb_descriptors
...
pkg/tinyusb: add common USB descriptors implementation
2022-11-09 10:42:15 +01:00
Gunar Schorcht
028c22083b
pkg/tinyusb: add Kconfig variables for common tinyUSB descriptors
2022-11-09 06:57:55 +01:00
Gunar Schorcht
5685718bcf
sys/usb: enable common USB Kconfig for tinyUSB
2022-11-09 06:57:55 +01:00
Gunar Schorcht
579370fd75
tests/pkg_tinyusb_cdc_msc: use common descriptors implementation
2022-11-09 06:57:55 +01:00
Gunar Schorcht
ef5c4deb55
pkg/tinyusb: common descriptors implementation
2022-11-09 06:57:55 +01:00
Karl Fessel
c354ab6285
Merge pull request #18846 from kfessel/p-pm-layerd-speedup1
...
sys/pm_layered: align pm_blocker_t for speed
2022-11-08 10:50:16 +01:00
benpicco
f8964c0149
Merge pull request #18827 from benpicco/nanocoap_block-fix
...
nanocoap_sock: don't store entire sock in coap_block_request_t
2022-11-08 10:49:39 +01:00
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
Karl Fessel
72a1e93eed
sys/pm_layered: pm_get_blocker =
instead of memcopy -ease readability
2022-11-04 16:59:48 +01:00
Karl Fessel
5447203921
sys/pm_layered: pm_(un)block add attribute optimize(3) -shortens hotpath
2022-11-04 16:59:02 +01:00
Karl Fessel
21973963c0
sys/pm_layered: align pm_blocker_t for speed
2022-11-04 16:50:52 +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