* Support for -DBAUDRATE=xxx

This commit is contained in:
bg- 2007-01-23 12:33:27 +00:00
parent 9b075f2038
commit 3ba41f731d
2 changed files with 6 additions and 2 deletions

View file

@ -26,7 +26,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: scat.c,v 1.3 2007/01/05 18:05:21 bg- Exp $ * $Id: scat.c,v 1.4 2007/01/23 12:33:27 bg- Exp $
* *
*/ */
@ -55,10 +55,12 @@
#define SLIP_ESC_END 0334 #define SLIP_ESC_END 0334
#define SLIP_ESC_ESC 0335 #define SLIP_ESC_ESC 0335
#ifndef BAUDRATE
#define BAUDRATE B115200 #define BAUDRATE B115200
//#define BAUDRATE B57600 //#define BAUDRATE B57600
//#define BAUDRATE B38400 //#define BAUDRATE B38400
//#define BAUDRATE B19200 //#define BAUDRATE B19200
#endif
void void
stty_telos(int fd) stty_telos(int fd)

View file

@ -28,7 +28,7 @@
* *
* This file is part of the uIP TCP/IP stack. * This file is part of the uIP TCP/IP stack.
* *
* $Id: tunslip.c,v 1.7 2007/01/12 18:23:19 bg- Exp $ * $Id: tunslip.c,v 1.8 2007/01/23 12:33:42 bg- Exp $
* *
*/ */
@ -684,10 +684,12 @@ tun_to_serial(int infd, int outfd)
write_to_serial(outfd, uip.inbuf, size); write_to_serial(outfd, uip.inbuf, size);
} }
#ifndef BAUDRATE
#define BAUDRATE B115200 #define BAUDRATE B115200
//#define BAUDRATE B57600 //#define BAUDRATE B57600
//#define BAUDRATE B38400 //#define BAUDRATE B38400
//#define BAUDRATE B19200 //#define BAUDRATE B19200
#endif
void void
stty_telos(int fd) stty_telos(int fd)