X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=adc_random.c;h=e5e76940b762538c0a7ff8704d77c65a9e27fc92;hb=65079ad3f1ecdbcfc6c8d35040a818994f8af94f;hp=d516d7fbc74b6802b1d4fe4a6f55aa3013c2ec27;hpb=e70f12d20de3422f97ac754ffdf7930b72a8266b;p=rgblamp.git diff --git a/adc_random.c b/adc_random.c index d516d7f..e5e7694 100644 --- a/adc_random.c +++ b/adc_random.c @@ -6,7 +6,7 @@ */ #include -#include "timer.h" +#include "tmr.h" unsigned char adc_random() { @@ -28,7 +28,7 @@ unsigned char adc_random() /* Sample the ADC several times, accumulating the LSB of the result */ for (unsigned i = 0; i < 128; i++) { - timer_uwait(10); /* Sampling time */ + tmr_uwait(10); /* Sampling time */ ADGO = 1; /* Start the conversion */ while (ADGO); /* wait for completion */ accumulate += ADRESL;