summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-09-30 02:51:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-09-30 02:51:32 +0000
commit9a3c35a942d76b0844d801be0572b4609eb70b56 (patch)
tree7c625cf7796a8e907dd11636f5110cef7b274a42 /cpukit
parent2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-9a3c35a942d76b0844d801be0572b4609eb70b56.tar.bz2
2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/include/rtems/termiostypes.h: Include stdlib.h. Add rtems_termios_baud_t. Rename termios_number_to_baud into rtems_termios_number_to_baud, termios_baud_to_number into rtems_termios_baud_to_number, termios_baud_to_index into rtems_termios_baud_to_index.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog8
-rw-r--r--cpukit/libcsupport/include/rtems/termiostypes.h14
2 files changed, 18 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index f3f89107c2..48f3e44841 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libcsupport/include/rtems/termiostypes.h: Include stdlib.h.
+ Add rtems_termios_baud_t.
+ Rename termios_number_to_baud into rtems_termios_number_to_baud,
+ termios_baud_to_number into rtems_termios_baud_to_number,
+ termios_baud_to_index into rtems_termios_baud_to_index.
+
2009-09-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/lib/tftpDriver.c: Remove vim: meta-tags.
diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h
index 92cb2ec22f..ebba9ca9f7 100644
--- a/cpukit/libcsupport/include/rtems/termiostypes.h
+++ b/cpukit/libcsupport/include/rtems/termiostypes.h
@@ -20,6 +20,7 @@
#include <rtems.h>
#include <rtems/libio.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
@@ -179,12 +180,17 @@ extern int rtems_termios_nlinesw;
#define PPPDISC 5 /* PPP discipline */
#define MAXLDISC 8
+/* baudrate xxx integer type */
+typedef int32_t rtems_termios_baud_t;
+
/* convert xxx integer to equivalent Bxxx constant */
-int termios_number_to_baud(int baud);
+int rtems_termios_number_to_baud(rtems_termios_baud_t baud);
+
/* convert Bxxx constant to xxx integer */
-int termios_baud_to_number(int termios_baud);
+rtems_termios_baud_t rtems_termios_baud_to_number(int termios_baud);
+
/* convert Bxxx constant to index */
-int termios_baud_to_index(int termios_baud);
+int rtems_termios_baud_to_index(rtems_termios_baud_t termios_baud);
/*
* This method is used by a driver to tell termios its
@@ -194,7 +200,7 @@ int termios_baud_to_index(int termios_baud);
*/
int rtems_termios_set_initial_baud(
struct rtems_termios_tty *ttyp,
- int baud
+ rtems_termios_baud_t baud
);
#ifdef __cplusplus