Remove the ComplexBitMap
This commit is contained in:
@@ -5,28 +5,28 @@
|
||||
namespace JabyEngine {
|
||||
namespace Timer_IO {
|
||||
__declare_io_type(CounterMode, uint32_t,
|
||||
static constexpr auto SyncEnable = IOBitSet(0);
|
||||
static constexpr auto SyncEnable = Bit(0);
|
||||
static constexpr auto FreeRun = !SyncEnable;
|
||||
static constexpr auto SyncMode = IOValueSet::from_to(1, 2);
|
||||
static constexpr auto ResetAfterTarget = IOBitSet(3);
|
||||
static constexpr auto IRQAtTarget = IOBitSet(4);
|
||||
static constexpr auto IRQAtMax = IOBitSet(5);
|
||||
static constexpr auto IRQEveryTime = IOBitSet(6);
|
||||
static constexpr auto SyncMode = BitRange::from_to(1, 2);
|
||||
static constexpr auto ResetAfterTarget = Bit(3);
|
||||
static constexpr auto IRQAtTarget = Bit(4);
|
||||
static constexpr auto IRQAtMax = Bit(5);
|
||||
static constexpr auto IRQEveryTime = Bit(6);
|
||||
static constexpr auto IRQOneShot = !IRQEveryTime;
|
||||
static constexpr auto IRQToggle = IOBitSet(7);
|
||||
static constexpr auto IRQToggle = Bit(7);
|
||||
static constexpr auto IRQPulse = !IRQToggle;
|
||||
static constexpr auto ClockSource = IOValueSet::from_to(8, 9);
|
||||
static constexpr auto HasIRQRequest = IOBitSet(10);
|
||||
static constexpr auto IsTargetReached = IOBitSet(11);
|
||||
static constexpr auto IsMaxReached = IOBitSet(12);
|
||||
static constexpr auto ClockSource = BitRange::from_to(8, 9);
|
||||
static constexpr auto HasIRQRequest = Bit(10);
|
||||
static constexpr auto IsTargetReached = Bit(11);
|
||||
static constexpr auto IsMaxReached = Bit(12);
|
||||
);
|
||||
|
||||
__declare_io_type(CounterTarget, uint32_t,
|
||||
static constexpr auto CounterTargetValue = IOValueSet::from_to(0, 15);
|
||||
static constexpr auto CounterTargetValue = BitRange::from_to(0, 15);
|
||||
);
|
||||
|
||||
__declare_io_type(CounterValue, uint32_t,
|
||||
static constexpr auto Value = IOValueSet::from_to(0, 15);
|
||||
static constexpr auto Value = BitRange::from_to(0, 15);
|
||||
);
|
||||
|
||||
struct __no_align Counter {
|
||||
|
Reference in New Issue
Block a user