My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros
sp804_timer.h File Reference
#include <sw_types.h>

Go to the source code of this file.

Macros

#define SCCTRL   0x000
 
#define SCCTRL_TIMEREN0SEL_TIMCLK   (1 << 15)
 
#define SCCTRL_TIMEREN1SEL_TIMCLK   (1 << 17)
 
#define SCCTRL_TIMEREN2SEL_TIMCLK   (1 << 19)
 
#define SCCTRL_TIMEREN3SEL_TIMCLK   (1 << 21)
 
#define TIMER_LOAD   0x00
 
#define TIMER_VALUE   0x04
 
#define TIMER_CTRL   0x08
 
#define TIMER_CTRL_ONESHOT   (1 << 0)
 
#define TIMER_CTRL_32BIT   (1 << 1)
 
#define TIMER_CTRL_DIV1   (0 << 2)
 
#define TIMER_CTRL_DIV16   (1 << 2)
 
#define TIMER_CTRL_DIV256   (2 << 2)
 
#define TIMER_CTRL_IE   (1 << 5) /* Interrupt Enable (versatile only) */
 
#define TIMER_CTRL_PERIODIC   (1 << 6)
 
#define TIMER_CTRL_ENABLE   (1 << 7)
 
#define TIMER_INTCLR   0x0c
 
#define TIMER_RIS   0x10
 
#define TIMER_MIS   0x14
 
#define TIMER_BGLOAD   0x18
 
#define TIMER_PERIOD_US   1
 

Macro Definition Documentation

#define SCCTRL   0x000
#define SCCTRL_TIMEREN0SEL_TIMCLK   (1 << 15)
#define SCCTRL_TIMEREN1SEL_TIMCLK   (1 << 17)
#define SCCTRL_TIMEREN2SEL_TIMCLK   (1 << 19)
#define SCCTRL_TIMEREN3SEL_TIMCLK   (1 << 21)
#define TIMER_BGLOAD   0x18
#define TIMER_CTRL   0x08
#define TIMER_CTRL_32BIT   (1 << 1)
#define TIMER_CTRL_DIV1   (0 << 2)
#define TIMER_CTRL_DIV16   (1 << 2)
#define TIMER_CTRL_DIV256   (2 << 2)
#define TIMER_CTRL_ENABLE   (1 << 7)
#define TIMER_CTRL_IE   (1 << 5) /* Interrupt Enable (versatile only) */
#define TIMER_CTRL_ONESHOT   (1 << 0)
#define TIMER_CTRL_PERIODIC   (1 << 6)
#define TIMER_INTCLR   0x0c
#define TIMER_LOAD   0x00
#define TIMER_MIS   0x14
#define TIMER_PERIOD_US   1
#define TIMER_RIS   0x10
#define TIMER_VALUE   0x04