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:
patacongo
2011-03-14 23:24:42 +00:00
parent 4d3ee9f15e
commit 77e3f14232
4 changed files with 33 additions and 12 deletions
+13
View File
@@ -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 */