cp210x-program icon indicating copy to clipboard operation
cp210x-program copied to clipboard

Added QFN20 package check for status LEDs GPIO configs in `ext/badge/cp2102.c`

Open BB-301 opened this issue 8 months ago • 0 comments

As visible from Figure 5.3 and Table 5.3 in the CP210N Datasheet, the QFN20 package uses GPIO.2/TXT and GPIO.3/RXT, as opposed to GPIO.0/TXT and GPIO.1/RXT, respectively, for the other two packages (i.e., QFN28 and QFN24). So here (i.e., in ext/badge/cp2102.c, in the GPIO-related "if" block) we need to check whether we are dealing with QFN20, and, if so, adjust the target bits accordingly.

BB-301 avatar Jun 05 '25 16:06 BB-301