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 support for the STM32Gxx chipset and add CANFD functionality to the driver #126

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Commits on Nov 16, 2022

  1. Change the can_data_t to use the CAN_HandleTypedef

    This change moves the init structure into the can_data_t which will help with simplifying the addition of CANFD. All of the bittiming is now embedded into the HAL structure.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ace1dcf View commit details
    Browse the repository at this point in the history
  2. Add the base code for CANFD

    Add the code to support CANFD to the code which does not touch the existing bxCAN implementation.  CANFD works in normal mode.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    005e0ae View commit details
    Browse the repository at this point in the history
  3. Add the USB defines for the SMTG0

    Added these to fix build issues (missed in another commit)
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    b529ef8 View commit details
    Browse the repository at this point in the history
  4. Change budgetcan channels back to default and fix sleep pin

    Budgetcan was breaking the build due to num channels being redefined.  Since one one channels works for now default to one.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ed2982b View commit details
    Browse the repository at this point in the history
  5. Fix the standby pin set/reset to use the active high/low define

    Was previously ignoring the active flag, budgetcan needed it to be active low.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    052bdec View commit details
    Browse the repository at this point in the history
  6. Change gs_host_frame to a compiler directive

    Allows for flexible use of the frame type.  CANFD frames are larger than non-CANFD and devices without FD should not need to utilize the larger struct.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    6cd5fb4 View commit details
    Browse the repository at this point in the history
  7. Add timestamp back into the CANFD frame

    Unsure why removed, is present in the linux kernel
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    6e5b893 View commit details
    Browse the repository at this point in the history
  8. Add minimal changes to get ip link "canfd on" to execute

    All of the code changes to allow CANFD to initialize via the driver.
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a0b1d0f View commit details
    Browse the repository at this point in the history
  9. Uncrustify

    Doing the required work
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    25bc304 View commit details
    Browse the repository at this point in the history
  10. Changes to fully support CANFD frames on the bus

    Add all the rest of the hooks for CANFD.
    - Needed to move the zeroing of the channel and flags into can.c as CANFD uses the flags (not zero)
    - Still only supports a single channel
    - Tested RX and TX CANFD frames at 2Mbps
    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a809d4c View commit details
    Browse the repository at this point in the history
  11. Uncrustify

    ryedwards committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    9ad9177 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6682ebf View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Removed unneeded rx and tx can buffers

    This was a carryover from some HAL code.  Easier to pass the pointer to the data structure within the frame.
    ryedwards committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    d7bace8 View commit details
    Browse the repository at this point in the history
  2. Apply recommended change to storage of bit timing values

    Implementing recommendation to store the bit timing values as unshifted whole numbers.  This ensures for debugging that the values in the struct are readable.  Return the shifting to the write of the BTR as was previously done.
    ryedwards committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    1efa7eb View commit details
    Browse the repository at this point in the history