XilinxProcessorIPLib/drivers/can/examples/xcan_intr_example.c
static void Config(XCan *InstancePtr)
{
	/*
	 * Enter Configuration Mode if the device is not currently in
	 * Configuration Mode.
	 */
	XCan_EnterMode(InstancePtr, XCAN_MODE_CONFIG);
	while(XCan_GetMode(InstancePtr) != XCAN_MODE_CONFIG);

	/*
	 * Setup Baud Rate Prescaler Register (BRPR) and
	 * Bit Timing Register (BTR) such that CAN baud rate equals 40Kbps,
	 * given the CAN clock frequency equal to 24MHz.
	 */
	XCan_SetBaudRatePrescaler(InstancePtr, TEST_BRPR_BAUD_PRESCALAR);
	XCan_SetBitTiming(InstancePtr, TEST_BTR_SYNCJUMPWIDTH,
					TEST_BTR_SECOND_TIMESEGMENT,
					TEST_BTR_FIRST_TIMESEGMENT);
}
/*****************************************************************************/
/**
*
* This function configures CAN device. Baud Rate Prescaler Register (BRPR) and
* Bit Timing Register (BTR) are set in this function.
*
* @param	InstancePtr is a pointer to the driver instance
*
* @return	None.
*
* @note		If the CAN device is not working correctly, this function may
*		enter an infinite loop and will never return to the caller.
*
******************************************************************************/
This function configures CAN device. Baud Rate Prescaler Register (BRPR) and
Bit Timing Register (BTR) are set in this function.
This function configures CAN device . Baud Rate Prescaler Register ( BRPR ) and Bit Timing Register ( BTR ) are set in this function .
static void Config(XCan *InstancePtr)
{
	XCan_EnterMode(InstancePtr, XCAN_MODE_CONFIG);
	while(XCan_GetMode(InstancePtr) != XCAN_MODE_CONFIG);
	XCan_SetBaudRatePrescaler(InstancePtr, TEST_BRPR_BAUD_PRESCALAR);
	XCan_SetBitTiming(InstancePtr, TEST_BTR_SYNCJUMPWIDTH,
					TEST_BTR_SECOND_TIMESEGMENT,
					TEST_BTR_FIRST_TIMESEGMENT);
}
static void Config ( XCan * InstancePtr ) { XCan_EnterMode ( InstancePtr , XCAN_MODE_CONFIG ) ; while ( XCan_GetMode ( InstancePtr ) != XCAN_MODE_CONFIG ) ; XCan_SetBaudRatePrescaler ( InstancePtr , TEST_BRPR_BAUD_PRESCALAR ) ; XCan_SetBitTiming ( InstancePtr , TEST_BTR_SYNCJUMPWIDTH , TEST_BTR_SECOND_TIMESEGMENT , TEST_BTR_FIRST_TIMESEGMENT ) ; }
This function configures CAN device.
This function configures CAN device .
/*
	 * Enter Configuration Mode if the device is not currently in
	 * Configuration Mode.
	 */ /*
	 * Setup Baud Rate Prescaler Register (BRPR) and
	 * Bit Timing Register (BTR) such that CAN baud rate equals 40Kbps,
	 * given the CAN clock frequency equal to 24MHz.
	 */