1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net
bors[bot] 4f1bb12720
Merge #18752 #19100 #19104
18752: nanocoap_sock: deprecate nanocoap_get() r=benpicco a=benpicco





19100: cpu/esp_common: allow configuration of UART0 r=benpicco a=gschorcht

### Contribution description

This PR
- fixes the issue for ESP32 SoCs that UART0 signals can't be routed to arbitrary GPIOs and
- allows the configuration of the UART device used by the bootloader.

The UART interface and its configuration used by the STDIO are defined in RIOT using the define `STDIO_UART_DEV` and the configuration of the corresponding UART device in `periph_conf.h`. 

However, the bootloader compiled directly in ESP-IDF uses its own definitions `CONFIG_ESP_CONSOLE_UART_*` for the UART configuration. To be able to use a consistent UART configuration in RIOT and the bootloader, e.g. to see the output of the 2nd stage bootloader, these `CONFIG_ESP_CONSOLE_UART_*` can be defined via a set of KConfig variables in RIOT (not yet implemented in Kconfig):
- `CONSOLE_CONFIG_UART_NUM` defines the UART device to be used by the bootloader and by `STDIO_UART_DEV`
- `CONSOLE_CONFIG_UART_RX` and `CONSOLE_CONFIG_UART_TX` define the GPIOs to be used by the bootloader and should be the GPIOs as defined in `periph_conf.h` for the corresponding UART device.

### Testing procedure

Any ESP32 node should still work with `stdio_uart` and the default configuration. To test an alternative configuration, use
```
CFLAGS='-DUART1_TXD=5 -DUART1_RXD=4 -DCONFIG_CONSOLE_UART_NUM=1 -DCONFIG_CONSOLE_UART_TX=5 -DCONFIG_CONSOLE_UART_RX=4' USEMODULE=esp_log_startup BOARD=esp32-wroom-32 make -C tests/shell flash
```
The bootloader output and the STDIO should be routed to UART1 at GPIO4 and GPIO5.

### Issues/PRs references

Prerequisite for PR ##18863

