Support HighResolutionTimer in a better fashion
This commit is contained in:
@@ -29,8 +29,14 @@ namespace JabyEngine {
|
||||
static constexpr auto CounterTargetValue = BitRange<uint32_t>::from_to(0, 15);
|
||||
};
|
||||
|
||||
struct __no_align CounterValue : public ComplexBitMap<uint32_t> {
|
||||
__io_port_inherit_complex_bit_map(CounterValue);
|
||||
|
||||
static constexpr auto Value = BitRange<uint32_t>::from_to(0, 15);
|
||||
};
|
||||
|
||||
struct __no_align Counter {
|
||||
IOPort<uint32_t> value;
|
||||
IOPort<CounterValue> value;
|
||||
IOPort<CounterMode> mode;
|
||||
IOPort<CounterTarget> target;
|
||||
private:
|
||||
|
Reference in New Issue
Block a user