-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.h
58 lines (49 loc) · 1.44 KB
/
config.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
53
54
55
56
57
58
/******************************************************************************
* @author Makers For Life
* @copyright Copyright (c) 2020 Makers For Life
* @file config.h
* @brief Main configuration
*****************************************************************************/
#pragma once
/**
* @name Available modes
*/
///@{
#define MODE_PROD 1 ///< Ventilator mode
#define MODE_MFM_TESTS 4 ///< Mass Flow Meter debugging mode
///@}
/// Defines the current mode
#define MODE MODE_PROD
/**
* Activates debug traces
*
* When DEBUG = 1, additional code is added to send debug traces using serial
* When DEBUG = 2, information are sent in serial for PID debug
*/
#define DEBUG 0
/// Defines if the device has a Mass Flow Meter or not
// Comment out when no sensor
#define MASS_FLOW_METER_ENABLED
/**
* @name Available Mass Flow Meters
*/
///@{
#define MFM_NONE 0
#define MFM_SFM_3300D 1
#define MFM_SDP703_02 2
#define MFM_HONEYWELL_HAF 4
#define MFM_SFM3019 5
///@}
/// Defines the type of each Mass Flow Meter
#define MASS_FLOW_METER_SENSOR MFM_HONEYWELL_HAF
#define MASS_FLOW_METER_SENSOR_EXPI MFM_SFM_3300D
/// Defines the range of the Mass Flow Meter in SLM (standard liter per minute)
#define MFM_RANGE 200
/**
* @name Disables features
*/
/// Disable hardware buttons, used when integrating a motherboard in a touch- \
/// only device.
// #define DISABLE_BUTTONS
// Uncomment when compiling for the simulator
// #define SIMULATOR