Hi,
Is it possible to increase the size of the buffer for the UART IRQ RX function such that it receives more than 8 bytes at each interrupt? Currently I am trying to send a packet with a size greater than 8 bytes and when I print out via Putty terminal, the message gets truncated to only 8 bytes.
The current function of uart_fifo_read() ignores the size input entirely and also reads one byte at a time e.g. uart_fifo_read(client,&buffer,len) where len is greater than 8. I have circumvented the issue of the function only reading one byte at a time via a while loop and called the function and used a delimiter to break the loop so that isn't the biggest issue here.
My entry function is the callback function declared through uart_irq_rx_enable(uart,uart_cb). Here's an excerpt of how I've implemented.
if(uart_irq_rx_ready(x)){
while(j<32){
data_length = uart_fifo_read(x,&input,sizeof(input));
uart_buf[j] = input[0];
if(uart_buf[j] == '/'){
break;
}
j++;
}
}
Much thanks
Tyson