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] 1a5cc2acbb
Merge #19365 #19366 #19367
19365: bootloaders: fix bootloader button logic r=benpicco a=dylad

### Contribution description

In lastest master, the `BTN_BOOTLOADER_INVERTED` logic doesn't work as expected.
This PR fixes the underlying logic by replacing the `BTN_BOOTLOADER_INVERTED` macro definition by a runtime function.
In fact the current code:
```
#ifndef BTN_BOOTLOADER_INVERTED
#if (BTN0_MODE == GPIO_IN_PD)
#define BTN_BOOTLOADER_INVERTED false
#else
#define BTN_BOOTLOADER_INVERTED true
#endif
#endif
```
cannot work because both `BTN0_MODE` and `GPIO_IN_PD` are not known by the precompiler as they are enum values defined at cpu level.
Thus, replaces it by a runtime function in our bootloader applications.
I've also add `GPIO_OD_PU` along side `GPIO_IN_PU` and add a new define (which can be override at board level or app level) in case an external pullup is used.

### Testing procedure
Flash the riotboot_dfu bootloader:
`make BOARD=saml21-xpro -C bootloaders/riotboot_dfu flash`
Then, flash any test app:
`PROGRAMMER=dfu-util USEMODULE=usbus_dfu make BOARD=saml21-xpro -C tests/shell riotboot/flash-slot0`

With master, the application will not start.
With this PR, the application will start after flashing.

### Issues/PRs references
Fixes #19364 


19366: nanocoap_sock: don't include token in empty ACK response r=benpicco a=benpicco



19367: cord: bump reference from draft to rfc r=benpicco a=bergzand

### Contribution description

The draft is an RFC, this bumps the "see also" in the docs to the rfc.

### Testing procedure

Check that the correct RFC is linked in the docs.

### Issues/PRs references

None


Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
2023-03-08 12:23:24 +00:00
..
bluetil
cord cord: bump reference from draft to rfc 2023-03-08 11:50:55 +01:00
dhcpv6 sys/net/dhcpv6: let dhcpv6_client_req_ia_pd() return error 2023-02-01 23:25:22 +01: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 Merge #18414 2023-01-16 22:23:46 +00:00
gnrc gnrc_sixlowpan_frag_sfr_congure: add congure_abe support 2023-03-01 20:23:32 +01:00
iana
ieee802154 ieee802154/radio: fix blocking cca function 2023-01-17 11:30:59 +01:00
ipv4 treewide: fix typos found by recent codespell 2022-11-24 14:53:48 +01:00
ipv6 sys/net/ipv6: add ipv6_prefix_from_str() 2022-12-11 23:34:09 +01:00
lorawan gnrc/lorawan: add support for GNRC LoRaWAN 1.1 2022-09-29 11:25:56 +02:00
nanocoap nanocoap_link_format: add helper function to parse link format 2022-12-11 23:39:47 +01: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 net/sock/udp: add sock_udp_ep_is_multicast() 2023-03-07 16:58:17 +01:00
af.h sys/include/net/af: fix doc comment 2022-04-14 09:23:27 +02:00
arp.h
asymcute.h sys/asymcute: remove deprecated CONFIG_ASYMCUTE_BUFSIZE_EXP 2022-01-07 11:28:11 +01:00
ble.h
coap.h nanocoap_sock: implement DTLS socket 2023-01-13 00:17:32 +01: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, tinydtls: Raise default number of connections 2023-03-02 09:16:22 +01:00
eddystone.h
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
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 fib: document unused state 2023-02-22 16:47:14 +01:00
gcoap.h doc/gcoap: Update ToDo item referencing abandoned document 2023-02-21 20:22:46 +01: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
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
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 nanocoap_sock: make use of sock_dtls_establish_session() 2023-02-08 15:57:28 +01: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
packet.h
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
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 doc: sort all stdio implementations into sys_stdio group 2023-01-13 11:08:22 +01:00
udp.h
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