Prusa MINI Firmware overview
wiring_time.h File Reference

Go to the source code of this file.

Functions

uint32_t millis (void)
 
uint32_t micros (void)
 
void delay (uint32_t dwMs)
 
void delayMicroseconds (uint32_t usec)
 

Function Documentation

◆ millis()

uint32_t millis ( void  )
29  {
30  //return osKernelSysTick();
31  return HAL_GetTick();
32 }

◆ micros()

uint32_t micros ( void  )
34  {
35  return GetCurrentMicro();
36 }
Here is the call graph for this function:

◆ delay()

void delay ( uint32_t  dwMs)
42  {
43  if (!is_interrupt())
44  osDelay(ms);
45  //HAL_Delay(ms);
46 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delayMicroseconds()

void delayMicroseconds ( uint32_t  usec)
48  {
49  if (!is_interrupt()) {
50  uint32_t start = GetCurrentMicro();
51  while ((start + usec) > GetCurrentMicro())
52  ;
53  }
54 }
Here is the call graph for this function:
is_interrupt
static int is_interrupt(void)
Definition: wiring_time.c:38
g29_auto.start
start
Definition: g29_auto.py:150
osDelay
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
GetCurrentMicro
uint32_t GetCurrentMicro(void)
Definition: wiring_time.c:6