From 7e2dda9617474a33318549558d9cd3b77f8bc913 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 Mar 2011 01:54:49 +0000 Subject: [PATCH] Basic SLIP functionality -- but there are issues git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3382 42af7a65-404d-4744-a932-0658087f49c3 --- configs/olimex-lpc1766stk/README.txt | 6 +++++- configs/olimex-lpc1766stk/slip-httpd/defconfig | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/olimex-lpc1766stk/README.txt b/configs/olimex-lpc1766stk/README.txt index 72340ffff8..5a30ab9f17 100755 --- a/configs/olimex-lpc1766stk/README.txt +++ b/configs/olimex-lpc1766stk/README.txt @@ -811,11 +811,15 @@ Where is one of the following: 3. Reset on the target side and attach SLIP on the Linux side: $ modprobe slip - $ slattach -p slip -s 57600 /dev/ttyS0 & + $ slattach -L -p slip -s 57600 /dev/ttyS0 & This should create an interface with a name like sl0, or sl1, etc. Add -d to get debug output. This will show the interface name. + NOTE: The -L option is included to suppress use of hardware flow + control. This is necessary because I haven't figure out how to + use the UART1 hardwar flow control yet. + NOTE: The Linux slip module hard-codes its MTU size to 296. So you might as well set CONFIG_NET_BUFSIZE to 296 as well. diff --git a/configs/olimex-lpc1766stk/slip-httpd/defconfig b/configs/olimex-lpc1766stk/slip-httpd/defconfig index c4fd1a6d01..324207e8a2 100755 --- a/configs/olimex-lpc1766stk/slip-httpd/defconfig +++ b/configs/olimex-lpc1766stk/slip-httpd/defconfig @@ -152,7 +152,7 @@ CONFIG_UART1_SERIAL_CONSOLE=n CONFIG_UART2_SERIAL_CONSOLE=n CONFIG_UART3_SERIAL_CONSOLE=n -CONFIG_UART1_FLOWCONTROL=y +CONFIG_UART1_FLOWCONTROL=n CONFIG_UART0_TXBUFSIZE=256 CONFIG_UART1_TXBUFSIZE=256