[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RT-Linux interrupts.
Hi:
I am trying to write an rt-linux module to manage SCC1 as an
UART in a MPC860T. I want to catch the TX & RX interrupts that come
with this controller using functions such as:
rtl_request_irq(CPMVEC_SCC1, *handler);
rtl_hard_enable_irq(CPMVEC_SCC1)
rtl_hard_disable_irq(CPMVEC_SCC1)
rtl_free_irq(CPMVEC_SCC1)
but I havenīt got yet. I tried two ways: setting on and off the Linux
SCC1 configuration option. So I have the next questions:
1.- Is it necessary for the above functions that the Linux kernel
configuration for the SCC1 to be on? In other words, can
my module init the SCC1 controller and then use the above
functions in case that the SCC1 kernel configuration is off?
2.- Is it possible fot RT-Linux to recognize interrupts of devices
that are not registered in Linux?
3.- Any suggestion regarding the interrupt capture from an
RT-linux module would be greatly appreciated. I have been
taking a look at multiple code examples and I find nothing
wrong with my code.
In the future I want to implement the same for all the others
controllers: SCCx, SMCx, I2C, SPI, FEC.
Thank you
Billa