From: bernie Date: Mon, 18 Feb 2008 14:58:11 +0000 (+0000) Subject: Spacing fixes. X-Git-Tag: 1.0.0~134 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=631afaafe8f64224dc532327615db1692fc7f38e;p=bertos.git Spacing fixes. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1118 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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; } - -