Remove dead debug code in PIOProgram (#2992)

This commit is contained in:
Earle F. Philhower, III 2025-06-12 11:15:12 -07:00 committed by GitHub
parent e7a23550ce
commit f07079bb7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,16 +53,6 @@ bool PIOProgram::prepare(PIO *pio, int *sm, int *offset, int start, int cnt) {
CoreMutex m(&_pioMutex); CoreMutex m(&_pioMutex);
PIO pi[PIOCNT] = { PIOS }; PIO pi[PIOCNT] = { PIOS };
#if 0
uint usm;
uint uoff;
auto ret = pio_claim_free_sm_and_add_program_for_gpio_range(_pgm, pio, &usm, &uoff, start, cnt, true);
*sm = usm;
*offset = uoff;
DEBUGV("clain %d\n", ret);
return ret;
#endif
uint gpioBaseNeeded = ((start + cnt) >= 32) ? 16 : 0; uint gpioBaseNeeded = ((start + cnt) >= 32) ? 16 : 0;
DEBUGV("PIOProgram %p: Searching for base=%d, pins %d-%d\n", _pgm, gpioBaseNeeded, start, start + cnt - 1); DEBUGV("PIOProgram %p: Searching for base=%d, pins %d-%d\n", _pgm, gpioBaseNeeded, start, start + cnt - 1);