-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp_times.h
52 lines (35 loc) · 1.14 KB
/
app_times.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef APP_TIMES_H
#define APP_TIMES_H
#ifdef __cplusplus
extern "C" {
#endif
#include "global.h"
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
enum AppTimeoutsMs
{
TIME_BUTTON_POLL_MS = 100U, /* ms */
TIME_BUTTON_DEFAULTS_ACTIVATE_MS = 5000U, /* ms */
TIME_BUTTON_NORMAL_PRESS = 50U, /* ms */
TIME_BUTTON_LONG_PRESS = 1500U, /* ms */
};
/* -------------------------------------------------------------------------- */
enum SystemDefines
{
ADC_SAMPLE_RATE_MS = 20U, // 50Hz
BACKGROUND_RATE_BUTTON_MS = 20U, // 50Hz
BACKGROUND_ADC_AVG_POLL_MS = 100U, // 10Hz
};
/* -------------------------------------------------------------------------- */
enum CommunicationDefines
{
PC_BAUD = 500000,
IMU_BAUD = 921600,
EXTERNAL_BAUD = 115200,
};
/* -------------------------------------------------------------------------- */
/* ----------------------- End --------------------------------------------- */
#ifdef __cplusplus
}
#endif
#endif /* APP_TIMES_H */