⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sja1000drv.h

📁 at91rm9200下的sja1000的linux驱动程序
💻 H
字号:
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date:  2005-04-21
** Last Version: 1.0
** Descriptions: User Configurable File
**
**------------------------------------------------------------------------------------------------------
** Created By: Chenmingji
** Created date:   2004-04-21
** Version: 1.0
** Descriptions: First version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#ifndef __LEDDRV_H
#define __LEDDRV_H 
#include <linux/ioctl.h>

#define GPIO_PIN_LOW        0
#define GPIO_PIN_HIGH       1
#define GPIO_PIN_ERR        (~0)
#define GPIO_IOC_MAGIC      0xd0


#define EBI_WD            _IO(GPIO_IOC_MAGIC,    0)       //write EBI
#define EBI_RD            _IO(GPIO_IOC_MAGIC,    1)       //read EBI
#define SEND_CAN_DATA              _IO(GPIO_IOC_MAGIC,    2)       //Send can data
//#define GPIO_SET_PIN            _IO(GPIO_IOC_MAGIC,    0)       /* let pin high */
//#define GPIO_SET_ALL_PIN        _IO(GPIO_IOC_MAGIC,    1)       /* set Px's all pins */
                                                                /* one bit is 1, the pin is high */
                                                                /* one bit is 0, the pin don't change */
//#define GPIO_CLR_PIN            _IO(GPIO_IOC_MAGIC,    2)       /* let pin low   */
//#define GPIO_CLR_ALL_PIN        _IO(GPIO_IOC_MAGIC,    3)       /* clr Px's all pins */
                                                                /* one bit is 1, the pin is low */
                                                                /* one bit is 0, the pin don't change */
//#define GPIO_SET_PIN_OUT        _IO(GPIO_IOC_MAGIC,    4)       /* let pin out  */
//#define GPIO_SET_PIN_IN         _IO(GPIO_IOC_MAGIC,    5)       /* let pin in   */
//#define GPIO_SET_MULTI_PIN_OUT  _IO(GPIO_IOC_MAGIC,    6)       /* set Px's multi pin's out */
                                                                /* one bit is 1, the pin is out */
                                                                /* one bit is 0, the pin don't change */
//#define GPIO_SET_MULTI_PIN_IN   _IO(GPIO_IOC_MAGIC,    7)       /* set Px's multi pin's in */
                                                                /* one bit is 1, the pin is in */
                                                                /* one bit is 0, the pin don't change */
//#define GPIO_READ_PORT          _IOWR(GPIO_IOC_MAGIC,  8, uint32)  /* read port's set */
//#define GPIO_READ_ALL_PORT      _IOWR(GPIO_IOC_MAGIC,  9, uint32)  /* read Px's all port's set */
//#define GPIO_READ_PIN           _IOWR(GPIO_IOC_MAGIC, 10, uint32)  /* read pin's set */
//#define GPIO_READ_ALL_PIN       _IOWR(GPIO_IOC_MAGIC, 11, uint32)  /* read Px's all pin's set */


#define GPIO_MAXNR       12 /* max command */
#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -