[En-Nut-Discussion] UART1 RTS/CTS
Tóth Szabolcs
toth.szabolcs at eworldcom.hu
Fri Dec 30 11:12:57 CET 2005
Here is the error message:
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartRxComplete':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:446: error:
`UART_RTS_PORT' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:446: error:
(Each undeclared identifier is reported only once
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:446: error:
for each function it appears in.)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartGetStatus':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:822: error:
`UART_RTS_PORT' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartSetStatus':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:923: error:
`UART_RTS_PORT' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartSetFlowControl':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:1154: error:
`UART_RTS_PORT' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:1155: error:
`UART_RTS_DDR' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartRxStart':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:1263: error:
`UART_RTS_PORT' undeclared (first use in this function)
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c: In function
`AvrUsartDeinit':
C:/dev/Src/AVR/ethernut-3.9.9/nut/arch/avr/dev/usartavr.c:1334: error:
`UART_RTS_DDR' undeclared (first use in this function)
make[1]: *** [avr/dev/usart1avr.o] Error 1
I'm afraid that, I cannot set UART_* macros because both uart0 and uart1
uses commonly this source, and maybe uart0 and uart1 will use the same
RTS, CTS pins...
Regards,
Szabolcs
Tóth Szabolcs wrote:
> Hi,
>
> I need some help in uart. I have an Ethernut 1g board. I connected a
> MAX232 IC to the uart1 port (port D). I need RTS, CTS not just RXD, TXD.
>
> Pins:
> CTS: PortD 0
> RTS: PortD 1
> RXD: PortD 2
> TXD: PortD 3
>
> What should I do, to ask AVR use CTS, RTS pins? I don't know if I'm on
> a good way, but I modified nut/include/arch/avr.h and added the
> following lines:
> #define UART1_CTS_IRQ INT0
> #define UART1_RTS_PORT PORTD
> #define UART1_RTS_DDR DDRD
> #define UART1_RTS_BIT 1
>
> After this I rebuilt the OS with the configurator, but another error
> messages came.
>
> For the uart0 the RXD and TXD is enough...
>
> Thanks in advance,
> Szabolcs
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
More information about the En-Nut-Discussion
mailing list