[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] serial comunication in petalinux
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: Re: [microblaze-uclinux] serial comunication in petalinux
- From: "Stephane Rousseau" <stephaner@xxxxxxxxx>
- Date: Fri, 21 Sep 2007 11:55:56 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=t+1HdxZRObww1dNqpMsaGiU2VFpoEz9Jta0xmxGU1gM=; b=PSEVs1W1Ty7CKarUAFp+FInrZR0LDk/+ESKcpeB2orpiuRyK+E9c3+1fVo3NNmFBY3js7oXKsxJkAf6LT46Mw1Y9UeHzoiMGIJvfw6R/ZryiMjlGWW8f+zA3/26HcmOldpWcpbBlgEV0yVsuAwB9R+8Hdh2Clz5lEgfiTGCWHMc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MJvLa9nFU8We1RzbOcXts055uhp2NNTdkrQXKHCbsnyM2yXmTh3WnwDHAP5KtmJNglPqlJI9uNtjTEFWoyonV4r0hpqty15W+6YdTQX7J8TVFn47GQ3T+q/a8gJRCH60cRRkc6b7rNv9eepI/3y5Lxo0AeJgu+q6XSourzbU5Ro=
- In-reply-to: <388672.83153.qm@xxxxxxxxxxxxxxxxxxxxxxx>
- References: <388672.83153.qm@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hi,
If your serial port is configured as you primary input output device.
You can just use printf function to write to the console and scanf to
read from the device:
// include reference to the std librairies
#include <stdio.h>
#include <stdlib.h>
int option;
printf("Choose an option (1: software, 2: hardware coprocessor \r\n");
scanf("%i",&option);
Stephane
On 9/20/07, moises j. cabrera <mojuca1808@xxxxxxxxxxxx> wrote:
>
> hello all
>
> how can i use the serial port in uClinux?? how can i received/send data??
>
>
> Also i want to know if there is some kind of patch o something like that
> that make the uClinux works in real time (convert in RTOS)??
> ________________________________
>
>
>
> ________________________________
>
> ¡Sé un mejor besador!
> Comparte todo lo que sabes sobre besos en:
> http://mx.yahoo.com/promos/mejorbesador.html
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/