From: Mike Frysinger Date: Mon, 3 Oct 2011 15:42:15 -0400 Subject: [U-Boot] [PATCH v3 16/21] sandbox: Add serial uart In-Reply-To: <1317082255-24247-17-git-send-email-sjg@chromium.org> References: <1317082255-24247-1-git-send-email-sjg@chromium.org> <1317082255-24247-17-git-send-email-sjg@chromium.org> Message-ID: <201110031542.16857.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, September 26, 2011 20:10:50 Simon Glass wrote: > +int serial_init(void) > +{ > + return 0; > +} this probably should set the tty to raw input with termios. if you're not familiar with the termios API, just lemme know, and i can send you a chunk of code to do what you need. > +void serial_exit(void) > +{ > +} no one actually implements this :). just delete it, and i'll delete the prototype from common.h. > +int serial_tstc(void) > +{ > + return 0; > +} once serial_init() reconfigures the tty to a more "serial" like mode, you can implement this properly. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111003/a8a4f83c/attachment.pgp