-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose the USB-serial-jtag peripheral (#503)
* add BlockingIoDriver to make stdin/out/err calls blocking * gate sys imports * use at least enumset 1.1.4 to make EnumSet::empty() a const fn * add missing trait impl * fix wrong macro usage * fix macro * Remove all VFS code in prep to move it to esp_idf_svc::io::vfs --------- Co-authored-by: Frederick Vollbrecht <[email protected]>
- Loading branch information
1 parent
21b2ce6
commit 0c912c8
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#![allow(non_camel_case_types)] | ||
//! USB Serial / JTAG peripheral | ||
//! | ||
//! Communication through a virtualized UART-like USB-CDC interface. | ||
//! | ||
//! By default, `println!` and `log!` output will be redirected to it if no UART | ||
//! connection is established to a HOST PC. The peripheral is initialized at startup | ||
//! and is using the ESP console slot 2 by default. | ||
//! | ||
//! ESP console slot 2 cannot be used to read from the HOST, only writing is supported. | ||
//! If reading from the HOST is necessary, reconfigure the ESP console by setting | ||
//! the following into your projects sdkconfig.default file: | ||
//! ``` | ||
//! CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y | ||
//! ``` | ||
// TODO: impl usb_serial driver | ||
|
||
crate::impl_peripheral!(USB_SERIAL); |