I've started working with AVR chips and right now am getting started with an XMega A1U xPlained Pro. I've been trying to follow this video just to turn on an LED: https://www.youtube.com/watch?v=...
I've tried the same code used in the video. But I keeps getting errors saying that DDRB and DDB5 are undeclared. I think maybe the problem is that I don't have the avr/io.h header file.
If that's the case, can anyone tell me how to install and properly include it in Atmel Studio 7? Otherwise, could someone give me a hand with some code just to flash an LED with this device?
Thanks to everyone who takes the time to read and respond.
Some links to potentially useful documentation:
I've copied the code used in the video:
DDRB |= (1<<DDB5);
PORTB |= (1<<PORTB5);