10 |
10 |
11 #define DEFAULT_VREF 1093 ///< Use adc2_vref_to_gpio() to obtain a better estimate |
11 #define DEFAULT_VREF 1093 ///< Use adc2_vref_to_gpio() to obtain a better estimate |
12 #define NO_OF_SAMPLES 128 ///< Multisampling |
12 #define NO_OF_SAMPLES 128 ///< Multisampling |
13 |
13 |
14 |
14 |
15 #define PRESSURE_1 (CONFIG_PRESSURE_1) |
15 #define PRESSURE_1 (CONFIG_PRESSURE_1) ///< ADC channel pressure sensor 1 |
16 #define PRESSURE_2 (CONFIG_PRESSURE_2) |
16 #define PRESSURE_2 (CONFIG_PRESSURE_2) ///< ADC channel pressure sensor 2 |
17 #define PRESSURE_3 (CONFIG_PRESSURE_3) |
17 #define PRESSURE_3 (CONFIG_PRESSURE_3) ///< ADC channel pressure sensor 3 |
18 #define BATT_CHANNEL (CONFIG_BATT_CHANNEL) |
18 #define BATT_CHANNEL (CONFIG_BATT_CHANNEL) ///< ADC channel half battery voltage |
19 |
19 |
20 |
20 |
21 static const char *TAG = "task_adc"; |
21 static const char *TAG = "task_adc"; |
22 |
22 |
23 SemaphoreHandle_t xSemaphoreADC = NULL; ///< Semaphire ADC task |
23 SemaphoreHandle_t xSemaphoreADC = NULL; ///< Semaphire ADC task |