From 631afaafe8f64224dc532327615db1692fc7f38e Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 18 Feb 2008 14:58:11 +0000 Subject: [PATCH] Spacing fixes. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1118 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/ser.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drv/ser.c b/drv/ser.c index 7daac360..dbbf9382 100644 --- a/drv/ser.c +++ b/drv/ser.c @@ -213,7 +213,7 @@ static size_t ser_read(struct KFile *fd, void *_buf, size_t size) size_t i = 0; char *buf = (char *)_buf; int c; - + while (i < size) { if ((c = ser_getchar(fds->ser)) == EOF) @@ -345,7 +345,7 @@ void ser_purgeTx(struct KFileSerial *fd) static int ser_flush(struct KFile *fd) { KFileSerial *fds = KFILESERIAL(fd); - + /* * Wait until the FIFO becomes empty, and then until the byte currently in * the hardware register gets shifted out. @@ -486,7 +486,7 @@ static size_t spimaster_read(struct KFile *fd, void *buf, size_t size) static size_t spimaster_write(struct KFile *fd, const void *buf, size_t size) { KFileSerial *fd_spi = KFILESERIAL(fd); - + ser_purgeRx(fd_spi); return ser_write(&fd_spi->fd, buf, size); @@ -510,5 +510,3 @@ void spimaster_init(KFileSerial *fds, unsigned int unit) fds->fd.read = spimaster_read; fds->fd.write = spimaster_write; } - - -- 2.25.1