瀏覽代碼

Fix asm in delayMicroseconds on Teensy LC (Frank B)

fixes #288
main
PaulStoffregen 6 年之前
父節點
當前提交
556b4b4c5d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      teensy3/core_pins.h

+ 3
- 1
teensy3/core_pins.h 查看文件

@@ -2065,11 +2065,13 @@ static inline void delayMicroseconds(uint32_t usec)
#endif
#ifdef KINETISL
"sub %0, #1" "\n\t"
"bne L_%=_delayMicroseconds" "\n"
: "+l" (n) :
#else
"subs %0, #1" "\n\t"
#endif
"bne L_%=_delayMicroseconds" "\n"
: "+r" (n) :
#endif
);
}


Loading…
取消
儲存