X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Ftimer.h;fp=src%2Ftimer.h;h=0000000000000000000000000000000000000000;hp=065fdcfde102c2cb39afd2c18a2405b998fa9701;hb=32ccc707bc0821d7ff4248fe9f58e92e9c6ebef9;hpb=203b43a75a028e9238307bd6e73768eb8e942071 diff --git a/src/timer.h b/src/timer.h deleted file mode 100644 index 065fdcf..0000000 --- a/src/timer.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef TIMER_H_ -#define TIMER_H_ - -#include "config.h" - -#define TM_BASE (IO_BASE | 0xb000) - -#define TM_REG(x) (*(volatile uint32_t*)(TIMER_BASE | (x))) -#define TM_LOAD TM_REG(0x400) -#define TM_VALUE TM_REG(0x404) -#define TM_CTL TM_REG(0x408) -#define TM_ICLR TM_REG(0x40c) -#define TM_IRAW TM_REG(0x410) -#define TM_IMSK TM_REG(0x414) -#define TM_RELOAD TM_REG(0x418) -#define TM_PREDIV TM_REG(0x41c) -#define TM_COUNT TM_REG(0x420) - -#define TMCTL_23BIT 0x000002 -#define TMCTL_DIV16 0x000004 -#define TMCTL_DIV256 0x000008 -#define TMCTL_DIV1 0x00000c -#define TMCTL_IEN 0x000020 -#define TMCTL_EN 0x000080 -#define TMCTL_DBGHALT 0x000100 -#define TMCTL_CNTEN 0x000200 - -#define TMCTL_PRESCALER(x) (((uint32_t)(x) & 0xff) << 16) - -#endif /* TIMER_H_ */