simulator: add USB serial input field

This commit is contained in:
Joey Castillo
2022-05-09 12:55:58 -04:00
parent 21ee056e26
commit 22b1ac0283
5 changed files with 51 additions and 0 deletions

View File

@@ -76,6 +76,10 @@
*/
bool watch_is_buzzer_or_led_enabled(void);
/** @brief Returns true if USB is enabled.
*/
bool watch_is_usb_enabled(void);
/** @brief Reads up to len bytes from the USB serial.
* @param file ignored, you can pass in 0
* @param ptr pointer to a buffer of at least len bytes