MCPcopy Create free account
hub / github.com/SmingHub/Sming / fixedDelay

Function fixedDelay

Sming/Libraries/SPI/src/SPISoft.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47static_assert(SPISOFT_DELAY_FIXED >= 0 && SPISOFT_DELAY_FIXED <= 20, "SPISOFT_DELAY_FIXED invalid");
48
49template <int n = SPISOFT_DELAY_FIXED + SPISOFT_ARCH_DELAY_FIXED> __forceinline void fixedDelay()
50{
51 __asm__ volatile("nop" :::);
52 fixedDelay<n - 1>();
53}
54
55template <> void fixedDelay<0>()
56{

Callers 1

fastDelayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected