소스 검색

RP2040: Fix inaccuracy in delay_100ns()

The delay was really just 40 ns before.
Still enough to satisfy SCSI timing, but since this is used only for
command & other slow transfers, it makes sense to leave some margin.
Petteri Aimonen 3 년 전
부모
커밋
3f4069720d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/ZuluSCSI_platform_RP2040/ZuluSCSI_platform.h

+ 1 - 1
lib/ZuluSCSI_platform_RP2040/ZuluSCSI_platform.h

@@ -45,7 +45,7 @@ static inline void delay_ns(unsigned long ns)
 // Approximate fast delay
 static inline void delay_100ns()
 {
-    asm volatile ("nop \n nop \n nop \n nop \n nop");
+    asm volatile ("nop \n nop \n nop \n nop \n nop \n nop \n nop \n nop \n nop \n nop \n nop");
 }
 
 // Initialize SD card and GPIO configuration