I am using K70 twr module and mqx 4.0. I need a isr for recieving data from isr. Already i have created one isr and i can recieve data. But the problem is when am trying to send data (using write fuction ) through that port execution goes to isr and then hangs there. Actualy i don't want to generate interrupt for transmisson. How it is possible in MQX , please let me know your valuable feedback on this.
This is my code:
void uart3_rx_tx_isr(pointer user_isr_ptr)
/* Get the device registers */
sci_ptr = _bsp_get_serial_base_address(3); //DES get base address for UART5
rcvByte = sci_ptr->S1; //DES read status register. Part of two step process to clear the interrupt flag.
rcvByte = sci_ptr->D;
rs232_dev = fopen(RS232CHANNEL, NULL);
ioctl(rs232_dev, IO_IOCTL_SERIAL_SET_FLAGS, &flags);
if( rs232_dev == NULL )
/* device could not be opened */
printf("\n Bluetooth Init Failed..!");
_nvic_int_init(INT_UART0_RX_TX, 2, TRUE );
_int_install_isr(INT_UART0_RX_TX, uart3_rx_tx_isr, rs232_dev);