timer.h

Go to the documentation of this file.
00001 /*
00002  ####        # 
00003  #           #
00004  ## ### #  # #
00005  #  #-# #\ # #
00006  #  # # # \# ####
00007  Author: Felipe de Andrade Neves Lavratti
00008 
00009  Copyright: There are no restrictions. Use as you want.   
00010 */
00011 
00012 /*
00013         LPC 2478
00014         + TFT DISPLAY
00015         + TOUCH PANNEL
00016         + SWIM
00017         + SDRAM
00018 
00019         Get more at: selivre.wordpress.com
00020 */
00021 
00022 #ifndef TIMER_H_
00023 #define TIMER_H_
00024 
00025 #include "../lpc_config.h"
00026 
00027 #define START 0x07
00028 #define MATCH TRUE
00029 #define NOT_MATCH FALSE
00030 #define CHECK_IF_MATCH 0x08
00031 
00032 void T0Init(int ms);
00033 void T0Stop();
00034 void T0Start();
00035 int T0Get();
00036 void delayMs(unsigned int delayInMs);
00037 void delayUs(unsigned int delayInUs);
00038 int timeoutMs(unsigned int delayInMs, unsigned int condition);
00039 
00040 #endif /* TIMER_H_ */