Prepare IO Ports for timer
This commit is contained in:
@@ -20,5 +20,9 @@ namespace JabyEngine {
|
||||
namespace BootFile {
|
||||
JabyEngine::NextRoutine setup();
|
||||
}
|
||||
|
||||
namespace Timer {
|
||||
void setup();
|
||||
}
|
||||
}
|
||||
#endif //!BOOT_LOADER_HPP
|
14
src/Library/src/BootLoader/timer_boot.cpp
Normal file
14
src/Library/src/BootLoader/timer_boot.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user