firmware/delay.c
author root@rika
Thu, 23 Apr 2009 20:55:41 +0200
changeset 33 7a0c4b0354ba
parent 2 2f55e5dd591d
permissions -rw-r--r--
updated documentation
     1 #include "delay.h"
     2 
     3 void Delay15ms( void )
     4 {
     5 	Delay1KTCYx(75); //Delay of 15ms
     6 	return;
     7 }
     8 
     9 void Delay5ms( void )
    10 {
    11 	Delay1KTCYx(25); //Delay of 5ms
    12 	return;
    13 } 
    14 
    15 void Delay1us( void )
    16 {
    17 	Nop();
    18 	Nop();
    19 	Nop();
    20 	Nop();
    21 	Nop();
    22 	Nop();		//Delay of 1us
    23 	return;
    24 } 
    25 void Delay100us( void )
    26 {
    27 	Delay100TCYx(5);	// Delay of 100us
    28 	return;
    29 }
    30 
    31 void Delay1s( void )
    32 {
    33 	Delay10KTCYx(250);
    34 	Delay10KTCYx(250); //Delay of 1s
    35 	return;
    36 }