Save and restore from power off

This commit is contained in:
Manuel Bl
2021-09-29 16:48:59 +02:00
parent 0130928601
commit f433e826a7
9 changed files with 402 additions and 1 deletions

View File

@ -35,6 +35,26 @@ void hal_esp32_set_rssi_cal(int8_t rssi_cal);
TickType_t hal_esp32_get_timer_duration(void);
/**
* Gets the time.
*
* The time is relative to boot time of the
* run when the device joined the TTN network.
*
* @return time (in seconds)
*/
uint32_t hal_esp32_get_time(void);
/**
* Sets the time.
*
* The time is relative to boot time of the
* run when the device joined the TTN network.
*
* @param time_val time (in seconds)
*/
void hal_esp32_set_time(uint32_t time_val);
#ifdef __cplusplus
}