Commit 7f02e87f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

esp8266: add missing features to driver/counter

parent 9b07d50d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,8 +7,8 @@ extern "C" {
}
#include "c_types.h"

typedef counter_value_t uint32_t;
typedef counter_overflow_t uint32_t;
typedef uint32_t counter_value_t;
typedef uint32_t counter_overflow_t;

class Counter {
	private:
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ class Uptime {
	public:
		Uptime () {}
		inline uint32_t get_us() { return system_get_time(); }
		inline uint32_t get_s() { return system_get_time() / 1000000; }

		inline uint32_t get_cycles()
		{