ARMmbed / mbed-semtech-lora-rf-drivers

Semtech's LoRa RF drivers for mbed OS
Other
31 stars 25 forks source link

Adding support for low power timeouts #31

Closed hasnainvirk closed 5 years ago

hasnainvirk commented 5 years ago

We had been on a mission to get rid of all the Timeout instances from the radio drivers. However, 'tx_timeout' is a necessary evil which runs every time we transmit so that we can inform the stack about any fatal errors. The side effect of this Timeout is that it was using high-res timeout which would lock the deep sleep and hence prevent the MCU to go to deep sleep.

We have now added support for low power timeout and we check compile time if the platform supports low power timeout to use it in the driver. This means that now the 'tx_timeout' will not lock the deep sleep.