Sfoglia il codice sorgente

Fix asm in delayMicroseconds on Teensy LC (Frank B)

fixes #288
main
PaulStoffregen 6 anni fa
parent
commit
556b4b4c5d
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      teensy3/core_pins.h

+ 3
- 1
teensy3/core_pins.h Vedi File

@@ -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…
Annulla
Salva