Support HighResolutionTimer in a better fashion

This commit is contained in:
2023-01-10 20:36:28 +01:00
parent 0d1e9c3df8
commit 101fdd9299
8 changed files with 152 additions and 129 deletions

View File

@@ -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: