Seperate time storage into its own module

This commit is contained in:
2023-05-17 18:23:58 +01:00
parent 6ec3cae4b3
commit 7926ccc6fa
4 changed files with 107 additions and 74 deletions

View File

@@ -0,0 +1,20 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) Camden Dixie O'Brien
*/
#ifndef TIME_STORAGE_H
#define TIME_STORAGE_H
/**
* Load the system time from persistent storage and set up a regular
* task to save the system time
*/
void time_storage_init(void);
/**
* Save the system time in persistent storage.
*/
void time_storage_save(void);
#endif