19104: tests/periph_uart: only exclude STDIO_UART_DEV if stdio_uart is used r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
2023-01-06 21:15:36 +00:00
..
bluetil bluetil/addr: fix byte ordering in addr_from_str() 2019-08-28 16:48:42 +02:00
cord net/cord doc: Expand CONFIG_CORD_EXTRAARGS documentation 2022-01-27 09:50:08 +01:00
dhcpv6 doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
dns includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
ethernet treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
fib all: adapt to moved sched defines 2020-11-23 16:56:34 +01:00
gcoap gcoap_forward_proxy: send empty ACK when response takes too long 2022-10-12 17:33:55 +02:00
gnrc gnrc_netif: constify group parameter 2022-12-13 00:24:44 +01:00
iana cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
ieee802154 ieee802154/submac: use default config for max frame retransmissions 2022-06-27 14:51:16 +02:00
ipv4 treewide: fix typos found by recent codespell 2022-11-24 14:53:48 +01:00
ipv6 sys/net: add ipv6_addrs_print() 2022-06-06 20:46:48 +02:00
lorawan gnrc/lorawan: add support for GNRC LoRaWAN 1.1 2022-09-29 11:25:56 +02:00
nanocoap nanocoap_cache: add helper function to check if entry is stale 2022-05-13 12:14:55 +02:00
netstats sys/include/net/netstats: move xtimer header where it is needed 2021-02-16 18:18:21 +01:00
ppp treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
rpl sys/net/gnrc/rpl: refactor netstats_rpl_t 2022-06-30 09:48:45 +02:00
sixlowpan nib/_nib-6ln: correct ABR timeout in ABRO 2022-09-29 10:48:49 +02:00
skald net/ble/skald: let itvl be configured per context 2022-05-24 13:02:10 +02:00
sock sys/net: include misplacement inside linkage-specification 2022-09-14 10:47:18 +02:00
af.h sys/include/net/af: fix doc comment 2022-04-14 09:23:27 +02:00
arp.h gnrc_dhcpv6_client: fix for SLIP link-layer 2020-04-07 22:08:57 +02:00
asymcute.h sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP 2022-01-07 11:28:11 +01:00
ble.h net/ble.h: add custom NDN support service UUID 2019-11-13 11:28:01 +01:00
coap.h Merge #18773 2023-01-06 01:07:57 +00:00
credman.h includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
csma_sender.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
dhcpv6.h doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
dns_mock.h sys/net/application_layer/sock_dns_mock: add module for mocking sock_dns 2022-04-03 17:29:10 +02:00
dns.h sys/dns: select appropriate address family if AF_UNSPEC 2022-12-07 22:26:51 +01:00
dsm.h dsm: make CONFIG_DSM_PEER_MAX depend on CONFIG_DTLS_PEER_MAX 2021-10-08 12:15:53 +02:00
dtls.h dtls: set CONFIG_DTLS_PEER_MAX in dtls.h header 2021-10-08 12:10:28 +02:00
eddystone.h sys/net: added generic Eddystone defines 2018-04-06 11:18:53 +02:00
emcute.h net/emcute: add doc that QoS -1 is not supported 2020-12-18 10:41:52 +01:00
ethernet.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
ethertype.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
eui48.h net/eui48: add eui64_to_eui48() 2020-09-30 11:18:36 +02:00
eui64.h sys/net/eui64: fix broken links 2020-03-24 10:39:49 +01:00
eui_provider.h net/eui_provider: prohibit use of NETDEV_ANY for EUI device type 2021-06-08 14:30:40 +02:00
fib.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
gcoap.h gcoap: accept resources in any order 2022-09-26 20:20:14 +02:00
gnrc.h net/gnrc: Fixing whitespace in the documentation 2022-04-29 14:19:25 +02:00
icmp.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
icmpv6.h sys/include/net/icmpv6.h: fix two small typos 2018-12-24 14:34:50 +01:00
ieee802154_security.h sys/include: remove kernel_defines.h where not needed 2022-11-22 13:39:35 +01:00
ieee802154.h net/ieee802154: add option for default ack request 2022-12-14 16:29:01 +01:00
inet_csum.h cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
ipv4.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
ipv6.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
l2filter.h net/l2filter : Update documentation 2020-07-22 00:26:09 +05:30
l2util.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
lora.h includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
loramac.h includes/net: replace "kernel_defines.h" 2022-11-22 13:39:35 +01:00
mqttsn.h net/mqttsn: add flag definition for QoS -1 2020-12-18 10:22:25 +01:00
nanocoap_sock.h Merge #18752 #19100 #19104 2023-01-06 21:15:36 +00:00
nanocoap_vfs.h nanocoap_vfs: add nanocoap_vfs_put() 2022-06-08 17:19:03 +02:00
nanocoap.h nanocoap: turn coap_szx2size() into a macro 2022-12-13 00:27:45 +01:00
ndp.h gnrc_ndp: add route information option 2021-06-18 00:13:08 +02:00
netdev_test.h netdev_test: avoid explicit cast to netdev 2021-07-09 11:35:19 +02:00
netif.h sys/net/netif: add helpers for IPv6 addresses 2022-06-06 20:46:48 +02:00
netopt.h gnrc/lorawan: add support for GNRC LoRaWAN 1.1 2022-09-29 11:25:56 +02:00
netstats.h netstats: add missing cib.h include 2021-07-05 10:32:50 +02:00
ntp_packet.h cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
packet.h cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
ppptype.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
protnum.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
sixlowpan.h sixlowpan|gnrc_sixlowpan: change SFR draft to RFC in doc 2020-12-14 09:00:26 +01:00
skald.h net/ble/skald: let itvl be configured per context 2022-05-24 13:02:10 +02:00
sntp.h sntp.h: document sntp_sync timeout unit 2018-01-30 21:18:36 +01:00
sock.h gnrc_sock_udp: accept response from any address if remote is multicast 2022-11-15 11:26:31 +01:00
someip.h doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
tcp.h gnrc_tcp: add listen/accept 2021-07-08 09:40:02 +02:00
telnet.h sys/net/telnet: add telnet_server_disconnect() 2022-06-08 13:01:23 +02:00
udp.h cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
uhcp.h uhcp: improve documentation 2020-11-09 11:45:28 +01:00
utils.h sys/net/netutils: add netutils_get_ipv4() 2022-03-08 13:35:32 +01:00
zep.h sys/net/zep: add missing doxygen brief description 2018-01-24 21:41:31 +01:00