In a thread in the XMEGA forum I put up a program that I cobbled together from some code I found on the internet.
There is one line in there I do not understand and it is this:
io->OUTTGL = PIN1_bm;
More specifically this part:
I am looking through the App notes and such but I cannot find anything about how the line works.
While I am at it,
PIN1_bm is called BLINK_OUT. I thought I could be slick and write this:
io->OUTTGL = BLINK_OUT;
but the compiler barfed at this.
I know that OUTTGL is a register that can flip the bits(XOR) of the port called out. And if I want to flip BLINK_OUT I could simply do this:
instead, but I am looking to understand all the options available.
Sooooo, while I continue my searching I was hoping someone might point me in the direction of where I can find out what io-> does and maybe a few of my other questions.