commit fe02905a3f0afa906030477b62e2584be59ef696 parent fb798ceb1f5b08c302ac7427780f5b3b4e76c459 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sun, 21 Jul 2024 02:18:52 +0200 log if DSP or DAC is reset Diffstat:
M | source/nord/n2x/n2xLib/n2xmc.cpp | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/source/nord/n2x/n2xLib/n2xmc.cpp b/source/nord/n2x/n2xLib/n2xmc.cpp @@ -11,8 +11,13 @@ namespace n2x // OC2 = PGP4 = SDA // OC3 = PGP5 = SCL + static constexpr uint32_t g_bitResetDSP = 3; static constexpr uint32_t g_bitSDA = 4; static constexpr uint32_t g_bitSCL = 5; + static constexpr uint32_t g_bitResetDAC = 6; + + static constexpr uint32_t g_maskResetDSP = 1 << g_bitResetDSP; + static constexpr uint32_t g_maskResetDAC = 1 << g_bitResetDAC; Microcontroller::Microcontroller(const Rom& _rom) : m_midi(getQSM()) { @@ -43,6 +48,27 @@ namespace n2x LOG("PortGP write SDA=" << sdaV << " SCL=" << sclV); + if(d & g_maskResetDAC) + { + if(v & g_maskResetDAC) + { + } + else + { + LOG("Reset DAC"); + } + } + if((d & g_maskResetDSP)) + { + if(v & g_maskResetDSP) + { + } + else + { + LOG("Reset DSP"); + } + } + if(sdaD && sclD) m_flash.masterWrite(sdaV, sclV); else if(!sdaD && sclD)