diff options
-rw-r--r-- | emulators/gpsim-ptyusart/DESCR | 19 | ||||
-rw-r--r-- | emulators/gpsim-ptyusart/Makefile | 30 | ||||
-rw-r--r-- | emulators/gpsim-ptyusart/PLIST | 7 | ||||
-rw-r--r-- | emulators/gpsim-ptyusart/distinfo | 4 |
4 files changed, 60 insertions, 0 deletions
diff --git a/emulators/gpsim-ptyusart/DESCR b/emulators/gpsim-ptyusart/DESCR new file mode 100644 index 00000000000..9cee24eae9e --- /dev/null +++ b/emulators/gpsim-ptyusart/DESCR @@ -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 diff --git a/emulators/gpsim-ptyusart/Makefile b/emulators/gpsim-ptyusart/Makefile new file mode 100644 index 00000000000..a8420325a6e --- /dev/null +++ b/emulators/gpsim-ptyusart/Makefile @@ -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 +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 --git a/emulators/gpsim-ptyusart/PLIST b/emulators/gpsim-ptyusart/PLIST new file mode 100644 index 00000000000..e31554e5410 --- /dev/null +++ b/emulators/gpsim-ptyusart/PLIST @@ -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 --git a/emulators/gpsim-ptyusart/distinfo b/emulators/gpsim-ptyusart/distinfo new file mode 100644 index 00000000000..dcd4621c70c --- /dev/null +++ b/emulators/gpsim-ptyusart/distinfo @@ -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 |