nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
507 stars 140 forks source link

Add USB tests #292

Closed Disasm closed 3 years ago

Disasm commented 3 years ago

How to run these? For the test_class example you need to clone usb-device, cd to it and run cargo test with the connected hardware running the test_class example. Or first observe dmesg, it shows errors right now.

For the serial example you need to clone serial-threadmark and run cargo run --release /dev/serial/by-id/usb-Fake_company_Serial_port_TEST-if00 1000000 a couple of times. None of the runs should fail.

jonas-schievink commented 3 years ago

these were added in https://github.com/nrf-rs/nrf-hal/pull/295, so closing this