Peripheral: GPIO: Use flags not just numbers.
Tools: Device: Check for correct family.
Tools: AVR PDF: Cheap and simple parsing of the XML files.