Skip to content

Linux kernel module for Bus Pirate / BusPirate as a SPI bus adapter

Notifications You must be signed in to change notification settings

niicoooo/spi-buspirate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis

spi-buspirate

Linux kernel module for Bus Pirate / BusPirate as a SPI bus adapter

Installation

Install the linux headers for your running kernel version, clone the repository and run:

$ make
$ sudo echo -n 'module bp +p' > /sys/kernel/debug/dynamic_debug/control    # enable debug mode
$ sudo insmod bp.ko
$ sudo ldattach GIGASET /dev/ttyUSB0                                       # use GIGASET ldisc!

Usage

$ ls /sys/kernel/bp                                                        # list all Bus Pirate as SPI bus adapter available
$ cat /sys/kernel/bp/0001/status                                           # show driver status
$ echo -n 30000 > /sys/kernel/bp/0001/speed                                # set SPI speed
$ cat /sys/kernel/bp/0001/aux                                              # show AUX gpio pin number

Debug

//#define ENABLEDEBUGIO 1

Uncomment this define to activate detailed debugging

About

Linux kernel module for Bus Pirate / BusPirate as a SPI bus adapter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published