From 32b799a03cf07de504a77b19432dc523166f472b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Mar 2019 15:42:41 +0100 Subject: counter: rename overflowed to overflow --- include/arch/esp8266/driver/counter.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/arch/esp8266') diff --git a/include/arch/esp8266/driver/counter.h b/include/arch/esp8266/driver/counter.h index 42f6f14..0b50c8e 100644 --- a/include/arch/esp8266/driver/counter.h +++ b/include/arch/esp8266/driver/counter.h @@ -8,7 +8,7 @@ extern "C" { #include "c_types.h" typedef counter_value_t uint32_t; -typedef counter_overflowed_t uint32_t; +typedef counter_overflow_t uint32_t; class Counter { private: @@ -17,9 +17,9 @@ class Counter { public: uint32_t value; - uint32_t overflowed; + uint32_t overflow; - Counter() : start_cycles(0), value(0), overflowed(0) {} + Counter() : start_cycles(0), value(0), overflow(0) {} inline void start() { asm volatile ("esync; rsr %0,ccount":"=a" (start_cycles)); @@ -31,7 +31,7 @@ class Counter { if (stop_cycles > start_cycles) { value = stop_cycles - start_cycles; } else { - overflowed = 1; + overflow = 1; } } }; -- cgit v1.2.3