1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00
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
..
2023-01-13 13:58:07 +01:00
2022-09-14 15:05:25 +02:00
2023-01-19 13:05:15 +01:00
2022-09-23 16:42:52 +02:00
2023-02-25 14:01:20 +01:00
2023-03-08 12:23:24 +00:00
2023-02-23 16:44:24 +01:00
2022-09-05 07:46:56 +02:00
2023-03-07 20:17:01 +00:00
2022-09-14 15:05:25 +02:00
2021-06-02 14:07:17 +02:00
2022-09-16 14:00:35 +02:00
2021-12-15 12:41:36 +01:00
2023-01-13 13:58:07 +01:00
2022-11-15 22:05:42 +01:00
2022-12-19 13:03:45 +01:00
2021-08-13 19:50:38 +02:00
2023-01-13 13:58:07 +01:00
2021-12-07 13:00:58 +01:00
2023-02-27 12:31:03 +01:00
2021-08-13 19:50:38 +02:00
2022-12-05 16:13:21 +01:00
2022-07-26 19:46:14 +02:00
2021-01-17 00:17:58 +01:00
2022-11-22 13:39:35 +01:00
2023-02-27 12:31:03 +01:00
2021-08-13 19:50:38 +02:00
2021-12-06 11:53:59 +01:00
2022-02-12 18:30:58 +01:00
2021-08-13 19:50:38 +02:00
2023-02-25 18:59:07 +00:00
2022-08-03 22:09:21 +02:00