...
Example Applications
Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications. These example applications can be imported into the Vitis IDE from the Board Support Package settings tab.Links to Examples
Examples Path:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/canps/examples
Test Name | Source | Description |
---|---|---|
Polled | xcanps_polled_example.c | It configures the CAN controller in loop back mode with no interrupt enabled and verifies the data received with data sent |
interrupt | xcanps_intr_example.c | It configures the CAN controller in loop back mode with interrupts enabled and verifies the data received with data sent |
Watermark | xcanps_watermark_intr_example.c | It configures the CAN controller in loop back mode with rx and tx water mark interrupts enabled with some RX and TX threshold. |
...