I2C and usart together on ATMega8

Oct 07, 2006 1 Replies

Hello,

I am not sure this will work for you or not. Remove the "uart.h" in your source file and use the 0 instead of UART0 for the parameter indicating which uart to use. This parameter is needed for uart2.c (which is included as an included file in your source). The uart2.c or uart2.h API supports 2 uarts on the ATmega that has 2 UARTs and therefore the library expects additional parameter for specifying which UART.

Regards,

-Pandit

Gootes wrote:

>

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required