Move time update logic from display module to time manager
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user