modem: iface_uart: use ring_buf_{claim,finish} API
This API allows to drop use of preallocated isr_buf. Most importantly as a result RAM usage is reduced for each driver utilizing modem_context framework. Additionally there is less copying done in ISR context, as data is direcly read from UART FIFO to ring_buf. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
53007a8559
commit
763bd27c75
6 changed files with 22 additions and 24 deletions
|
@ -20,10 +20,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
struct modem_iface_uart_data {
|
||||
/* ISR char buffer */
|
||||
char *isr_buf;
|
||||
size_t isr_buf_len;
|
||||
|
||||
/* ring buffer char buffer */
|
||||
char *rx_rb_buf;
|
||||
size_t rx_rb_buf_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue