Finish clean-up

This commit is contained in:
2023-09-22 20:53:26 +02:00
parent 32682aa2f0
commit 09aed0ffc4
11 changed files with 240 additions and 265 deletions

View File

@@ -4,7 +4,7 @@
namespace JabyEngine {
namespace Timer_IO {
__new_declare_io_value(CounterMode, uint32_t) {
__declare_io_value(CounterMode, uint32_t) {
static constexpr auto SyncEnable = Bit(0);
static constexpr auto FreeRun = !SyncEnable;
static constexpr auto SyncMode = BitRange::from_to(1, 2);
@@ -21,19 +21,19 @@ namespace JabyEngine {
static constexpr auto IsMaxReached = Bit(12);
};
__new_declare_io_value(CounterTarget, uint32_t) {
__declare_io_value(CounterTarget, uint32_t) {
static constexpr auto CounterTargetValue = BitRange::from_to(0, 15);
};
__new_declare_io_value(CounterValue, uint32_t) {
__declare_io_value(CounterValue, uint32_t) {
static constexpr auto Value = BitRange::from_to(0, 15);
};
#pragma pack(push, 1)
struct Counter {
New::IOPort<CounterValue> value;
New::IOPort<CounterMode> mode;
New::IOPort<CounterTarget> target;
IOPort<CounterValue> value;
IOPort<CounterMode> mode;
IOPort<CounterTarget> target;
private:
uint32_t _unused;
@@ -107,9 +107,9 @@ namespace JabyEngine {
};
#pragma pack(pop)
__new_declare_value_at(, struct Counter0, Counter0, counter_base_adr(0));
__new_declare_value_at(, struct Counter1, Counter1, counter_base_adr(1));
__new_declare_value_at(, struct Counter2, Counter2, counter_base_adr(2));
__declare_value_at(, struct Counter0, Counter0, counter_base_adr(0));
__declare_value_at(, struct Counter1, Counter1, counter_base_adr(1));
__declare_value_at(, struct Counter2, Counter2, counter_base_adr(2));
}
}