target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_ST_SetPeriodInterval
//* \brief Set Periodic Interval Interrupt (period in ms)
//*----------------------------------------------------------------------------
\fn    AT91F_ST_SetPeriodInterval
\brief Set Periodic Interval Interrupt (period in ms)
\ fn AT91F_ST_SetPeriodInterval \ brief Set Periodic Interval Interrupt ( period in ms )
static inline void AT91F_ST_SetPeriodInterval(
	AT91PS_ST pSt,
	unsigned int period)
{
	volatile int status;
	pSt->ST_IDR = AT91C_ST_PITS;			
	status = pSt->ST_SR;
    pSt->ST_PIMR = period << 5;   			
}
static inline void AT91F_ST_SetPeriodInterval ( AT91PS_ST pSt , unsigned int period ) { volatile int status ; pSt -> ST_IDR = AT91C_ST_PITS ; status = pSt -> ST_SR ; pSt -> ST_PIMR = period << 5 ; }
\fn    AT91F_ST_SetPeriodInterval
\brief Set Periodic Interval Interrupt (period in ms)
\ fn AT91F_ST_SetPeriodInterval \ brief Set Periodic Interval Interrupt ( period in ms )
/* Interrupt disable Register */ /* Period Interval Mode Register == timer interval = 1ms*/