diff options
Diffstat (limited to 'include/gtimer.h')
-rw-r--r-- | include/gtimer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gtimer.h b/include/gtimer.h index 76c52583..cf25ac8a 100644 --- a/include/gtimer.h +++ b/include/gtimer.h @@ -40,7 +40,7 @@ /**
* @brief Data part of a static GTimer initializer.
*/
- #define _GTIMER_DATA() {0}
+ #define _GTIMER_DATA() {0,0,0,0,0,0,0}
/**
* @brief Static GTimer initializer.
*/
@@ -80,7 +80,7 @@ typedef struct GTimer_t { uint16_t flags;
struct GTimer_t *next;
struct GTimer_t *prev;
-} GTimer;
+ } GTimer;
/*===========================================================================*/
/* External declarations. */
@@ -93,6 +93,7 @@ extern "C" { void gtimerInit(GTimer *pt);
void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, bool_t periodic, systime_t millisec);
void gtimerStop(GTimer *pt);
+bool_t gtimerIsActive(GTimer *pt);
void gtimerJab(GTimer *pt);
void gtimerJabI(GTimer *pt);
|