[En-Nut-Discussion] UART1 RTS/CTS
Tóth Szabolcs
toth.szabolcs at eworldcom.hu
Sun Jan 8 17:56:09 CET 2006
Now it works!
I had to set flow control:
u_long flow_control = UART_HS_RTSCTS;
_ioctl(_fileno(uf), UART_SETFLOWCONTROL, &flow_control);
Thanks
Szabolcs
Tóth Szabolcs wrote:
> Hi Harald,
>
> Thank you! I recompiled it, but it still doesn't work. I think the
> problem could be something else now. I should check it with scope...
> Thank you again!
>
> Regards,
> Szabolcs
>
>
> Harald Kipp wrote:
>
>> Szabolcs,
>>
>> At 01:46 30.12.2005 +0100, you wrote:
>>
>>> 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:
>>
>>
>>
>> Difficult topic, but as a general rule: If you are using the
>> Configurator for building the system, then better use it
>> also for setting these parameters.
>>
>> Load ethernut13g.conf and open
>> Architecture -> AVR -> USART0 Driver
>>
>> in the component tree. Enable
>> RTS Bit
>> CTS Interrupt
>>
>> and klick on the right column of the tree view to specify
>> RTS Bit
>> RTS Port
>> CTS Interrupt
>>
>> Save this new configuration under ethernut13g_hs.conf or
>> any other meaningful name.
>>
>> Now recreate and rebuild the build tree.
>>
>> Harald
>>
>> _______________________________________________
>> En-Nut-Discussion mailing list
>> En-Nut-Discussion at egnite.de
>> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>>
>>
> _______________________________________________
> 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