Browse Source

cpu: lpc2387: adc: use xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
b0893a99ba
  1. 6
      cpu/lpc2387/lpc2387-adc.c

6
cpu/lpc2387/lpc2387-adc.c

@ -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) {

Loading…
Cancel
Save