Git Product home page Git Product logo

samc21_can's People

Contributors

prices avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

samc21_can's Issues

Can Bootloader

I am looking into a CANbus bootloader and see that one was started a few commits back. What became of this, what issues came up?

Change the constructor to take in the PIN_PXXX macros in the PIN #

Well to keep the api oblivious to ports you could get the pins group from the wiring:
./wiring_digital.c: uint8_t pinPort = GetPort(ulPin);

Or keep the API the same, but either way you would have to convert the pin's absolute number to its group specific number, like digitalWrite does:
void digitalWrite( uint32_t ulPin, uint32_t ulVal )
{
uint8_t pinPort = GetPort(ulPin);
uint8_t pinNum = GetPin(ulPin);

Thanks again for your efforts.

Originally posted by @naprave in #1 (comment)

Dual CAN

Hi, the SAMC21 has 2 CAN ports - will this work with both at the same time?

Typo in example code?

Shouldn't the call reference buf, and not buffer?

uint32_t id;
uint8_t len;
uint8_t buf[8];   <<===
uint8_t i;

ret = can.readMsgBuf(id, len, buffer);  <<===

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.