Connect Vendor HID interface between USB driver and CTAP app (#490)
* Connect Vendor HID endpoint to Ctap app * tweaks from review * formatting nit * revert tock submodule revision * fix formatting of deploy.py for yapf error * Changes based on review * Track state for each USB endpoint separately * Rename patch file to ensure correct patching order * Adjust patch from changes #494 and #500 * rustfmt * rustfmt * Deprecate patch 11 in favor of this full working code
This commit is contained in:
@@ -328,8 +328,9 @@ fn send_or_recv_with_timeout_detail(
|
||||
if matches!(status, Ok(SendOrRecvStatus::Timeout)) {
|
||||
#[cfg(feature = "verbose_usb")]
|
||||
writeln!(Console::new(), "Cancelling USB transaction due to timeout").unwrap();
|
||||
let result_code =
|
||||
unsafe { syscalls::raw::command(DRIVER_NUMBER, command_nr::CANCEL, 0, 0) };
|
||||
let result_code = unsafe {
|
||||
syscalls::raw::command(DRIVER_NUMBER, command_nr::CANCEL, endpoint as usize, 0)
|
||||
};
|
||||
match result_code {
|
||||
// - SUCCESS means that we successfully cancelled the transaction.
|
||||
// - EALREADY means that the transaction was already completed.
|
||||
|
||||
Reference in New Issue
Block a user