ButterflyMP3

delay.c

Go to the documentation of this file.
00001 
00026 #include <avr/io.h>
00027 #include <avr/interrupt.h>
00028 //#include <avr/signal.h>//This header file is obsolete.  Use <avr/interrupt.h>.
00029 #include <avr/pgmspace.h>
00030 #include "types.h"
00031 #include "delay.h"
00032 #include "uart.h"
00033 
00034 
00040 void Delay(uint16 millisec)
00041 {
00042         // this delay is calibrated for 8MHz clock.
00043     uint16 i;
00044     while (millisec--)
00045         for (i=0; i<1325; i++)
00046                         asm("nop");
00047 }
 All Files Functions Variables Typedefs Enumerations Enumerator Defines