mirror of
https://github.com/hathach/tinyusb.git
synced 2026-02-07 16:45:58 +00:00
Fix board_reset_to_bootloader
Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user