Setup SPU

This commit is contained in:
2022-09-02 22:29:44 +02:00
parent 16bf7ac465
commit 0a720dc906
2 changed files with 146 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
#include <PSX/System/IOPorts/SPU_IO.hpp>
#include <PSX/System/IOPorts/IOPort.hpp>
#include <PSX/System/IOPorts/DMA_IO.hpp>
namespace SPU {
using namespace Port;
using namespace DMA;
static void clear_key() {
Key::off.write(UI32_MAX);
@@ -79,6 +80,7 @@ namespace SPU {
setup_data_transfer_control();
setup_control_register();
//DPCR missing
// Enable SPU DMA
DPCR.write(DPCR.read() | DMAControlRegister::SPUEnable);
}
}