Versions Compared

Key

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

Enabling the CAN bus interface means, that the CAN controller will go in active mode and will be ready for communication. The CAN Bus that we configured in the previous section will be the source of our example. (For more the previous section click Here)

Example

The CAN bus (we have configured in the chapter above) shall be enabled.

Source code

Description

...

. The following code snippets are taken from can_demo.c found in $:\Micrium\Software\uC-CAN\Examples\<OS> where 'OS' is either NONE (for No-OS), uCOS-II or uCOS-III.

Bus Enable

Code Block
languagecpp
linenumberstrue