I'm trying to get my butterfly to communicate with my pc. I have smileys book and thats one of the projects in there. First i tried typing everything up on my own. It did not build, so I copied the code from the cd but it still wont work. It seems that a ton of variables are undeclared. Some time ago the same code from the cd worked with older version of avr studio and win avr.
'UCSR0A' undeclared (first use in this function)
(Each undeclared identifier is reported only once
for each function it appears in.)
warning: control reaches end of non-void function
In function 'receiveChar':
'UDR0' undeclared (first use in this function)
warning: control reaches end of non-void function
In function 'sendChar':
'UDR0' undeclared (first use in this function)
'UCSR0A' undeclared (first use in this function)
In function 'USARTinit':
'UBRR0H' undeclared (first use in this function)
'UBRR0L' undeclared (first use in this function)
'UCSR0A' undeclared (first use in this function)
'U2X0' undeclared (first use in this function)
'UCSR0B' undeclared (first use in this function)
'RXEN0' undeclared (first use in this function)
'TXEN0' undeclared (first use in this function)
'RXCIE0' undeclared (first use in this function)
'UDRIE0' undeclared (first use in this function)
and so on is what i get. Do i need to include something except
Thanks in advance