Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Timers, periodic or not, can now be restarted thanks to esp_timer_restart function. This is done atomically, which can be used to feed a periodic timer, or simply change the period.
This refactoring brings a private API for the TWDT implementation, which can now use a hardware timer (Timer Group) or a software timer (esp_timer)