diff options
Diffstat (limited to 'nuttx/drivers/net')
-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 */ |