/****************************************************************************
 Title	:	TERMINAL FOR VISUALIZATION AND CONTROL CONDITIONS IN HOUSE
 Author	:	Patrik Szalay <xszala01@stud.feec.vutbr.cz>
 File	:	IO.c
 Software:	CodeWarrior Development Studio Version: 10.6 Build Id:140329
 Target	:	MC9S08LH64

 DESCRIPTION
       Basic IO definitions for the usage of the MC9S08LH64 processor

 USAGE
       See the C include IO.h file for a description of each definition
*****************************************************************************/
#include "IO.h"
#include <hidef.h>
#include "derivative.h"

/* global variables declaration */
unsigned TOD_tick;
TODSTR volatile TOD;

/*************************************************************************
Delay code for waiting
*************************************************************************/
void delay(unsigned int time){
  unsigned int i;
  for(i=0; i < time;i++)
    __RESET_WATCHDOG(); /* feeds the dog */
}//54 cycles

