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

changed mcp2515 driver to use nonblocking spi #817

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from

Commits on Feb 1, 2022

  1. changed mcp2515 driver to use rx and tx buffers as well as uphold the…

    … standard modm::can api
    kikass13 committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    148e788 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    10b0e46 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    33db784 View commit details
    Browse the repository at this point in the history
  4. added nonblocking stuff for can send api part; the read is still bloc…

    …king, which should be fine because it is controlled via interrupt
    kikass13 committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    21e4036 View commit details
    Browse the repository at this point in the history
  5. changed read/receive part so that it is polled in the update function…

    … as well; fixed some things in example
    kikass13 committed Feb 1, 2022
    Configuration menu
    Copy the full SHA
    03639b4 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2022

  1. the should now be non static (the rx/tx queues as well); a modm::SpiD…

    …evice is now used internally for aquiring / releasing the bus whenever accessed
    kikass13 committed Feb 3, 2022
    Configuration menu
    Copy the full SHA
    bf7b0fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9584f22 View commit details
    Browse the repository at this point in the history
  3. added configurationHanlder for spi device, which should also change t…

    …he spi clock frequency when master is acquired
    kikass13 committed Feb 3, 2022
    Configuration menu
    Copy the full SHA
    8e6a52f View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. Configuration menu
    Copy the full SHA
    bda5887 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c9065d View commit details
    Browse the repository at this point in the history
  3. re-enable @chris-durand hack for changing bus clock speed in configur…

    …ationHandler in example; changes canbdaudrate to 500kbps
    kikass13 committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    5357bc2 View commit details
    Browse the repository at this point in the history
  4. whitespaces

    kikass13 committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    c177db3 View commit details
    Browse the repository at this point in the history
  5. removed @chris-durand hack again and put the configuration handler in…

    …to the mcp2515 driver, because it should not be in user code
    kikass13 committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    d737638 View commit details
    Browse the repository at this point in the history
  6. small fixes for ci

    kikass13 committed Feb 4, 2022
    Configuration menu
    Copy the full SHA
    f94d31a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6f773fc View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2022

  1. tried to keep the external api static, this means nonblocking initial…

    …ize and no SpiDevice bus mutex because SpiDevice only allows to be inherited from (protected api) ... this is a little better, because now you can call the driver from wherever (static) but it internally allows/needs instantiation and update polls for controllign the context the driver runs in
    kikass13 committed Feb 6, 2022
    Configuration menu
    Copy the full SHA
    33a621f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed406ca View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2022

  1. fixed bug in receiveMessage part, where status register was not read …

    …properly which lead to infinite interrupts; added some more buffers for the different more or less concurrent read/write variables; added stuff to example;
    kikass13 committed Feb 7, 2022
    Configuration menu
    Copy the full SHA
    ec7cf30 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a34f35d View commit details
    Browse the repository at this point in the history
  3. merge other modm stuff

    kikass13 committed Feb 7, 2022
    Configuration menu
    Copy the full SHA
    6c79bc2 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. Configuration menu
    Copy the full SHA
    6e6e359 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Configuration menu
    Copy the full SHA
    49091cf View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. small send rearrange, The send function will now skip sending a packe…

    …t (aka NOT attempting to send it) if the mcp is not readyToSend() instead of waiting for it to be ready, which defeats the point of buffering packets indefiniteley
    kikass13 committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    dadd55f View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. fixed some things related to comments from @rleh; cleanup of exmaple …

    …code; minor style changes to mcp2515 driver impl
    kikass13 committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    5ac11f4 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2022

  1. @rleh: added rx & tx queue options to lbuild + mcp2515 driver; remove…

    …d unused project xml things; cleaned up unused headers; changed mcp2515 driver class attributes to not have _ underscore postfix
    kikass13 committed Feb 26, 2022
    Configuration menu
    Copy the full SHA
    2b5b355 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2022

  1. Configuration menu
    Copy the full SHA
    5aa143e View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2022

  1. Configuration menu
    Copy the full SHA
    4d7df65 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2022

  1. Update src/modm/driver/can/mcp2515_options.hpp.in

    Co-authored-by: Raphael Lehmann <[email protected]>
    kikass13 and rleh authored Mar 16, 2022
    Configuration menu
    Copy the full SHA
    2e4ad3b View commit details
    Browse the repository at this point in the history
  2. Update src/modm/driver/can/mcp2515_impl.hpp

    Co-authored-by: Raphael Lehmann <[email protected]>
    kikass13 and rleh authored Mar 16, 2022
    Configuration menu
    Copy the full SHA
    5906e17 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ff3eef View commit details
    Browse the repository at this point in the history