Skip to content

Commit 1df2de8

Browse files
committed
fix(support_rp2040): omit the inline assembler when building for a mismatching target.
1 parent ec285e5 commit 1df2de8

File tree

1 file changed

+1
-0
lines changed
  • src/r3_support_rp2040/src

1 file changed

+1
-0
lines changed

src/r3_support_rp2040/src/usb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ impl usb_device::bus::UsbBus for UsbBus {
240240
);
241241

242242
// 12 cycle delay
243+
#[cfg(target_arch = "arm")]
243244
unsafe {
244245
asm!(
245246
"b 1f

0 commit comments

Comments
 (0)