Add wallclock time handling
New application and new example. We use the built-in timer routines and add an offset to get the wallclock time. The offset can be set by time-changing routines (currently only settimeofday). We also maintain an offset for timezone handling but this isn't currently fully implemented.
This commit is contained in:
parent
b886a1faaf
commit
b4fb8c3f52
11 changed files with 1046 additions and 0 deletions
27
apps/time/time_resource.h
Normal file
27
apps/time/time_resource.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* \addgroup Time related functions
|
||||
*
|
||||
* Resource definitions for time module
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Resource definitions for the time module
|
||||
*
|
||||
* \author
|
||||
* Ralf Schlatterbeck <rsc@tux.runtux.com>
|
||||
*/
|
||||
|
||||
#ifndef time_resource_h
|
||||
#define time_resource_h
|
||||
#include "contiki.h"
|
||||
#include "erbium.h"
|
||||
|
||||
extern resource_t resource_timestamp;
|
||||
extern resource_t resource_localtime;
|
||||
extern resource_t resource_gmtime;
|
||||
|
||||
#endif // time_resource_h
|
||||
/** @} */
|
Loading…
Add table
Add a link
Reference in a new issue