Adjust MaxFreq for Raspberry Pi 1 models

Updated maximum frequency settings for Raspberry Pi models.
This commit is contained in:
mstroh
2026-01-18 11:10:55 +01:00
committed by GitHub
parent 4d74f33200
commit 3025af515e

View File

@@ -77,15 +77,18 @@ int main (void) {
int Pi5 = 0;
double MaxFreq = 100.0;
switch(RaspberryPiModel) {
case PI_MODEL_A:
case PI_MODEL_A:
case PI_MODEL_B:
case PI_MODEL_BP:
case PI_MODEL_AP:
case PI_MODEL_CM:
MaxFreq = 5.0; // 4.8 kHz -> ~26% CPU@800 MHz
printf(" - Pi1/BCM2835 detected, will skip tests with frequency above %g kHz\n", MaxFreq);
break;
case PI_MODEL_ZERO:
case PI_MODEL_ZERO_W:
case PI_MODEL_CM:
MaxFreq = 13.0; // 12.5 kHz -> ~40% CPU@800 MHz
printf(" - Pi1/BCM2835 detected, will skip tests with frequency above %g kHz\n", MaxFreq);
MaxFreq = 13.0; // 12.5 kHz -> ~42% CPU@1000 MHz
printf(" - PiZero/BCM2835 detected, will skip tests with frequency above %g kHz\n", MaxFreq);
break;
case PI_MODEL_2:
MaxFreq = 20.0;