Real-time LF sampling mode on armsrc

This commit is contained in:
wh201906 committed 2023-11-14 01:43:20 +08:00
1 parent e1dc17df1a
commit b4cc7c02cd
6 files changed
+166 -5

No files matched your search

+8
View File
@@ -305,3 +305,11 @@ bool data_available(void) {
return usb_poll_validate_length();
#endif
}
bool data_available_fast(void) {
#ifdef WITH_FPC_USART_HOST
return usb_available_length() || (usart_rxdata_available() > 0);
#else
return usb_available_length();
#endif
}