Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/parport.h>
#include <linux/sched.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_bitbang.h>
#include <linux/spi/flash.h>
#include <linux/mtd/partitions.h>
#include "spi-bitbang-txrx.h"
Go to the source code of this file.
Data Structures | |
struct | butterfly |
Macros | |
#define | butterfly_nreset (1 << 1) /* pin 3 */ |
#define | spi_sck_bit (1 << 0) /* pin 2 */ |
#define | spi_mosi_bit (1 << 7) /* pin 9 */ |
#define | vcc_bits ((1 << 6) | (1 << 5)) /* pins 7, 8 */ |
#define | spi_miso_bit PARPORT_STATUS_BUSY /* pin 11 */ |
#define | spi_cs_bit PARPORT_CONTROL_SELECT /* pin 17 */ |
#define | spidelay(X) do{}while(0) |
Functions | |
device_initcall (butterfly_init) | |
module_exit (butterfly_exit) | |
MODULE_DESCRIPTION ("Parport Adapter driver for AVR Butterfly") | |
MODULE_LICENSE ("GPL") | |
#define butterfly_nreset (1 << 1) /* pin 3 */ |
Definition at line 46 of file spi-butterfly.c.
#define spi_cs_bit PARPORT_CONTROL_SELECT /* pin 17 */ |
Definition at line 57 of file spi-butterfly.c.
#define spi_miso_bit PARPORT_STATUS_BUSY /* pin 11 */ |
Definition at line 54 of file spi-butterfly.c.
#define spi_mosi_bit (1 << 7) /* pin 9 */ |
Definition at line 49 of file spi-butterfly.c.
#define spi_sck_bit (1 << 0) /* pin 2 */ |
Definition at line 48 of file spi-butterfly.c.
#define spidelay | ( | X | ) | do{}while(0) |
Definition at line 150 of file spi-butterfly.c.
#define vcc_bits ((1 << 6) | (1 << 5)) /* pins 7, 8 */ |
Definition at line 51 of file spi-butterfly.c.
device_initcall | ( | butterfly_init | ) |
module_exit | ( | butterfly_exit | ) |
MODULE_LICENSE | ( | "GPL" | ) |