|
Title: YAMPP3/USB with ATMEGA162 Post by: andrethomas on 29 Sep 2005, 20:41 Hi,
If I change the CPU in the firmware to 161 it compiles fine - If I specify a 162 in the makefile it gives me errors on compile as follows: -- uart.c: In function `UART_Init': uart.c:77: error: `RXCIE' undeclared (first use in this function) uart.c:77: error: (Each undeclared identifier is reported only once uart.c:77: error: for each function it appears in.) uart.c:77: error: `RXEN' undeclared (first use in this function) uart.c:77: error: `TXEN' undeclared (first use in this function) uart.c:79: error: `UBRRH' undeclared (first use in this function) uart.c:81: error: `UBRR0' undeclared (first use in this function) uart.c: In function `UART_SendByte': uart.c:154: error: `UDRE' undeclared (first use in this function) make: *** [uart.o] Error 1 -- Any ideas? Title: Re: YAMPP3/USB with ATMEGA162 Post by: Sergey on 30 Sep 2005, 02:26 mega162 have two UARTs. You must change "RXCIE to RXCIE0,RXEN to RXEN0", ets. See mega162 header files.
Title: Re: YAMPP3/USB with ATMEGA162 Post by: andrethomas on 30 Sep 2005, 20:04 Duh! Thanks :)
|