2010-07-07 21:39:06     How request a DMA interrupt in the uclinux?

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-07 21:39:06     How request a DMA interrupt in the uclinux?

zhang zhihua (CHINA)

Message: 91016   

 

Hi,

 

    我想在我的uClinux里面申请一个DMA发送中断,即当DMA发送完成之后关掉DMA,等有新数据的时候再打开DMA进行数据发送,因为如果不关闭DMA的话将会循环发送缓冲区里面的内容,比如:我使用的是BF518的UART1,发送就是DMA11,如何申请这个发送完成之后的中断呢?中断号是IRQ_UART1_TX吗?

 

    或者还有什么控制DMA更好的方法呢?谢谢... ...

TranslateQuoteReplyEditDelete

 

 

2010-07-07 21:44:00     Re: How request a DMA interrupt in the uclinux?

Mike Frysinger (UNITED STATES)

Message: 91018   

 

the bfin-uart driver takes care of DMA and such.  you should not be modifying it.

QuoteReplyEditDelete

 

 

2010-07-08 00:16:11     Re: How request a DMA interrupt in the uclinux?

Sonic Zhang (CHINA)

Message: 91023   

 

你应该直接使用现有的UART驱动。这个驱动已经做了你想做的事情。

QuoteReplyEditDelete

 

 

2010-07-08 05:43:58     Re: How request a DMA interrupt in the uclinux?

zhang zhihua (CHINA)

Message: 91036   

 

但是现有的UART1和UART0驱动使用过程中发现当收到数据时它会自动把收到的数据发回来,比如我打开/dev/ttyBF1,然后使用其他调试工具(如串口调试助手)向目标板发送一串字符串时在我的调试工具接收区会收到我刚发送的数据,而且在应用程序调用read(fd)时读不到任何数据,是不是有什么地方需要修改的呢?

 

谢谢!

TranslateQuoteReplyEditDelete

 

 

2010-07-08 06:03:52     Re: How request a DMA interrupt in the uclinux?

Sonic Zhang (CHINA)

Message: 91037   

 

你可以设置是不是回显。man stty

QuoteReplyEditDelete

 

 

2010-07-08 06:35:27     Re: How request a DMA interrupt in the uclinux?

zhang zhihua (CHINA)

Message: 91038   

 

Sonic,您好,

 

    能不能说详细一点?我不知道怎么设置... ...

 

谢谢!

TranslateQuoteReplyEditDelete

 

 

2010-07-08 12:45:54     Re: How request a DMA interrupt in the uclinux?

Mike Frysinger (UNITED STATES)

Message: 91065   

 

please refrain from posting the same message over and over again

 

read the documentation:

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:serial_programming

QuoteReplyEditDelete

 

 

2010-07-08 23:23:09     Re: How request a DMA interrupt in the uclinux?

zhang zhihua (CHINA)

Message: 91089   

 

It's OK!

 

Thanks!

Attachments

    Outcomes