pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/gpsim-ptyusart Initial import of ptyusart-0....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/954d18c01b8f
branches:  trunk
changeset: 484790:954d18c01b8f
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Mon Nov 29 20:55:51 2004 +0000

description:
Initial import of ptyusart-0.3.1:
This is a serial module for gpsim, connecting the virtual Rx/Tx lines
to a pseudo-tty (pty). You can then use your usual serial tools (cu, tip,
minicom, etc ...) on this pty as you would do on a real serial port on
your Unix workstation.

Only for NetBSD for now. It should be easy to get it working on others BSD
systems. More work is needed for others Unix and Unix-like systems.

diffstat:

 emulators/gpsim-ptyusart/DESCR    |  19 +++++++++++++++++++
 emulators/gpsim-ptyusart/Makefile |  30 ++++++++++++++++++++++++++++++
 emulators/gpsim-ptyusart/PLIST    |   7 +++++++
 emulators/gpsim-ptyusart/distinfo |   4 ++++
 4 files changed, 60 insertions(+), 0 deletions(-)

diffs (76 lines):

diff -r 172c4571fb50 -r 954d18c01b8f emulators/gpsim-ptyusart/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gpsim-ptyusart/DESCR    Mon Nov 29 20:55:51 2004 +0000
@@ -0,0 +1,19 @@
+This is a serial module for gpsim, connecting the virtual Rx/Tx lines
+to a pseudo-tty (pty). You can then use your usual serial tools (cu, tip,
+minicom, etc ...) on this pty as you would do on a real serial port on
+your Unix workstation.
+Included is an example loopback program for a pic18f (that is, it will
+just echo back what you send it). tstloopback.c can be used along with
+cu or tip (or possibly minicom) to copy an arbitrary file though the
+serial port and the pic, which allows to check for data corruption
+(if you notice that 0x11 and 0x13 characters get lost, check for
+the XON/XOFF status of your pty :)
+
+This module has been developed for gpsim from CVS 20040816:
+http://www-asim.lip6.fr/~bouyer/pic/gpsim-20040826.tar.gz
+
+For now this has only been tested on NetBSD. It should work without
+much troubles on others BSDs. More work is needed for other unix-like
+operating systems (probably require a usart_external.cc per pty style).
+
+Please address comments, bug-fixes or updates to Manuel.Bouyer%lip6.fr@localhost
diff -r 172c4571fb50 -r 954d18c01b8f emulators/gpsim-ptyusart/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gpsim-ptyusart/Makefile Mon Nov 29 20:55:51 2004 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/29 20:55:51 bouyer Exp $
+#
+
+DISTNAME=      ptyusart-0.3.1
+PKGNAME=       gpsim-${DISTNAME}
+CATEGORIES=    emulators
+MASTER_SITES=  http://www-asim.lip6.fr/~bouyer/pic/
+
+MAINTAINER=    bouyer%NetBSD.org@localhost
+COMMENT=       Pseudo-tty module for gpsim
+
+ONLY_FOR_PLATFORM=      NetBSD-*-*
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK3=        YES
+USE_LANGUAGES= c c++
+
+USE_LIBTOOL=   YES
+
+EGDIR=         ${PREFIX}/share/examples/gpsim-ptyusart
+post-install:
+       ${INSTALL_DATA_DIR} ${EGDIR}
+       cd ${WRKSRC}/examples;                                  \
+       ${INSTALL_DATA} tst_txdot.asm ${EGDIR};                 \
+       ${INSTALL_DATA} tst_txrx.asm ${EGDIR};                  \
+       ${INSTALL_DATA} tst_txrx.stc ${EGDIR};                  \
+       ${INSTALL_DATA} tstloopback.c ${EGDIR};
+
+.include "../../emulators/gpsim-devel/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 172c4571fb50 -r 954d18c01b8f emulators/gpsim-ptyusart/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gpsim-ptyusart/PLIST    Mon Nov 29 20:55:51 2004 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/29 20:55:51 bouyer Exp $
+lib/libgpsim_ptyusart.la
+share/examples/gpsim-ptyusart/tst_txdot.asm
+share/examples/gpsim-ptyusart/tst_txrx.asm
+share/examples/gpsim-ptyusart/tst_txrx.stc
+share/examples/gpsim-ptyusart/tstloopback.c
+@dirrm share/examples/gpsim-ptyusart
diff -r 172c4571fb50 -r 954d18c01b8f emulators/gpsim-ptyusart/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gpsim-ptyusart/distinfo Mon Nov 29 20:55:51 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/29 20:55:51 bouyer Exp $
+
+SHA1 (ptyusart-0.3.1.tar.gz) = b0cda0e8009ca6bd78ac977c02b5d01df04e9039
+Size (ptyusart-0.3.1.tar.gz) = 308297 bytes



Home | Main Index | Thread Index | Old Index