Is there a more elegant if not shorter way of resetting an XMega device
asm("mov r30, 0");
It seems to work but doesn't reset any outputs, states etc. C code or assembly code either way.... I am sure there would be cases where this wouldn't do exactly what is needed.