Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 NameSource

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
interruptxcanps_intr_example.cIt configures the CAN controller in loop back mode with interrupts enabled and verifies the data received with data sent
Watermarkxcanps_watermark_intr_example.cIt configures the CAN controller in loop back mode with rx and tx water mark interrupts enabled with some RX and TX threshold.


...