projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typos.
[bertos.git]
/
bertos
/
drv
/
sipo.c
diff --git
a/bertos/drv/sipo.c
b/bertos/drv/sipo.c
index cb821692727b4989a57227b77ae87565a39435f8..44bbffe5e1baa535e9539833d532aff3bf3e927a 100644
(file)
--- a/
bertos/drv/sipo.c
+++ b/
bertos/drv/sipo.c
@@
-26,7
+26,7
@@
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 200
8
Develer S.r.l. (http://www.develer.com/)
+ * Copyright 200
9
Develer S.r.l. (http://www.develer.com/)
*
* -->
*
*
* -->
*
@@
-34,10
+34,11
@@
*
* \brief SIPO Module
*
*
* \brief SIPO Module
*
- * The SIPO module tra
sform
a serial input in
+ * The SIPO module tra
nsforms
a serial input in
* a parallel output. Please check hw_sipo.h
* a parallel output. Please check hw_sipo.h
- * file to customize hardware relat
ive
parameters.
+ * file to customize hardware relat
ed
parameters.
*
*
+ * \author Andrea Grandi <andrea@develer.com>
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
@@
-68,8
+69,7
@@
INLINE void sipo_putchar(uint8_t c)
}
/**
}
/**
- * Write a buffer into sipo register and when finish to
- * we load it.
+ * Write a buffer into the sipo register and, when finished, give a load pulse.
*/
static size_t sipo_write(UNUSED_ARG(struct KFile *, fd), const void *_buf, size_t size)
{
*/
static size_t sipo_write(UNUSED_ARG(struct KFile *, fd), const void *_buf, size_t size)
{
@@
-77,11
+77,11
@@
INLINE void sipo_putchar(uint8_t c)
size_t write_len = size;
ASSERT(buf);
size_t write_len = size;
ASSERT(buf);
- // Load into
shift register all byte in buffer
+ // Load into
the shift register all the buffer bytes
while(size--)
sipo_putchar(*buf++);
while(size--)
sipo_putchar(*buf++);
- // We
finsh to load bytes into shift register, load it
.
+ // We
have just finished to shift the bytes into the register, now load them
.
SIPO_LOAD();
return write_len;
SIPO_LOAD();
return write_len;
@@
-96,10
+96,10
@@
void sipo_init(Sipo *fd)
memset(fd, 0, sizeof(Sipo));
memset(fd, 0, sizeof(Sipo));
- //Set kfile struct type as a
generic kfile
structure.
+ //Set kfile struct type as a
Sipo
structure.
DB(fd->fd._type = KFT_SIPO);
DB(fd->fd._type = KFT_SIPO);
- // Set up
data flash programm
ing functions.
+ // Set up
SIPO writ
ing functions.
fd->fd.write = sipo_write;
SIPO_INIT_PIN();
fd->fd.write = sipo_write;
SIPO_INIT_PIN();