Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ smg_uart_rx_find
Function
smg_uart_rx_find
Sming/Components/arch_driver/src/uart.cpp:90–97 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
88
}
89
90
int smg_uart_rx_find(smg_uart_t* uart, char c)
91
{
92
if(uart == nullptr || uart->rx_buffer == nullptr) {
93
return -1;
94
}
95
96
return uart->rx_buffer->find(c);
97
}
98
99
int smg_uart_peek_last_char(smg_uart_t* uart)
100
{
Callers
1
indexOf
Method · 0.85
Calls
1
find
Method · 0.45
Tested by
no test coverage detected