Real-time LF sampling mode on armsrc

This commit is contained in:
wh201906 2023-11-14 01:40:31 +08:00
commit b4cc7c02cd
No known key found for this signature in database
6 changed files with 166 additions and 5 deletions

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
}