Added VDD pin identification for AVR8 targets

This commit is contained in:
Nav
2021-06-26 03:43:41 +01:00
parent f58da1aed7
commit 656e48ca6d

View File

@@ -263,7 +263,12 @@ void Avr8::loadTargetVariants() {
targetPin.number = tdPin.position; targetPin.number = tdPin.position;
// TODO: REMOVE THIS: // TODO: REMOVE THIS:
if (tdPin.pad.find("vcc") == 0 || tdPin.pad.find("avcc") == 0 || tdPin.pad.find("aref") == 0) { if (tdPin.pad.find("vcc") == 0
|| tdPin.pad.find("avcc") == 0
|| tdPin.pad.find("aref") == 0
|| tdPin.pad.find("avdd") == 0
|| tdPin.pad.find("vdd") == 0
) {
targetPin.type = TargetPinType::VCC; targetPin.type = TargetPinType::VCC;
} else if (tdPin.pad.find("gnd") == 0) { } else if (tdPin.pad.find("gnd") == 0) {