From ff9eaa958e037ffde296f977ace1b90930154fc2 Mon Sep 17 00:00:00 2001 From: Emilio Soca Herrera Date: Thu, 22 May 2014 08:32:00 +0000 Subject: [PATCH] --- Project/applications/smartcities/include/timer-loop.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) create mode 100644 Project/applications/smartcities/include/timer-loop.h diff --git a/Project/applications/smartcities/include/timer-loop.h b/Project/applications/smartcities/include/timer-loop.h new file mode 100644 index 0000000..0322566 --- /dev/null +++ b/Project/applications/smartcities/include/timer-loop.h @@ -0,0 +1,14 @@ +#include "libwismart.h" +#include "libwismart_irqs.h" +#include "lwip/inet.h" + +#define HALF_HOUR 60*3 +#define FIVE_MIN 60*1 +#define LONG_PERIOD HALF_HOUR +#define SHORT_PERIOD FIVE_MIN + +unsigned int getSystemTime(); + +unsigned int getElapsedTime(unsigned int t); + +void sleep_thread(unsigned int seconds); \ No newline at end of file -- libgit2 0.22.2