Git Product home page Git Product logo

mcp251x's Issues

How to use interrupt base readig for the CAN Frame?

I am running a Raspberry Pi 3 Model B Plus Rev 1.3, Raspbian Buster, and Linux version 5.10.52-v7+. My CAN Shield is the RS485&CAN Module .

How I can use interruptions for knowing when a new frame is received by the CAN-bus ? I can see in your code that the function:

static irqreturn_t mcp251x_can_ist(int irq, void *dev_id) do that. but how I can access it?

Configurability at runtime

This is great, but most often you need to configure these masks at runtime. Is there a way to expose this feature via an ioctl?

Problem with Kernel 5.x?

I get the following

make -C /lib/modules/5.10.103-v7+/build M=/usr/local/src/mcp251x modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.103-v7+'
  CC [M]  /usr/local/src/mcp251x/mcp251x.o
/usr/local/src/mcp251x/mcp251x.c:60:10: fatal error: linux/can/platform/mcp251x.h: No such file or directory
   60 | #include <linux/can/platform/mcp251x.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:280: /usr/local/src/mcp251x/mcp251x.o] Error 1
make[1]: *** [Makefile:1825: /usr/local/src/mcp251x] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.103-v7+'
make: *** [Makefile:4: all] Error 2

I have on my system

/usr/src/linux-headers-5.10.103-v7l+/include/config/can/mcp251x.h
/usr/src/linux-headers-5.10.103-v7+/include/config/can/mcp251x.h
/usr/src/linux-headers-5.10.103+/include/config/can/mcp251x.h

What do I have to change?

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.