#include "test_peripheral_adc.h"
#define ADC_DEVICE_ARTIK530 0
+/*
+Our tests cover device support checking capability of this api.
+ADC_DEVICE_DEFAULT is a mock constant (only used to pass initial
+verification in api calls).
+*/
+#define ADC_DEVICE_DEFAULT 0
#define ADC_DEVICE_INVALID -99
#define ADC_CHANNEL 3
#define ADC_CHANNEL_INVALID -99
if (!strcmp(model, "artik"))
device = ADC_DEVICE_ARTIK530;
+ else if (!strcmp(model, "rpi3") || !strcmp(model, "rpi4"))
+ device = ADC_DEVICE_DEFAULT;
else
return PERIPHERAL_ERROR_NO_DEVICE;