- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i need explanation and solution of below mentioned program
/* Interrupt callback function for UART_RX */
void spp_rx_data( void *data )
{
WICED_BT_TRACE(" ");
unsigned int i;
char ch;
uint8_t readbyte;
/* Read one byte from the buffer and (unlike GPIO) reset the interrupt */
wiced_hal_puart_read( &readbyte );
rx_buffer[rx_count++] = readbyte;
wiced_hal_puart_reset_puart_interrupt();
if(wiced_hal_puart_rx_fifo_not_empty() == FALSE)
{
WICED_BT_TRACE("fifo false at:%s\n",&rx_buffer[0]);
clear_rx_buffer();
}
}
in above function wiced_hal_puart_rx_fifo_not_empty() is not returning expected value when commanting WICED_BT_TRACE
i am getting result like
WICED_BT_TRACE(" "); //not commanted
Rx data :123456789
fifo false at:1
fifo false at:23456789
here fifo empty at first byte.
//WICED_BT_TRACE(" "); //commanted
Rx data :123456789
fifo false at:123456789
here fifo empty after reading all data
regarding this anyone can help me.