URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 1010 |
Rev 1765 |
#define _NO_MACROS
|
#define _NO_MACROS
|
#include <sys/termios.h>
|
#include <sys/termios.h>
|
|
|
speed_t
|
speed_t
|
cfgetospeed(const struct termios *tp) {
|
cfgetospeed(const struct termios *tp) {
|
return tp->c_ospeed;
|
return tp->c_ospeed;
|
}
|
}
|
|
|
int
|
int
|
cfsetospeed(struct termios *tp, speed_t speed) {
|
cfsetospeed(struct termios *tp, speed_t speed) {
|
tp->c_ospeed = speed;
|
tp->c_ospeed = speed;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
speed_t
|
speed_t
|
cfgetispeed(const struct termios *tp) {
|
cfgetispeed(const struct termios *tp) {
|
return tp->c_ispeed;
|
return tp->c_ispeed;
|
}
|
}
|
|
|
int
|
int
|
cfsetispeed(struct termios *tp, speed_t speed) {
|
cfsetispeed(struct termios *tp, speed_t speed) {
|
tp->c_ispeed = speed;
|
tp->c_ispeed = speed;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.