summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-09-17 23:30:32 +0200
committerHiFiPhile <[email protected]>2025-09-17 23:44:01 +0200
commit47bb79abe2e89f4bd7c7afa556cabc9e50fbbc3e (patch)
tree3e62b9a9a92fb520082b062d19ef8d63179af2f6
parentbe9409bfa738f00dc70d5e5bb99c0d9d61b69a34 (diff)
Fix board_reset_to_bootloader
Signed-off-by: HiFiPhile <[email protected]>
-rw-r--r--examples/device/cdc_dual_ports/src/main.c4
-rw-r--r--hw/bsp/board.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/device/cdc_dual_ports/src/main.c b/examples/device/cdc_dual_ports/src/main.c
index c50985276..8fe003f21 100644
--- a/examples/device/cdc_dual_ports/src/main.c
+++ b/examples/device/cdc_dual_ports/src/main.c
@@ -139,9 +139,7 @@ void tud_cdc_line_state_cb(uint8_t instance, bool dtr, bool rts) {
cdc_line_coding_t coding;
tud_cdc_get_line_coding(&coding);
if (coding.bit_rate == 1200) {
- if (board_reset_to_bootloader) {
- board_reset_to_bootloader();
- }
+ board_reset_to_bootloader();
}
}
}
diff --git a/hw/bsp/board.c b/hw/bsp/board.c
index 59a774789..e141664da 100644
--- a/hw/bsp/board.c
+++ b/hw/bsp/board.c
@@ -156,6 +156,10 @@ TU_ATTR_WEAK void board_init_after_tusb(void) {
// nothing to do
}
+TU_ATTR_WEAK void board_reset_to_bootloader(void) {
+ // not implemented
+}
+
//--------------------------------------------------------------------+
// Board API
//--------------------------------------------------------------------+