diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-15 14:24:06 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-16 08:58:49 -0500 |
commit | fc22287702a0f0f2074bd97a1a07c7778bc9ef8b (patch) | |
tree | 36a7d64a35d2e73317763765cba44a383c2d9af0 /c/src/lib/libcpu | |
parent | libcpu/powerpc/mpc8xx/console-generic/console-generic.c: Fix warnings (diff) | |
download | rtems-fc22287702a0f0f2074bd97a1a07c7778bc9ef8b.tar.bz2 |
libcpu/powerpc/ppc403/console/console405.c: Fix warnings
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/console/console405.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/console/console405.c b/c/src/lib/libcpu/powerpc/ppc403/console/console405.c index ac7a66d2f9..cf936581c2 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/console/console405.c +++ b/c/src/lib/libcpu/powerpc/ppc403/console/console405.c @@ -1,6 +1,8 @@ /* * This file contains the PowerPC 405GP console IO package. - * + */ + +/* * Author: Thomas Doerfler <td@imd.m.isar.de> * IMD Ingenieurbuero fuer Microcomputertechnik * @@ -190,7 +192,7 @@ static int spiBaudRound(double x) return (int)((int)((x-(int)x)*1000)>500 ? x+1 : x); } -void +static void spiBaudSet(uint32_t baudrate) { uint32_t tmp; @@ -252,7 +254,6 @@ spiPollRead (int minor) return port->RBR; } - static ssize_t spiPollWrite(int minor, const char *buf, size_t len) { @@ -325,13 +326,10 @@ static rtems_isr serial_ISR(rtems_vector_number v) } } - /* - * * deinit SPI - * */ -void +static void spiDeInit(void) { /* @@ -339,20 +337,16 @@ spiDeInit(void) * set it to state to work with polling boot monitor, if any... */ - /* set up baud rate to original state */ spiBaudSet(bsp_serial_rate); port->IER = 0; - } /* - * * init SPI - * */ -rtems_status_code +static rtems_status_code spiInitialize(void) { register unsigned tmp; @@ -453,11 +447,9 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } - /* * Open entry point */ - rtems_device_driver console_open( rtems_device_major_number major, rtems_device_minor_number minor, @@ -501,7 +493,6 @@ rtems_device_driver console_open( /* * Close entry point */ - rtems_device_driver console_close( rtems_device_major_number major, rtems_device_minor_number minor, @@ -514,7 +505,6 @@ rtems_device_driver console_close( /* * read bytes from the serial port. We only have stdin. */ - rtems_device_driver console_read( rtems_device_major_number major, rtems_device_minor_number minor, @@ -527,7 +517,6 @@ rtems_device_driver console_read( /* * write bytes to the serial port. Stdout and stderr are the same. */ - rtems_device_driver console_write( rtems_device_major_number major, rtems_device_minor_number minor, @@ -540,7 +529,6 @@ rtems_device_driver console_write( /* * IO Control entry point */ - rtems_device_driver console_control( rtems_device_major_number major, rtems_device_minor_number minor, |