Przeglądaj źródła

Fix asm in delayMicroseconds on Teensy LC (Frank B)

fixes #288
main
PaulStoffregen 6 lat temu
rodzic
commit
556b4b4c5d
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      teensy3/core_pins.h

+ 3
- 1
teensy3/core_pins.h Wyświetl plik

#endif #endif
#ifdef KINETISL #ifdef KINETISL
"sub %0, #1" "\n\t" "sub %0, #1" "\n\t"
"bne L_%=_delayMicroseconds" "\n"
: "+l" (n) :
#else #else
"subs %0, #1" "\n\t" "subs %0, #1" "\n\t"
#endif
"bne L_%=_delayMicroseconds" "\n" "bne L_%=_delayMicroseconds" "\n"
: "+r" (n) : : "+r" (n) :
#endif
); );
} }



Ładowanie…
Anuluj
Zapisz