Hi,

Now uart0 is working, but if we want to use uart1 so how to configure it &
file will open same as uart0.

Arvind


On Tue, Jan 27, 2009 at 3:09 PM, Arvind <[email protected]> wrote:

> Hi,
>
> Ok, Its working with uart0, but for uart1 we will do "/dev/tts/1"
>
> Arvind
>
>
> On Tue, Jan 27, 2009 at 2:34 PM, Harshesh Valera <
> [email protected]> wrote:
>
>>  Hi Arvind,
>>
>> Please use /dev/tts/0 instead of /dev/ttyS0 becoz standard 8250 serial
>> driver of Linux prints
>> "Registering ttyS0 but the device name is /dev/tts/0"
>> Thanks,
>> -Harshesh
>> Solution:
>> #include <fcntl.h>
>> #include <stdio.h>
>> #include <stdlib.h>
>> #include <sys/types.h>
>> #include <unistd.h>
>>
>> int main(void){
>>     int fd;
>>     //char buf[10];
>>     //fd = open("/dev/ttys0",O_RDONLY);
>>     fd = open("/dev/tts/0",O_WRONLY);
>>     if(fd >= 0){
>>         printf("success\n");
>>         write(fd, "Hello", 5);
>>         close(fd);
>>     }
>>     else{
>>         printf("Fail: fd: %d\n",fd);
>>     }
>>     return 0;
>> }
>> Arvind wrote:
>>
>> Hi,
>>
>> I am using DM355 board I want to access DM355 serial port0 & serial port1.
>> How can i use this..
>>
>> my Code:
>>
>> #include <fcntl.h>
>> #include <stdio.h>
>> #include <stdlib.h>
>> #include <sys/types.h>
>> #include <unistd.h>
>>
>> int main(void){
>>     int fd;
>>     //char buf[10];
>>     //fd = open("/dev/ttys0",O_RDONLY);
>>     fd = open("/dev/ttys0",O_WRONLY);
>>     if(fd >= 0){
>>         printf("success\n");
>>         write(fd, "Hello", 5);
>>         close(fd);
>>     }
>>     else{
>>         printf("Fail: fd: %d\n",fd);
>>     }
>>     return 0;
>> }
>>
>>
>>
>> Output:
>> Fd: -1
>>
>> Problem is File not open.
>>
>>
>>    *Email Scanned for Virus & Dangerous Content by :* *
>> www.CleanMailGateway.com*
>>
>> ------------------------------
>>
>> _______________________________________________
>> Davinci-linux-open-source mailing 
>> [email protected]http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>>
>>
>>
>> --
>> ------------------------------
>>  Disclaimer: This e-mail message and all attachments transmitted with it
>> are intended solely for the use of the addressee and may contain legally
>> privileged and confidential information. If the reader of this message is
>> not the intended recipient, or an employee or agent responsible for
>> delivering this message to the intended recipient, you are hereby notified
>> that any dissemination, distribution, copying, or other use of this message
>> or its attachments is strictly prohibited. If you have received this message
>> in error, please notify the sender immediately by replying to this message
>> and please delete it from your computer. Any views expressed in this message
>> are those of the individual sender unless otherwise stated.Company has taken
>> enough precautions to prevent the spread of viruses. However the company
>> accepts no liability for any damage caused by any virus transmitted by this
>> email.
>> ------------------------------
>>
>>
>
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to