Going on with structure
Added observer/observable for RTC git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@251 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
|
||||
#include "stm32f10x.h"
|
||||
|
||||
#include "Observable.h"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -49,6 +51,7 @@
|
||||
struct Rtc
|
||||
{
|
||||
SemaphoreHandle_t secondSync;
|
||||
struct Observable observable;
|
||||
};
|
||||
|
||||
|
||||
@@ -68,4 +71,18 @@ struct Rtc
|
||||
extern ErrorStatus RTC_construct(struct Rtc* self);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* RTC_getObservable
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
*
|
||||
* @return struct Observable*
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern struct Observable* RTC_getObservable(struct Rtc* self);
|
||||
|
||||
|
||||
#endif /* INC_RTC_H_ */
|
||||
|
||||
Reference in New Issue
Block a user