static inline uint32_t millis(void) __attribute__((always_inline, unused)); | static inline uint32_t millis(void) __attribute__((always_inline, unused)); | ||||
static inline uint32_t millis(void) | static inline uint32_t millis(void) | ||||
{ | { | ||||
volatile uint32_t ret = systick_millis_count; // single aligned 32 bit is atomic; | |||||
return ret; | |||||
return systick_millis_count; // single aligned 32 bit is atomic; | |||||
} | } | ||||
uint32_t micros(void); | uint32_t micros(void); |