CANpie configuration options
Detailed DescriptionThe CANpie driver can be configured during compile time via several configuration options. They are typically defined in the
If symbols are not defined, they get a default value which is assigned in the
This symbol enables or disables the autobaud feature of the CAN driver (CpCoreAutobaud()).
This symbol defines the number of message buffers (mailboxes) of a CAN controller. In case the controller has no message buffers, it is also possible to emulate these. A value of 0 denotes that there are no message buffers available. This also means all buffer functions (e.g. CpCoreBufferInit(), etc.) return the error code CpErr_NOT_SUPPORTED.
This symbol defines if access to the CAN message structure CpCanMsg_s is done via macros or via functions.
This symbol defines if the CAN message structure CpCanMsg_s has a timestamp field.
This symbol defines if the CAN message structure CpCanMsg_s has a user-defined field.
This symbol defines the total number of physical CAN interfaces supported by the driver. For a LPC2294 microcontroller the value would be 4 (4 CAN channels).
This symbol is used to control the usage of the
This symbol defines if the driver support statistic information. A value of 0 denotes that no statistic information is available. This also means that the function CpCoreStatistic() returns the error code CpErr_NOT_SUPPORTED.
This symbol defines target controller for the CANpie driver. The value can be set in a Makefile or in the cp_cc.h file.