messy commit: start implementing ftdi-vcp-rs

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2020-03-30 17:56:40 +08:00
parent 52fa59d4ac
commit 22528a892f
197 changed files with 201 additions and 163 deletions

View File

@ -6,7 +6,9 @@
#define FT_LIST_MASK (FT_LIST_NUMBER_ONLY|FT_LIST_BY_INDEX|FT_LIST_ALL)
*/
use ftdi_vcp_rs::VCP;
fn main() {
let mut vcp = VCP::new_from_name("iCEBreaker V1.0e A").expect("couldn't open vcp");
println!("VCP COM{}:", vcp.com_port().expect("couldn't get com port"));
}