Setup Periperhy
This commit is contained in:
@@ -21,6 +21,10 @@ namespace JabyEngine {
|
||||
namespace Timer {
|
||||
void setup();
|
||||
}
|
||||
|
||||
namespace Periphery {
|
||||
void setup();
|
||||
}
|
||||
}
|
||||
|
||||
void __no_return run();
|
||||
|
12
src/Library/src/BootLoader/periphery_boot.cpp
Normal file
12
src/Library/src/BootLoader/periphery_boot.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <PSX/System/IOPorts/periphery_io.hpp>
|
||||
|
||||
namespace JabyEngine {
|
||||
namespace boot {
|
||||
namespace Periphery {
|
||||
void setup() {
|
||||
Periphery_IO::JOY_MODE.write(Periphery_IO::JOY_MODE::create());
|
||||
Periphery_IO::JOY_BAUD.write(Periphery_IO::JOY_BAUD::create());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -24,6 +24,9 @@ namespace JabyEngine {
|
||||
static constexpr auto DebugY = 0;
|
||||
static constexpr auto DebugScale = 1.0;
|
||||
|
||||
__debug_boot_color_at(::JabyEngine::GPU::Color24::White(), DebugX, DebugY, DebugScale);
|
||||
Periphery::setup();
|
||||
|
||||
__debug_boot_color_at(::JabyEngine::GPU::Color24::White(), DebugX, DebugY, DebugScale);
|
||||
enable_DMA();
|
||||
|
||||
|
Reference in New Issue
Block a user