diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-14 23:24:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-14 23:24:42 +0000 |
commit | b2a7bfbb51f5bf8b34ea593f3b5e76aecf9161ea (patch) | |
tree | 55d556ae70c0f6a7479269d6736abd6684a57ef9 /nuttx/drivers | |
parent | 0e24b0de612ad596103e4e01d250f0be12278783 (diff) | |
download | px4-nuttx-b2a7bfbb51f5bf8b34ea593f3b5e76aecf9161ea.tar.gz px4-nuttx-b2a7bfbb51f5bf8b34ea593f3b5e76aecf9161ea.tar.bz2 px4-nuttx-b2a7bfbb51f5bf8b34ea593f3b5e76aecf9161ea.zip |
apps/ make changes + SLIP MTU notes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/net/slip.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/drivers/net/slip.c b/nuttx/drivers/net/slip.c index c822b5d46..6fedb829a 100644 --- a/nuttx/drivers/net/slip.c +++ b/nuttx/drivers/net/slip.c @@ -67,6 +67,11 @@ * Pre-processor Definitions ****************************************************************************/ +/* NOTE: Slip requires UART hardware handshake. If hardware handshake is + * not available with your UART, then you might try the 'slattach' option + * -L which is supposed to enable "3-wire operation." + */ + /* Configuration ************************************************************/ #if UIP_LLH_LEN > 0 @@ -85,6 +90,14 @@ # define CONFIG_SLIP_DEFPRIO 128 #endif +/* The Linux slip module hard-codes its MTU size to 296. So you + might as well set CONFIG_NET_BUFSIZE to 296 as well. +#if CONFIG_NET_BUFSIZE < 296 +# error "CONFIG_NET_BUFSIZE >= 296 is required" +#elif CONFIG_NET_BUFSIZE > 296 +# warning "CONFIG_NET_BUFSIZE == 296 is optimal" +#endif + /* SLIP special character codes *******************************************/ #define SLIP_END 0300 /* Indicates end of packet */ |