forked from juliagoda/CH341SER
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CH341SER driver with additional line
- Loading branch information
juliagoda
committed
Jun 5, 2017
1 parent
c6dd579
commit f482c3d
Showing
4 changed files
with
1,425 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ifeq ($(KERNELRELEASE), ) | ||
|
||
KERNELDIR := /lib/modules/$(shell uname -r)/build | ||
|
||
PWD :=$(shell pwd) | ||
default: | ||
$(MAKE) -C $(KERNELDIR) M=$(PWD) | ||
clean: | ||
rm -rf .tmp_versions Module.symvers *.mod.c *.o *.ko .*.cmd Module.markers modules.order | ||
load: | ||
modprobe usbserial | ||
insmod ch34x.ko | ||
unload: | ||
rmmod ch34x | ||
else | ||
obj-m := ch34x.o | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,48 @@ | ||
# CH341SER | ||
CH341SER module with fixed bug | ||
# CH341SER driver | ||
|
||
1. [About driver](#about-driver) | ||
2. [Changes](#changes) | ||
3. [Tests](#tests) | ||
4. [Installation](#installation) | ||
5. [Official website](#official-website) | ||
|
||
<br/> | ||
<br/> | ||
|
||
## About driver | ||
|
||
It's a manufacturer software of standard serial to usb chip marked CH340 | ||
|
||
<br/> | ||
<br/> | ||
|
||
## Changes | ||
|
||
Added line | ||
`#include <linux/sched/signal.h>` | ||
which helps fix the problem below: | ||
`error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]` | ||
|
||
<br/> | ||
<br/> | ||
## Tests | ||
|
||
Tested on: | ||
* Arch Linux 4.11.3-1-hardened | ||
* Arch Linux 4.11.3-1-ARCH | ||
|
||
<br/> | ||
<br/> | ||
|
||
## Installation | ||
|
||
See original readme.txt | ||
|
||
<br/> | ||
<br/> | ||
|
||
## Official website | ||
|
||
[http://www.wch.cn/download/CH341SER_LINUX_ZIP.html](http://www.wch.cn/download/CH341SER_LINUX_ZIP.html) | ||
|
||
|
Oops, something went wrong.