57 command = ADCCON3_EDIV1 | ADCCON3_EDIV0;
66 case ADC_SENSOR_TYPE_TEMP:
67 command |= ADCCON3_ECH3 | ADCCON3_ECH2 | ADCCON3_ECH1;
71 case ADC_SENSOR_TYPE_VDD:
72 command |= ADCCON3_ECH3 | ADCCON3_ECH2 | ADCCON3_ECH1 | ADCCON3_ECH0;
93 reading |= (((uint8_t) ADCH) << 8);
107 configure(
int type,
int value)
110 case SENSORS_HW_INIT:
122 SENSORS_SENSOR(adc_sensor, ADC_SENSOR, value, configure, status);
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
Header file for ADC sensors on the SmartRF05EB.
Header file with definitions of bit masks for some cc2530 SFRs