<div dir="ltr"><div><div><div><div>I am looking in code of RTEMS and SPARC BSP from quite a few days . And I do have these following questions:<br></div>1. How does a driver selected when there are more than one driver available for one device?<br>
</div>2. Is there some difference between uart for console and raw uart? I saw in RTEMS 4.10 that there are two drivers for UART one is simply apbuart.c and other is apbuart_cons.c. I am currently opening the uart through open system call described in GAISLER document with device name as /dev/apbuart[0|1|2|3|4|5]. And I also read that I should use /dev/cons_[a|b|c].<br>
</div>3. Is there any RTEMS method for debugging purpose which can tell me the drivers registered and all devices on a bus? Does it depend on a particular BSP.<br></div><div>4. Which makefile is used for adding a new device driver for building?<br>
</div><div><br></div><div>Can somebody help me out with the answers to above question? <br></div><div><br></div>Manish<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 9:43 PM, manish jain <span dir="ltr"><<a href="mailto:manish8886@gmail.com" target="_blank">manish8886@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br></div>I was looking at the code of UART driver for sparc in "/c/src/lib/libbsp/sparc/shared/uart/apbuart.c". I just want to know why in the code member variable "tx_cnt" of apbuart_stats has not been changed. Shouldn't it be modified when a "character" has been put in the "Hardware Fifo" from the software "transmission Fifo buffer"?<br>
<br></div>Actually, in my code I need to know whether the Software Fifo buffer for transmission has any space left or not. I was thinking I can do that by knowing the "tx_cnt" after querying the status of the UART. Can somebody tell other method by which I can accomplish this?<br>
<br></div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Manish<br></font></span></div>
</blockquote></div><br></div>