*/
#include <htc.h>
-#include "timer.h"
+#include "tmr.h"
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;