target/linux/at91/image/dfboot/src/include/lib_AT91RM9200.h
//*----------------------------------------------------------------------------
//* \fn    AT91F_AIC_SetExceptionVector
//* \brief Configure vector handler
//*----------------------------------------------------------------------------
\fn    AT91F_AIC_SetExceptionVector
\brief Configure vector handler
\ fn AT91F_AIC_SetExceptionVector \ brief Configure vector handler
static inline unsigned int  AT91F_AIC_SetExceptionVector (
	unsigned int *pVector, 
	void (*Handler) () )   
{
	unsigned int oldVector = *pVector;
	if ((unsigned int) Handler == (unsigned int) AT91C_AIC_BRANCH_OPCODE)
		*pVector = (unsigned int) AT91C_AIC_BRANCH_OPCODE;
	else
		*pVector = (((((unsigned int) Handler) - ((unsigned int) pVector) - 0x8) >> 2) & 0x00FFFFFF) | 0xEA000000;
	return oldVector;
}
static inline unsigned int AT91F_AIC_SetExceptionVector ( unsigned int * pVector , void ( * Handler ) ( ) ) { unsigned int oldVector = * pVector ; if ( ( unsigned int ) Handler == ( unsigned int ) AT91C_AIC_BRANCH_OPCODE ) * pVector = ( unsigned int ) AT91C_AIC_BRANCH_OPCODE ; else * pVector = ( ( ( ( ( unsigned int ) Handler ) - ( ( unsigned int ) pVector ) - 0x8 ) >> 2 ) & 0x00FFFFFF ) | 0xEA000000 ; return oldVector ; }
\fn    AT91F_AIC_SetExceptionVector
\brief Configure vector handler
\ fn AT91F_AIC_SetExceptionVector \ brief Configure vector handler
// \arg pointer to the AIC registers // \arg Interrupt Handler