renormalized line endings
This commit is contained in:
@ -1,40 +1,40 @@
|
||||
#ifndef FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_
|
||||
#define FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_
|
||||
|
||||
#include "../../timemanager/Clock.h"
|
||||
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/task.h>
|
||||
|
||||
|
||||
/**
|
||||
* A Class to basically store the time difference between uptime and UTC
|
||||
* so the "time-agnostic" FreeRTOS can keep an UTC Time
|
||||
*
|
||||
* Implemented as Singleton, so the FSFW Clock Implementation (see Clock.cpp)
|
||||
* can use it without having a member.
|
||||
*/
|
||||
|
||||
class Timekeeper {
|
||||
private:
|
||||
Timekeeper();
|
||||
|
||||
timeval offset;
|
||||
|
||||
static Timekeeper * myinstance;
|
||||
public:
|
||||
static Timekeeper * instance();
|
||||
virtual ~Timekeeper();
|
||||
|
||||
static timeval ticksToTimeval(TickType_t ticks);
|
||||
/**
|
||||
* Get elapsed time in system ticks.
|
||||
* @return
|
||||
*/
|
||||
static TickType_t getTicks();
|
||||
|
||||
const timeval& getOffset() const;
|
||||
void setOffset(const timeval& offset);
|
||||
};
|
||||
|
||||
#endif /* FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_ */
|
||||
#ifndef FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_
|
||||
#define FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_
|
||||
|
||||
#include "../../timemanager/Clock.h"
|
||||
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/task.h>
|
||||
|
||||
|
||||
/**
|
||||
* A Class to basically store the time difference between uptime and UTC
|
||||
* so the "time-agnostic" FreeRTOS can keep an UTC Time
|
||||
*
|
||||
* Implemented as Singleton, so the FSFW Clock Implementation (see Clock.cpp)
|
||||
* can use it without having a member.
|
||||
*/
|
||||
|
||||
class Timekeeper {
|
||||
private:
|
||||
Timekeeper();
|
||||
|
||||
timeval offset;
|
||||
|
||||
static Timekeeper * myinstance;
|
||||
public:
|
||||
static Timekeeper * instance();
|
||||
virtual ~Timekeeper();
|
||||
|
||||
static timeval ticksToTimeval(TickType_t ticks);
|
||||
/**
|
||||
* Get elapsed time in system ticks.
|
||||
* @return
|
||||
*/
|
||||
static TickType_t getTicks();
|
||||
|
||||
const timeval& getOffset() const;
|
||||
void setOffset(const timeval& offset);
|
||||
};
|
||||
|
||||
#endif /* FRAMEWORK_OSAL_FREERTOS_TIMEKEEPER_H_ */
|
||||
|
Reference in New Issue
Block a user