#include "Arduino.h"
#include "pinDefinitions.h"
/* wiring_analog variables definition */
/* Flag to indicate whether the ADC config has been changed from the default one */
bool isAdcConfigChanged = false;
/*
* Configuration used for all the active ADC channels, it is initialized with the mbed default values
* When it is changed, all the ADC channels are reconfigured accordingly
*/
analogin_config_t adcCurrentConfig = {
.resistor_p = NRF_SAADC_RESISTOR_DISABLED,
.resistor_n = NRF_SAADC_RESISTOR_DISABLED,
.gain = NRF_SAADC_GAIN1_4,
.reference = NRF_SAADC_REFERENCE_VDD4,
.acq_time = NRF_SAADC_ACQTIME_10US,
.mode = NRF_SAADC_MODE_SINGLE_ENDED,
.burst = NRF_SAADC_BURST_DISABLED,
.pin_p = NRF_SAADC_INPUT_DISABLED,
This file has been truncated. show original