freertos/Demo/Common/include/Timer.hpp

20 lines
255 B
C++
Raw Normal View History

2024-07-13 16:33:13 +00:00
#ifndef TIMER_HPP
#define TIMER_HPP
#include <cstdint>
#include "murax.h"
// Klasa TimeR
class TimeR {
public:
static inline uint32_t readValue() {
return ptr->VALUE;
}
private:
static const Timer_Reg* ptr;
};
#endif // TIMER_HPP