mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
apps/ make changes + SLIP MTU notes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3381 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user