Hello.
I have a 1k resistor wired directly between PA18 and Ground on some newer PCBs. I am using it as hardware detection of the PCB version in the following way:
#define REVISION_DETECT_PIN AVR32_PIN_PA18 pio_enable_gpio_pin(REVISION_DETECT_PIN); gpio_enable_pin_pull_up(REVISION_DETECT_PIN); if (gpio_pin_is_low(REVISION_DETECT_PIN)) { p4_pcb_rev = PCB_REV2; }
In the older versions there is nothing connected to PA18 yet it still claims to detect something and spits out PCB_REV2.
Does anyone see some obvious mistake here?