C:/Documents and Settings/Jafar/Desktop/labs_fall2008/labs_fall2008/Lab1/programs/util.c File Reference

will be used in all labs This source file will contain the implementation of all required definitions and basic utilities functions. More...

#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "util.h"

Functions

int timer2Start (char chrUnit)
 This function will start an 8-bit Timer2 primarily to be used for a delay function.
int timer2Stop ()
 This function will stop the 8-bit Timer2 Date: 2/28/2009.
int waitMilliSec (unsigned int uintTimeVal)
 This function will be used as Millisecond delay function.

Variables

volatile unsigned int g_uintTimer2Tick
 Globals used for interrupt driven delay functions.


Detailed Description

will be used in all labs This source file will contain the implementation of all required definitions and basic utilities functions.

Author:
Dr.Zhao Zhang
Date: 2/28/2009

Function Documentation

int timer2Start ( char  chrUnit  ) 

This function will start an 8-bit Timer2 primarily to be used for a delay function.

Parameters:
chrUnit This will decide the speed of the timer and it can only be 0 for slow or 1 for fast. Date: 2/28/2009

int waitMilliSec ( unsigned int  uintTimeVal  ) 

This function will be used as Millisecond delay function.

Parameters:
uintTimeVal Delay time Date: 2/28/2009


Generated on Tue Apr 14 21:09:29 2009 for LCD by  doxygen 1.5.8