20 lines
255 B
C++
20 lines
255 B
C++
|
#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
|
||
|
|