Is there a test and set atomic operation on any XMEGA processor?
This would normally be an instruction in the processor instruction set. This is needed to implement a semaphore or mutext or similar functions.
I have looked at the XMEGA-C manual that lists all the assembly language instructions but I did not see it, although maybe it's done is some other way.
(I happen to be using the XMEGA384C3 but I saw somewhere that all XMEGA processors are software compatible.)