1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

cpu: lpc2387: adc: use xtimer

This commit is contained in:
Kaspar Schleiser 2015-08-14 13:55:24 +02:00
parent 2cd4a80054
commit b0893a99ba

View File

@ -25,7 +25,7 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
#include "hwtimer.h"
#include "xtimer.h"
#endif
/*---------------------------------------------------------------------------*/
@ -109,12 +109,12 @@ uint16_t adc_read(uint8_t channel)
/* switch channel, start A/D convert */
AD0CR &= 0xFFFFFF00;
#if ENABLE_DEBUG
t1 = hwtimer_now();
t1 = xtimer_now();
#endif
AD0CR |= (1 << 24) | (1 << channel);
#if ENABLE_DEBUG
t2 = hwtimer_now();
t2 = xtimer_now();
#endif
while (1) {