While writing the handler for COM1(irq4) , the response
was not real time. It took time of  the order of 10s of
seconds for the handler to get activated.The following
was the code.

#include <rtl_core.h>
#include <rtl.h>

#define COM1     4

unsigned int handler(unsigned int irq,struct pt_regs *p)
{
 rtl_hard_enable_irq(COM1);
 rtl_printf("RT Linux......\n");
 return 0;
}

int init_module(void)
{
 rtl_hard_enable_irq(COM1);
 rtl_request_irq(COM1,handler);
 rtl_hard_enable_irq(COM1);
 return 0;
}

void cleanup_module(void)
{
 rtl_free_irq(COM1);
}

What  should be done to get a real time response.

If possible please send a sample code.

Thanks in advance,
Vijay Subramani

-- [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/

Reply via email to