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