stm32f4xx-hal icon indicating copy to clipboard operation
stm32f4xx-hal copied to clipboard

CountDown lasting over one second?

Open AlyoshaVasilieva opened this issue 4 years ago • 1 comments

I'm writing an embedded-hal driver for interfacing with Espressif ESP-AT firmware over UART. ESP-AT in some circumstances will cease responding to commands, so I need a timeout in my driver to know when something has gone wrong. But ESP-AT deals with wifi and HTTP, so some commands can take over one second to send any response. The timers in this HAL only support 1Hz at the slowest. Is this a HAL or hardware limitation?

AlyoshaVasilieva avatar Nov 20 '20 20:11 AlyoshaVasilieva

HAL limitation. Patch the HAL, or use raw pointers to set the ARR and PSC registers of the timer you're using.

David-OConnor avatar Mar 28 '21 16:03 David-OConnor