diff options
author | Bert Lange <b.lange@hzdr.de> | 2015-04-15 13:54:39 +0200 |
---|---|---|
committer | Bert Lange <b.lange@hzdr.de> | 2015-04-15 13:54:39 +0200 |
commit | 8c5a743259480ebd0cfdbb17fbde8584e34b2aa4 (patch) | |
tree | 794887f475d6abb4bdde21c94105f7fcdde1bdd4 /mig_test/software/include/timer.h | |
parent | a1c964908b51599bf624bd2d253419c7e629f195 (diff) | |
download | zpu-8c5a743259480ebd0cfdbb17fbde8584e34b2aa4.zip zpu-8c5a743259480ebd0cfdbb17fbde8584e34b2aa4.tar.gz |
clean up
Diffstat (limited to 'mig_test/software/include/timer.h')
-rw-r--r-- | mig_test/software/include/timer.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/mig_test/software/include/timer.h b/mig_test/software/include/timer.h deleted file mode 100644 index fa4875f..0000000 --- a/mig_test/software/include/timer.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWKE/hw_sp605/bsp_zpuahb/software/include/timer.h $ - * $Date$ - * $Author$ - * $Revision$ - */ - - -#include "peripherie.h" - -#ifndef TIMER_H -#define TIMER_H - - -//////////////////////////////////////// -// timer functions - - -// wait for a given time in micro seconds -void usleep(uint32_t usec); - -// wait for given time in milli seconds -void msleep(uint32_t msec); - - -// wait for given time in seconds -void sleep(uint32_t sec); - - -// deliver the milli seconds from timer 0.1 -uint32_t msecs( void); - -// deliver the seconds from timer 0.2 -uint32_t seconds( void); - -// deliver the time (in seconds and fraction) from timer -uint32_t get_time( void); - -// just a loop -void wait( uint32_t value); - - -// initialisation for the timer -void timer_init( void); - -#define TIMER_STOP timer0->e[1].ctrl &= ~TIMER_ENABLE; -#define TIMER_RUN timer0->e[1].ctrl |= TIMER_ENABLE; - -#endif // TIMER_H |