You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
530 B
28 lines
530 B
|
|
#ifndef _USB_GPIO_H
|
|
#define _USB_GPIO_H
|
|
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/slab.h> /* kmalloc() */
|
|
#include <linux/gpio.h>
|
|
#include <linux/kmod.h>
|
|
#include <linux/msg.h>
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/semaphore.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
#include "usb_gpio_util.h"
|
|
#include "common.h"
|
|
|
|
#define NUM_OF_GPIO 8
|
|
#define BUFFER_SIZE 1024
|
|
|
|
#ifndef CONFIG_GENERIC_GPIO
|
|
#error This module needs generic gpio support (CONFIG_GENERIC_GPIO)
|
|
#endif
|
|
|
|
#endif //_USB_GPIO_H
|
|
|