Hi TI people,
I now have a working msp430f5438 uart configuration for using USCI UART in Irda mode.
but,i want to integrate this code into TI RTOS and Currently the TI RTOS doesn't have any specific inbuilt API's for configuring the USCI UART into IrDA mode.
here i am using IrDA mode to receive the data from IR receiver (TSOP38438).
i repeat i have the code for normal msp430 and i want to integrate this into TI RTOS which doesn't have inbuilt library for this IrDA mode configuration.
msp430 code:
void irda_init(void)
{
UCA1CTL1 |= UCSWRST;
UCA1CTL0 |= UCMSB;
UCA1CTL1 |= UCSSEL__SMCLK + UCSWRST;
UCA1MCTL |= UCBRF_0 + UCBRS_7 + UCOS16;
UCA1IRTCTL |= UCIRTXPL5 + UCIRTXCLK + UCIREN ;
UCA1IRRCTL |= UCIRRXFL5 ;// + UCIRRXFE;
UCA1CTL1 &= ~UCSWRST;
UCA1IE |= UCRXIE;
}
void hwi_irda(void)
{
System_printf("=> %d\n",UCA1RXBUF);
System_flush();
__delay_cycles(10000);
}
please suggest me on how to integrate this code into TI RTOS.
Thanks in Advance.