mirror of
https://github.com/kalymos/PsNee.git
synced 2026-01-11 23:53:07 +00:00
Enhance code comments for board detection logic
Added comments to clarify the behavior of the code for different board generations.
This commit is contained in:
parent
3df2de1f09
commit
4110bdb70d
@ -349,6 +349,13 @@ int main() {
|
|||||||
//
|
//
|
||||||
// WFCK: __-_-_-_-_-_-_-_-_-_-_-_- // this is a PU-22 or newer board!
|
// WFCK: __-_-_-_-_-_-_-_-_-_-_-_- // this is a PU-22 or newer board!
|
||||||
// typical readouts PU-22: highs: 2449 lows: 2377
|
// typical readouts PU-22: highs: 2449 lows: 2377
|
||||||
|
// The detection performed here allows us to determine the code's behavior.
|
||||||
|
//
|
||||||
|
// In the case of older generations like PU-7 through PU-20, we are connected to the output of an operational amplifier used as a buffer
|
||||||
|
//(this part of the motherboard was detailed in the official schematics; by convention, this point was labeled GATE).
|
||||||
|
//In normal operation, this line is always high, but pulling it down frees the DATA line, allowing the SCEX code to be injected without any further issues.
|
||||||
|
//
|
||||||
|
//If we are dealing with PU-22 or newer models, it is connected to a WFCK clock output. This clock signal will be used to synchronize the SCEX injection.
|
||||||
//************************************************************************
|
//************************************************************************
|
||||||
do {
|
do {
|
||||||
if (PIN_WFCK_READ == 0) lows++; // good for ~5000 reads in 1s
|
if (PIN_WFCK_READ == 0) lows++; // good for ~5000 reads in 1s
|
||||||
@ -470,7 +477,7 @@ int main() {
|
|||||||
inject_SCEX(region[scex]);
|
inject_SCEX(region[scex]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wfck_mode) // Set WFCK pin input
|
if (!wfck_mode)
|
||||||
{
|
{
|
||||||
PIN_WFCK_INPUT;
|
PIN_WFCK_INPUT;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user