mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
tests: driver_mq3: vtimer -> xtimer
This commit is contained in:
parent
941acb180d
commit
480a90256d
@ -10,7 +10,7 @@ ifneq (,$(filter stm32f4discovery,$(BOARD)))
|
||||
endif
|
||||
|
||||
USEMODULE += mq3
|
||||
USEMODULE += vtimer
|
||||
USEMODULE += xtimer
|
||||
|
||||
ifneq (,$(MQ3_ADC))
|
||||
CFLAGS += -DMQ3_ADC=$(MQ3_ADC)
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "vtimer.h"
|
||||
#include "xtimer.h"
|
||||
#include "mq3.h"
|
||||
#include "periph_conf.h"
|
||||
#include "periph/adc.h"
|
||||
@ -58,7 +58,7 @@ int main(void)
|
||||
|
||||
printf("RAW: %4i, per mille: %1i.%03i\n", raw, alc_a, alc_b);
|
||||
|
||||
vtimer_usleep(500 * 1000);
|
||||
xtimer_usleep(500 * 1000);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user