Use GlobalTime

This commit is contained in:
2023-01-08 16:20:30 +01:00
parent d403aedf16
commit 7b1cefac0a
8 changed files with 55 additions and 12 deletions

View File

@@ -32,10 +32,11 @@ namespace JabyEngine {
};
struct __no_align Timer {
IOPort<uint32_t> value;
IOPort<CounterMode> mode;
IOPort<CounterTarget> target;
private:
uint32_t _unused[2];
uint32_t _unused[1];
};
namespace Counter0 {
@@ -86,7 +87,7 @@ namespace JabyEngine {
};
}
__declare_io_port_global_array(Timer, Counter, 0x1F801104, 3);
__declare_io_port_global_array(Timer, Counter, 0x1F801100, 3);
static_assert(sizeof(Timer) == 0x10);
}
}