Use GlobalTime
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user