target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_CKGR_GetMainClock
//* \brief Return Main clock in Hz
//*----------------------------------------------------------------------------
\fn    AT91F_CKGR_GetMainClock
\brief Return Main clock in Hz
\ fn AT91F_CKGR_GetMainClock \ brief Return Main clock in Hz
static inline unsigned int AT91F_CKGR_GetMainClock (
	AT91PS_CKGR pCKGR, 
	unsigned int slowClock)  
{
	return ((pCKGR->CKGR_MCFR  & AT91C_CKGR_MAINF) * slowClock) >> 4;
}
static inline unsigned int AT91F_CKGR_GetMainClock ( AT91PS_CKGR pCKGR , unsigned int slowClock ) { return ( ( pCKGR -> CKGR_MCFR & AT91C_CKGR_MAINF ) * slowClock ) >> 4 ; }
\fn    AT91F_CKGR_GetMainClock
\brief Return Main clock in Hz
\ fn AT91F_CKGR_GetMainClock \ brief Return Main clock in Hz
// \arg pointer to CKGR controller // \arg slowClock in Hz