Vitat's homepage
29 Apr 2024, 01:03 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 21.03.08 Произведено обновление сайта/Site was updated
 
  Home   Forum   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: YAMPP3/USB with ATMEGA162  (Read 6961 times)
0 Members and 1 Guest are viewing this topic.
andrethomas
Junior
**
Posts: 20


View Profile
« 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?
Logged
Sergey
Member
***
Posts: 76


View Profile Email
« Reply #1 on: 30 Sep 2005, 02:26 »

mega162 have two UARTs. You must change "RXCIE to RXCIE0,RXEN to RXEN0", ets. See mega162 header files.
Logged
andrethomas
Junior
**
Posts: 20


View Profile
« Reply #2 on: 30 Sep 2005, 20:04 »

Duh! Thanks Smile
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!