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

📄 rtai_leds.h

📁 rtai-3.1-test3的源代码(Real-Time Application Interface )
💻 H
字号:
/* * rtai_leds.c - mini-driver for generic control of digital signals * * Copyright (C) 2000  Pierre Cloutier <pcloutier@PoseidonControls.com> *               2001  David A. Schleef <ds@schleef.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#ifndef _RTAI_ASM_I386_LEDS_H#define _RTAI_ASM_I386_LEDS_H#include <asm/io.h>static inline void leds_parport_func(unsigned long port, unsigned leds) {    outb(~leds,port);}#define LEDS_DEFAULT_FUNC leds_parport_func#define LEDS_DEFAULT_PORT 0x378#endif /* !_RTAI_ASM_I386_LEDS_H */

⌨️ 快捷键说明

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