2009-08-24 04:21:35 SPORT emulated UART -> How to send a Break
Claudio Cunha (SWITZERLAND)
Message: 79151
Hi All,
I'm using a BF533-Ezkit board and Linux blackfin with a SPORT0 emulated UART for transmiting and receiving hex values to a board.
My Kernel version is :
kernel: Linux release 2.6.28.9-ADI-2009R1-pre-gb4ee7d3-dirty, build #38 Tue Jul 14 15:13:31 CEST 2009
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release 2008R1, build #12 Thu Jul 9 13:53:31 CEST 2009
And my values are sent in /dev/ttySS0.
How can I send a break over the sport emulated uart port ???
Because function sport_break_ctl is empty -> See under :
static void sport_break_ctl(struct uart_port *port, int break_state)
{
pr_debug("%s enter\n", __func__);
}
Let me know your suggestions how can I resolve this problem.
Thanks a lot.
With Regards,
Claudio Cunha
TranslateQuoteReplyEditDelete
2009-08-24 04:24:09 Re: SPORT emulated UART -> How to send a Break
Claudio Cunha (SWITZERLAND)
Message: 79152
A Uart Break is frame that all the bits are at low level (the start bit, the frame, and the stop bit) . It's 10bits at low level...
Thanks,
Claudio
TranslateQuoteReplyEditDelete
2009-08-24 04:42:38 Re: SPORT emulated UART -> How to send a Break
Sonic Zhang (CHINA)
Message: 79153
BREAK is not implemented in sport_uart.c yet. You can do it by keeping feeding zero to sport TX fifo.
QuoteReplyEditDelete
2009-08-24 05:13:28 Re: SPORT emulated UART -> How to send a Break
Claudio Cunha (SWITZERLAND)
Message: 79155
Thanks Sonic to respond me!
But how can I make to keeping feeding zero to sport TX fifo ? What function do I change it for that?
Thanks a lot !
Best regards,
Claudio
TranslateQuoteReplyEditDelete
2009-08-24 05:32:35 Re: SPORT emulated UART -> How to send a Break
Sonic Zhang (CHINA)
Message: 79157
You have to
1. add a break_state flag into struct sport_uart_port.
2. add a function tx_one_break to write 0s and end word 0xffff to sport tx fifo.
3. start first break 0 and set proper break_state flag in function break_ctl.