#include <stdio.h>
#include "contiki.h"
#include "asf.h"
#include "temp-sensor.h"
#include "voltage-sensor.h"
#include "button-sensor.h"
#include "battery-sensor.h"
#include "sam0-sensors.h"
Functions | |
void | sam0_sensors_init (void) |
Initiate the sensors and ADC on the SAM D20/D21/R21 X-plained board. More... | |
Variables | |
SENSORS & | button_sensor |
void sam0_sensors_init | ( | void | ) |
Initiate the sensors and ADC on the SAM D20/D21/R21 X-plained board.
References adc_get_config_defaults(), adc_init(), ADC_REFERENCE_INT1V, ADC_RESOLUTION_12BIT, adc_config::clock_source, GCLK_GENERATOR_2, adc_config::positive_input, adc_config::reference, and adc_config::resolution.
SENSORS& button_sensor |
Referenced by extint_detection_callback().