craigpeacock / mcp251x Goto Github PK
View Code? Open in Web Editor NEWMicrochip mcp251x Linux CAN driver with hardware filtering for the Raspberry PI
Home Page: https://www.beyondlogic.org/adding-can-controller-area-network-to-the-raspberry-pi/
Microchip mcp251x Linux CAN driver with hardware filtering for the Raspberry PI
Home Page: https://www.beyondlogic.org/adding-can-controller-area-network-to-the-raspberry-pi/
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?
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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.