* Initialize 'iface' and validate it before use to avoid undefined
behavior.
* Move 'deffilter' to global static scope in can-recv-example to prevent
stack address escape.
* Fix incorrect retry count in failure message in can-send-example.
No functional changes.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit will remove the call to stop the CAN controller,
because freeing the CAN will stop the CAN interface already.
Calling stop twice will producing the following error message:
DIGIAPIX[824]: [ERROR] ldx_can_process_tx_socket: CAN network is down
DIGIAPIX[824]: [ERROR] ldx_can_stop: Unexpected state 0, in can0 interface
DIGIAPIX[824]: [ERROR] can0|ldx_can_thr: select error (-27|100)
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit adds CANFD support to configure the data bitrate and
to enable the CANFD feature.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
https://jira.digi.com/browse/DEL-6588
Added two examples about how to configure and set a CAN
interface to establish a communication receiving and
sending frames.
Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>