Move time update logic from display module to time manager

This commit is contained in:
2023-05-17 17:55:13 +01:00
parent d84bb7ac4b
commit 89eb99b80f
5 changed files with 57 additions and 26 deletions

View File

@@ -27,11 +27,18 @@ typedef enum {
WEEK_DAY_SUNDAY,
} WeekDay;
typedef void (*TimeCallback)(const Time *time);
/**
* Initialize the time module.
*/
void time_manager_init(void);
/**
* Add a callback to be regularly invoked with time updates.
*/
void add_time_callback(TimeCallback callback);
/**
* Get the current time.
*/