Hello:
I have followed many advice in the list of mail and profit not to install
an interruption for the parallel port
In / proc/interrupts it does not appear IRQ 7
That it can be happening?
This example was lowered of the list of mail
#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include
<linux/rtf.h>
#include <asm/rt_irq.h>
#include <asm/rt_time.h>
#include
<linux/rt_sched.h>
#include <asm/io.h>
#include <linux/cons.h>
#define
myfifo 0
#define size 8192
#define EPP 0x378 /* Base_addres for Paralel
Port */
#define STS EPP+1
#define CTR EPP+2
#define ADD EPP+3
#define DATA
EPP+4 /* Read Register for Extended Paralel Port */
void intr_handler()
{
int data;
data=inb(EPP);
rtf_put(myfifo, (char *) &data,
sizeof(data));
}
int init_module()
{
outb(0x3F & inb(CTR),CTR);
rtf_create(myfifo,size);
request_RTirq(7,intr_handler);
return
0;
}
void cleanup_module()
{
rtf_destroy(myfifo);
free_RTirq(7);
}
Thanks
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/