30 #ifndef _PIOS_INLINEDELAY_H
31 #define _PIOS_INLINEDELAY_H
38 RCC_ClocksTypeDef clocks;
40 RCC_GetClocksFreq(&clocks);
41 uint32_t
us_ticks = clocks.SYSCLK_Frequency / 1000000;
65 return (ticks + 512) >> 10;
70 CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
81 value = whence - DWT->CYCCNT;
82 }
while (value < 0xe0000000);
static void PIOS_INLINEDELAY_AssertClockSpeed()
Main PiOS header to include all the compiled in PiOS options.
static uint32_t PIOS_INLINEDELAY_NsToCycles(uint32_t ns)
#define PIOS_DEBUG_Assert(test)
static void PIOS_INLINEDELAY_TillCycleCnt(uint32_t whence)
static uint32_t PIOS_INLINEDELAY_GetCycleCnt()
#define PIOS_Assert(test)