Added NoriQs enhancements for the MZ65xx machines

This commit is contained in:
Philip Smart
2025-09-01 19:30:06 +01:00
parent 930b61aad1
commit 8a90b8fec8
6 changed files with 750 additions and 587 deletions

View File

@@ -51,6 +51,7 @@
// This is necessary due to shared antenna in the ESP32 and also clashes
// in the IDF library stack.
// v1.05 May 2023 - Fine tune the PC-9801/X68000 detection algorithm.
// v1.06 Feb 2024 - MZ-5500/5600/6500 updates by NoriQ.
//
// Notes: See Makefile to enable/disable conditional components
//
@@ -618,11 +619,19 @@ uint32_t getHostType(bool eFuseInvalid, t_EFUSE sharpkeyEfuses)
// gpioIN, tMPXI, tRTSNI, tKDB0, tKDB1, tKDB2, tKDB3, tKDI4, cntCtrl);
// Check for PC-9801 - KD4 = low, MPX = low, RTSN = high
if(tKDI4 == 0 && tMPXI == 0 && tRTSNI == 1 && tKDB0 == 1 && tKDB3 == 1 &&
eFuseInvalid == false && (sharpkeyEfuses.disableRestrictions == true || sharpkeyEfuses.enableMouse == true))
// KDB0 = low, KDB3 = high, KDB2 = high
if(tKDI4 == 0 && tMPXI == 0 && tRTSNI == 1 && tKDB0 == 1 && tKDB3 == 1 && tKDB2 == 1 &&
eFuseInvalid == false && (sharpkeyEfuses.disableRestrictions == true || sharpkeyEfuses.enablePC9801 == true))
{
ifMode = 9801;
}
// Check for MZ-5500/6500 - KD4 = low, MPX = low, RTSN = high
// KDB0 = low, KDB3 = high, KDB2 = low
if(tKDI4 == 0 && tMPXI == 0 && tRTSNI == 1 && tKDB0 == 1 && tKDB3 == 1 && tKDB2 == 0 &&
eFuseInvalid == false && (sharpkeyEfuses.disableRestrictions == true || sharpkeyEfuses.enableMZ5665 == true))
{
ifMode = 5600;
}
// Check for X68000 - KD4 = low, MPX = low, RTSN = high
else if(cntCtrl <= 1 && tMPXI == 0 && tRTSNI == 1 &&
eFuseInvalid == false && (sharpkeyEfuses.disableRestrictions == true || sharpkeyEfuses.enableX68000 == true))