19 #ifndef _system_clock_
20 #define _system_clock_
33 void systemClockInit();
36 void systemClockISR();
42 extern volatile uint32_t
_millis;
43 extern int microsDivider;
51 volatile uint32_t ret =
_millis;
67 volatile uint32_t ret = _millis * 1000 + 1000 - SysTick->VAL/microsDivider;
78 void delay(uint32_t nTime);
97 void delayNB(uint32_t nTime, ISRType iterate);
105 #endif // __cplusplus
void delayNB(uint32_t nTime, ISRType iterate)
Non-blocking delay.
Definition: system_clock.c:70
void delayMicroseconds(uint32_t nTime)
Blocks execution for a specified number of microseconds.
Definition: system_clock.c:56
static uint32_t millis() __attribute__((always_inline
Definition: system_clock.h:50
static uint32_t micros() __attribute__((always_inline
Definition: system_clock.h:62
void delay(uint32_t nTime)
Blocks execution for a specified number of milliseconds.
Definition: system_clock.c:64
volatile uint32_t _millis
Definition: system_clock.c:29