sketchbook
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
cli
owslave
timer.h
Go to the documentation of this file.
1
#ifndef TIMER_H
2
#define TIMER_H
3
4
#include "
dev_data.h
"
5
#include "
features.h
"
6
7
#ifdef HAVE_TIMER
8
9
typedef
struct
{
10
int16_t last;
11
} timer_t;
12
13
/* return True every sec tenth seconds */
14
char
timer_done(timer_t *
t
);
15
void
timer_start(int16_t sec, timer_t *
t
);
16
int16_t timer_remaining(timer_t *
t
);
17
18
void
timer_reset(timer_t *
t
);
19
20
int16_t timer_counter(
void
);
21
34
void
timer_init
(
void
);
35
void
timer_poll
(
void
);
36
37
#else // no timer
38
39
#define timer_init() do {} while(0)
40
#define timer_poll() do {} while(0)
41
42
#endif // !HAVE_TIMER
43
44
#endif // timer_h
timer_init
#define timer_init()
Definition:
timer.h:39
dev_data.h
timer_poll
#define timer_poll()
Definition:
timer.h:40
features.h
t
unsigned long t
Definition:
OWGeneric_DangerShield.ino:116
Generated on Mon Jun 24 2019 21:30:27 for sketchbook by
1.8.6