Interrupt in UART for Transmit and receive

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt in UART for Transmit and receive

581 Views
praveenkumarvs
Contributor I

Hello All,

I am working on UART driver for sabrelite IMX6DQ board in QNX neutrino 6.6.I am not using the resource manager available

in the BSP but creating a seperate driver with using the io-char framework.I am trying to do the transmit and receive

with the interrupts but i am not able to get any interrupts for the receive and getting only one interrupt for the

trasmit for the first time alone and then i am not getting any interrupts for the trasmit also.

I am using the interruptattach method for doing the interrupt registration.In the ISR i am not able to do the

interruptUnmask as it crashes the application at the call of the interruptattach function itself.I am also not able to

have NULL return as it also crashes the application at initialisation itself.

I have been able to do the transmit and receive with the polling method where in it was possible with the polling for

the TXEMPTY and the RXEMPTY bits of the test register.But the same is not working for the polling of the Status bits of

the status register for the trasmit and receive.

 

I am attaching my code for reference kindly help me out in finding the bug in the code.

Labels (1)
0 Kudos
0 Replies