MCPcopy Create free account
hub / github.com/SmingHub/Sming / smg_uart_resize_tx_buffer

Function smg_uart_resize_tx_buffer

Sming/Components/arch_driver/src/uart.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72size_t smg_uart_resize_tx_buffer(smg_uart_t* uart, size_t new_size)
73{
74 if(smg_uart_tx_enabled(uart)) {
75 smg_uart_realloc_buffer(uart->tx_buffer, new_size);
76 }
77 return smg_uart_tx_buffer_size(uart);
78}
79
80size_t smg_uart_tx_buffer_size(smg_uart_t* uart)
81{

Callers 1

setTxBufferSizeMethod · 0.85

Calls 3

smg_uart_tx_enabledFunction · 0.85
smg_uart_realloc_bufferFunction · 0.85
smg_uart_tx_buffer_sizeFunction · 0.85

Tested by

no test coverage detected