adafruit / tinyuf2

UF2 bootloader based on TinyUSB for embedded devices such as ESP32S2, STM32F4 and iMX RT10xx
MIT License
314 stars 172 forks source link

Espressif port: allow to override UF2_DETECTION_DELAY_MS in a board-specific code. #254

Closed lyusupov closed 1 year ago

lyusupov commented 1 year ago

Checklist

By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes

This entire checklist section above can be deleted if all items are checked.


Description of Change

It is currently only 500 milliseconds given for a user to release RESET then press user defined UF2 button to enter into bootloader mode. No doubts that It is actually a very tight time interval. This behavior is hardwired into bootloader code. It would be nice if this delay could be overridden by a value specified in BSP code.