-
Notifications
You must be signed in to change notification settings - Fork 5
/
common.h
33 lines (25 loc) · 862 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Created by ebassetti on 23/07/15.
//
#ifndef GALILEO_TERREMOTI_COMMON_H
#define GALILEO_TERREMOTI_COMMON_H
#define MINVAL(a, b) ((a) < (b) ? (a) : (b))
#ifndef PLATFORM
#define PLATFORM "unknown"
#endif
#ifndef BUILD_VERSION
#define BUILD_VERSION "unknown"
#endif
#include <unistd.h>
#include <stdint.h>
#include <vendor_specific.h>
typedef uint8_t byte;
#define SOFTWARE_VERSION "2.15"
#define NTP_SYNC_INTERVAL 60*60*1000
#define CHECK_NETWORK_INTERVAL 30*1000 // when to check for Internet connection availability
#define CHECK_CONFIG_INTERVAL 15*60*1000 // when to check for Internet connection availability
#define SEISMOMETER_TICK_INTERVAL 50
#define HTTP_RESPONSE_TIMEOUT_VALUE 10*1000
#define NTP_RESPONSE_TIMEOUT_VALUE 5*1000
#define WATCHDOG_TIMER 60*1000
#endif //GALILEO_TERREMOTI_COMMON_H