Prepare IO Ports for timer

This commit is contained in:
Björn Gaier
2023-01-06 12:14:53 +01:00
parent 9c77967c7f
commit 6608d92934
4 changed files with 198 additions and 81 deletions

View File

@@ -20,5 +20,9 @@ namespace JabyEngine {
namespace BootFile {
JabyEngine::NextRoutine setup();
}
namespace Timer {
void setup();
}
}
#endif //!BOOT_LOADER_HPP

View File

@@ -0,0 +1,14 @@
#include <PSX/System/IOPorts/timer_io.hpp>
namespace JabyEngine {
namespace Timer {
void setup() {
// Just testing around
static constexpr auto wuff = CounterMode::with(CounterMode::IRQAtMax, Counter0::SyncMode::Zero_At_Hblank);
timer[0].counter_mode = wuff;
timer[0].counter_mode = wuff;
timer[0].counter_mode = wuff;
}
}
}