Vitat's homepage
29 Apr 2024, 07:45
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: 21.03.08 Произведено обновление сайта/Site was updated
Home
Forum
Help
Search
Login
Register
Vitat's homepage
>
Forum
>
General
>
MP3
>
YAMPP3/USB with ATMEGA162
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: YAMPP3/USB with ATMEGA162 (Read 6962 times)
0 Members and 1 Guest are viewing this topic.
andrethomas
Junior
Posts: 20
YAMPP3/USB with ATMEGA162
«
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
Re: YAMPP3/USB with ATMEGA162
«
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
Re: YAMPP3/USB with ATMEGA162
«
Reply #2 on:
30 Sep 2005, 20:04 »
Duh! Thanks
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> MP3
=> General
TinyPortal v1.0.5 beta 1©
Bloc
Loading...