Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CAN-FD support to the CAN stack #137

Merged

Conversation

RICCIARDI-Adrien
Copy link
Contributor

Also reworked the baud rate settings to be more compliant with AUTOSAR.

…OSIX CAN demo accordingly.

Breaking API changes have been done to make the CAN configuration easier in a Trampoline application.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
…-11.

- Adapted the CAN demo driver to the new baud rate settings changes.
- Adapted the CAN demo example to the new baud rate settings change.
- Also added some tests for the CanIf_SetBaudrate() function to the CAN demo
  example.
…e of a CAN-FD frame.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
- Also forced some constants type to be unsigned to fix compilation warnings.
- Removed the now useless protocol version field from a CAN controller
  configuration, as the version can now be retrieved from the baud rate
  configuration in a way that is more compliant with AUTOSAR.
- Used the 'priv' field in the CAN demo driver to store the CAN protocol
  version.
- Removed the now useless protocol version field of the CAN controllers
  configurations from the CAN demo.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
Also updated the CAN demo driver and the CAN demo example accordingly.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
…reating a CAN frame to send.

This avoids having to manually fill a Can_PduType, then fill a PduInfoType
from the Can_PduType.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
… CAN demo to simplify the creation of the CAN frames to send.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
@RICCIARDI-Adrien RICCIARDI-Adrien merged commit c662408 into TrampolineRTOS:master Oct 19, 2023
18 checks passed
@RICCIARDI-Adrien RICCIARDI-Adrien deleted the add_canfd_support branch October 19, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant