From f2ae8e2391236450e60b034ae002a70ebc8e55bb Mon Sep 17 00:00:00 2001 From: rhgndf <16336768+rhgndf@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:05:42 +0800 Subject: [PATCH 1/2] Support ST GAL16V8 --- README.md | 1 + afterburner.ino | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 868de23..36d112e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Supported GAL chips: * Lattice GAL16V8A, GAL16V8B, GAL16V8D * Lattice GAL22V10B, GAL22V10D * National GAL16V8 +* ST Microsystems GAL16V8 * Lattice GAL20V8B (no adapter needed) **This is a new Afterburner design with variable programming voltage control and with single ZIF socket for 20 and 24 pin GAL chips.** diff --git a/afterburner.ino b/afterburner.ino index ac93950..5f94330 100644 --- a/afterburner.ino +++ b/afterburner.ino @@ -1658,6 +1658,8 @@ static char checkGalTypeViaPes(void) for (type = (sizeof(galinfo) / sizeof(galinfo[0])) - 1; type; type--) { if (pes[2] == galinfo[type].id0 || pes[2] == galinfo[type].id1) break; } + } else if (pes[3] == SGSTHOMSON && pes[2] == 0x00) { + type = GAL16V8; } return type; From 5dc3f793f4705aaaa7b5a59e7204ad5cb1a0a0f6 Mon Sep 17 00:00:00 2001 From: rhgndf <16336768+rhgndf@users.noreply.github.com> Date: Sat, 16 Sep 2023 20:39:02 +0800 Subject: [PATCH 2/2] Fix indentation --- afterburner.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afterburner.ino b/afterburner.ino index 5f94330..f075cbe 100644 --- a/afterburner.ino +++ b/afterburner.ino @@ -1659,7 +1659,7 @@ static char checkGalTypeViaPes(void) if (pes[2] == galinfo[type].id0 || pes[2] == galinfo[type].id1) break; } } else if (pes[3] == SGSTHOMSON && pes[2] == 0x00) { - type = GAL16V8; + type = GAL16V8; } return type;