dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_delay.c File Reference
#include "pios.h"
#include "time.h"

Go to the source code of this file.

Functions

static uint32_t get_monotonic_us_time (void)
 
int32_t PIOS_DELAY_Init (void)
 
int32_t PIOS_DELAY_WaituS (uint32_t uS)
 
int32_t PIOS_DELAY_WaitmS (uint32_t mS)
 
uint32_t PIOS_DELAY_GetRaw ()
 Get the raw delay timer, useful for timing. More...
 
uint32_t PIOS_DELAY_DiffuS (uint32_t raw)
 Subtract raw time from now and convert to us. More...
 
uint32_t PIOS_DELAY_DiffuS2 (uint32_t raw, uint32_t later)
 Subrtact two raw times and convert to us. More...
 
uint32_t PIOS_DELAY_GetuS ()
 Query the Delay timer for the current uS. More...
 
uint32_t PIOS_DELAY_GetuSSince (uint32_t t)
 Calculate time in microseconds since a previous time. More...
 
uint32_t PIOS_DELAY_GetuSExpired (uint32_t t)
 Calculates whether a given time has passed. More...
 

Variables

static uint32_t base_time