Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rusoku authored Feb 24, 2019
0 parents commit 1d2bc1f
Show file tree
Hide file tree
Showing 3 changed files with 1,036 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
obj-m := toucan.o

kernel_ver := $(shell uname -r)

all:
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) modules

install:
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) modules_install

clean:
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) clean

31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CAN driver for Toucan adapter
====

Building kernel module
----

Make sure you have kernel source and C toolchain packages installed.
To compile run:

make

To install module to system run:

sudo make install


Set up interface
----

insmod toucan.ko
ip link set can0 up type can bitrate 125000


Shut down interface
----

ip link set can0 down
rmmod toucan



Loading

0 comments on commit 1d2bc1f

Please sign in to comment.