Modified ADC measurement of PM10 driver to include adc-zoul direct access
This commit is contained in:
parent
8337843d69
commit
1f6dafecb0
5 changed files with 32 additions and 17 deletions
|
@ -1,12 +1,11 @@
|
|||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_PROJECT = zoul-demo test-tsl2563 test-sht25 test-pwm test-power-mgmt
|
||||
ONTIKI_PROJECT += test-bmp085-bmp180 test-motion test-rotation-sensor
|
||||
CONTIKI_PROJECT += test-bmp085-bmp180 test-motion test-rotation-sensor
|
||||
CONTIKI_PROJECT += test-grove-light-sensor test-grove-loudness-sensor
|
||||
CONTIKI_PROJECT += test-weather-meter test-grove-gyro test-lcd
|
||||
CONTIKI_PROJECT += test-pm10-sensor test-vac-sensor test-aac-sensor
|
||||
|
||||
|
||||
CONTIKI_TARGET_SOURCEFILES += tsl2563.c sht25.c bmpx8x.c motion-sensor.c
|
||||
CONTIKI_TARGET_SOURCEFILES += adc-sensors.c weather-meter.c grove-gyro.c
|
||||
CONTIKI_TARGET_SOURCEFILES += rgb-bl-lcd.c pm10-sensor.c
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#define LOOP_PERIOD 2
|
||||
#define LOOP_INTERVAL (CLOCK_SECOND * LOOP_PERIOD)
|
||||
#define LEDS_PERIODIC LEDS_GREEN
|
||||
#define BUTTON_PRESS_EVENT_INTERVAL (CLOCK_SECOND)
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static struct etimer et;
|
||||
|
||||
|
@ -72,7 +71,7 @@ PROCESS_THREAD(test_aac_sensor_process, ev, data)
|
|||
|
||||
/* Configure the ADC ports */
|
||||
/* Use pin number not mask, for example if using the PA5 pin then use 5 */
|
||||
printf("return configure, %d \n", adc_sensors.configure(ANALOG_AAC_SENSOR, ADC_PIN));
|
||||
adc_sensors.configure(ANALOG_AAC_SENSOR, ADC_PIN);
|
||||
|
||||
printf("AAC test application\n");
|
||||
leds_on(LEDS_PERIODIC);
|
||||
|
|
|
@ -72,7 +72,7 @@ PROCESS_THREAD(test_vac_sensor_process, ev, data)
|
|||
|
||||
/* Configure the ADC ports */
|
||||
/* Use pin number not mask, for example if using the PA5 pin then use 5 */
|
||||
printf("return configure, %d \n", adc_sensors.configure(ANALOG_VAC_SENSOR, ADC_PIN));
|
||||
adc_sensors.configure(ANALOG_VAC_SENSOR, ADC_PIN);
|
||||
|
||||
printf("VAC test application\n");
|
||||
leds_on(LEDS_PERIODIC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue