added HAVE_TIME checks

This commit is contained in:
matthias.ringwald 2011-06-05 09:53:40 +00:00
parent ff4d69d2cb
commit 0bece81e86
2 changed files with 5 additions and 0 deletions

View File

@ -189,9 +189,11 @@ typedef struct {
// errands
hci_authentication_flags_t authentication_flags;
#ifdef HAVE_TIME
// timer
timer_source_t timeout;
struct timeval timestamp;
#endif
// ACL packet recombination
uint8_t acl_recombination_buffer[HCI_ACL_3DH5_SIZE]; // max packet: DH5 = header(4) + payload (339)

View File

@ -39,12 +39,15 @@
#include <btstack/run_loop.h>
#ifdef HAVE_TIME
#include <sys/time.h>
// compare timeval or timers - NULL is assumed to be before the Big Bang
int run_loop_timeval_compare(struct timeval *a, struct timeval *b);
int run_loop_timer_compare(timer_source_t *a, timer_source_t *b);
#endif
//
void run_loop_timer_dump();