Pārlūkot izejas kodu

Merge pull request #72 from FrankBoesing/patch-1

millis()
main
Paul Stoffregen pirms 9 gadiem
vecāks
revīzija
91ac7e4aab
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +1
    -2
      teensy3/core_pins.h

+ 1
- 2
teensy3/core_pins.h Parādīt failu

@@ -1070,8 +1070,7 @@ extern volatile uint32_t systick_millis_count;
static inline uint32_t millis(void) __attribute__((always_inline, unused));
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);

Notiek ielāde…
Atcelt
Saglabāt