19 #ifndef CODEBASE_PERIPHERAL_MODULES_TIME_TRACKER_H_ 20 #define CODEBASE_PERIPHERAL_MODULES_TIME_TRACKER_H_ 34 #include "nvm_logger.h" 37 #error "Time Tracker module requires MS Timer module" 40 #ifndef TIME_TRACKER_NVM_NO_PAGES_USED 41 #define TIME_TRACKER_NVM_NO_PAGES_USED 2 43 #ifndef TIME_TRACKER_NVM_PAGE_USED_0 44 #define TIME_TRACKER_NVM_PAGE_USED_0 NVM_LOG_PAGE0 47 #ifndef TIME_TRACKER_NVM_PAGE_USED_1 48 #define TIME_TRACKER_NVM_PAGE_USED_1 NVM_LOG_PAGE1 51 #define TIME_TRACKER_TIME_NOT_SET 0xFFFFFFFF 53 #define TIME_TRACKER_DAY_LEN_S (24 * 3600 ) 60 }time_tracker_ddmmyy_t;
uint32_t time_tracker_init(uint32_t time_log)
Function to initiate the time tracker module.
time_tracker_ddmmyy_t * time_tracker_get_current_date()
Function to get current date.
void time_tracker_set_date_time(time_tracker_ddmmyy_t *p_date_ddmmyy, uint32_t time_s)
Function to set current time.
uint32_t time_tracker_get_current_time_s()
Function to get current time in ms.
void time_tracker_update_time(uint32_t ticks)
Function to update time.