target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_PMC_GetMasterClock
//* \brief Return master clock in Hz (just for AT91RM9200)
//*----------------------------------------------------------------------------
\fn    AT91F_PMC_GetMasterClock
\brief Return master clock in Hz (just for AT91RM9200)
\ fn AT91F_PMC_GetMasterClock \ brief Return master clock in Hz ( just for AT91RM9200 )
static inline unsigned int AT91F_PMC_GetMasterClock (
	AT91PS_PMC pPMC, 
	AT91PS_CKGR pCKGR, 
	unsigned int slowClock)  
{
	return AT91F_PMC_GetProcessorClock(pPMC, pCKGR, slowClock) /
		(((pPMC->PMC_MCKR & AT91C_PMC_MDIV) >> 8)+1);
}
static inline unsigned int AT91F_PMC_GetMasterClock ( AT91PS_PMC pPMC , AT91PS_CKGR pCKGR , unsigned int slowClock ) { return AT91F_PMC_GetProcessorClock ( pPMC , pCKGR , slowClock ) / ( ( ( pPMC -> PMC_MCKR & AT91C_PMC_MDIV ) >> 8 ) + 1 ) ; }
\fn    AT91F_PMC_GetMasterClock
\brief Return master clock in Hz (just for AT91RM9200)
\ fn AT91F_PMC_GetMasterClock \ brief Return master clock in Hz ( just for AT91RM9200 )
// \arg pointer to PMC controller // \arg pointer to CKGR controller // \arg slowClock in Hz