The PyMCU HAL universality scan flags machine.py for importing pymcu.chips, branching on CHIP, hardcoding AVR/RP/PIC pin mapping and reading ADC registers directly. Existing #2 covers the machine.Pin integer-numbering symptom; this tracker is for the broader compatibility-layer universality rule.\n\nThe MicroPython layer should call architecture-agnostic HAL APIs while chip registers, port names and arch selection live in the native HAL/LLD. The new PyMCU stdlib test allowlists the file/line cases against this tracker.
The PyMCU HAL universality scan flags machine.py for importing pymcu.chips, branching on CHIP, hardcoding AVR/RP/PIC pin mapping and reading ADC registers directly. Existing #2 covers the machine.Pin integer-numbering symptom; this tracker is for the broader compatibility-layer universality rule.\n\nThe MicroPython layer should call architecture-agnostic HAL APIs while chip registers, port names and arch selection live in the native HAL/LLD. The new PyMCU stdlib test allowlists the file/line cases against this tracker.