public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Klaus Pedersen <klaus.kruse.pedersen@mail.tele.dk>
To: sid@sources.redhat.com
Subject: Fix demo application
Date: Thu, 31 Jan 2002 15:13:00 -0000	[thread overview]
Message-ID: <3C59DFDA.3090502@mail.tele.dk> (raw)

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

The following patch fixes a number of problems I had when I
tried to compile the voice-pager application.

There are two unrelated problems. The first problem seem to be general
"bit decay", in the configuration files. They refer to both cpu-mapper
and mapper which seem to be the same thing.
The other problem fixes some namespace issues with gcc-3.1.
 

Klaus


2002-01-31  Klaus Pedersen <klaus.kruse.pedersen@mail.tele.dk>

        * Test-voice-pager.cxx VoicePager.cxx adac-driver.cxx 
lcd-driver.cxx page-lcd.cxx:
          Make it compile with gcc-3.1

        * voice-pager-demo.conf.in voice-pager-demo.conf.pport:
          Fix cpu-mapper <-> mapper mismatch. Load tclapi library.


[-- Attachment #2: sid-demos.diff --]
[-- Type: text/plain, Size: 4538 bytes --]

diff -u -r qqq/sid/src/sid/demos/voice-pager/Test-voice-pager.cxx sid-20020131/sid/src/sid/demos/voice-pager/Test-voice-pager.cxx
--- qqq/sid/src/sid/demos/voice-pager/Test-voice-pager.cxx	Thu Dec  7 20:31:08 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/Test-voice-pager.cxx	Fri Feb  1 00:48:45 2002
@@ -4,6 +4,8 @@
 // This file is part of SID and is licensed under the GPL.
 // See the file COPYING.SID for conditions for redistribution.
 
+using namespace std;
+
 #include "VoicePager.h"
 
 int
diff -u -r qqq/sid/src/sid/demos/voice-pager/VoicePager.cxx sid-20020131/sid/src/sid/demos/voice-pager/VoicePager.cxx
--- qqq/sid/src/sid/demos/voice-pager/VoicePager.cxx	Thu Dec  7 20:31:08 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/VoicePager.cxx	Fri Feb  1 00:48:45 2002
@@ -6,9 +6,11 @@
 
 // This is the main controller will send msgs to rtc, lcd, and snack.
 // Gets input from  parallel port and also has look up table.
+using namespace std;
 
 #include <stdio.h>
 #include "VoicePager.h"
+#include <iostream>
 
 static const int TIME_DIFFHRS = 7;	// CA time(-3) and no light sav. (-4)
 
diff -u -r qqq/sid/src/sid/demos/voice-pager/adac-driver.cxx sid-20020131/sid/src/sid/demos/voice-pager/adac-driver.cxx
--- qqq/sid/src/sid/demos/voice-pager/adac-driver.cxx	Thu Dec  7 20:31:08 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/adac-driver.cxx	Fri Feb  1 00:48:45 2002
@@ -3,6 +3,7 @@
 // Copyright (C) 1999, 2000 Red Hat.
 // This file is part of SID and is licensed under the GPL.
 // See the file COPYING.SID for conditions for redistribution.
+using namespace std;
 
 #include "adac-driver.h"
 #include "mem-map.h"
diff -u -r qqq/sid/src/sid/demos/voice-pager/lcd-driver.cxx sid-20020131/sid/src/sid/demos/voice-pager/lcd-driver.cxx
--- qqq/sid/src/sid/demos/voice-pager/lcd-driver.cxx	Thu Dec  7 20:31:08 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/lcd-driver.cxx	Fri Feb  1 00:48:45 2002
@@ -3,10 +3,11 @@
 // Copyright (C) 1999, 2000 Red Hat.
 // This file is part of SID and is licensed under the GPL.
 // See the file COPYING.SID for conditions for redistribution.
+using namespace std;
 
 #include "lcd-driver.h"
 #include "mem-map.h"
-#include <iostream.h>
+#include <iostream>
 
 lcd_driver::lcd_driver()
   :DATA_REG (LCD_BASE + 0), CMD_REG (LCD_BASE + 1), STATUS_REG (LCD_BASE + 1)
diff -u -r qqq/sid/src/sid/demos/voice-pager/page-lcd.cxx sid-20020131/sid/src/sid/demos/voice-pager/page-lcd.cxx
--- qqq/sid/src/sid/demos/voice-pager/page-lcd.cxx	Thu Dec  7 20:31:08 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/page-lcd.cxx	Fri Feb  1 00:48:45 2002
@@ -3,9 +3,11 @@
 // Copyright (C) 1999, 2000 Red Hat.
 // This file is part of SID and is licensed under the GPL.
 // See the file COPYING.SID for conditions for redistribution.
+using namespace std;
 
 #include "page-lcd.h"
 #include <stdio.h>
+#include <iostream>
 
 PagerUI :: PagerUI(lcd_driver& lcd)
   :lcd_drobj(lcd)
diff -u -r qqq/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.in sid-20020131/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.in
--- qqq/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.in	Thu Dec  7 20:31:09 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.in	Fri Feb  1 00:48:45 2002
@@ -5,6 +5,8 @@
 #
 load libt6963c.la t6963c_component_library
 new hw-lcd-t6963c-0101 lcd
+#
+load libtclapi.la tcl_bridge_library
 new bridge-tk panel
 set panel load! @srcdir@/lcd.tcl
 set panel load! @srcdir@/voice-pager.tcl
@@ -34,5 +36,5 @@
 set host-sched 9-time 1000
 connect-pin host-sched 9-event -> rtc_1742 clock
 # Memory map
-connect-bus mapper rtc_1742:[0xa00000-0xa01000,1,1] rtc_1742 read-write-port
-connect-bus mapper lcd:[0xa01200-0xa01201,1,1] lcd bus
+connect-bus cpu-mapper rtc_1742:[0xa00000-0xa01000,1,1] rtc_1742 read-write-port
+connect-bus cpu-mapper lcd:[0xa01200-0xa01201,1,1] lcd bus
diff -u -r qqq/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.pport sid-20020131/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.pport
--- qqq/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.pport	Thu Dec  7 20:31:09 2000
+++ sid-20020131/sid/src/sid/demos/voice-pager/voice-pager-demo.conf.pport	Fri Feb  1 00:48:45 2002
@@ -1,7 +1,7 @@
 new hw-parport-ps/2 pport
 set pport BIDEN_VAL 1
 set pport INTSEL_VAL 1
-connect-bus mapper pport:[0xa01100-0xa01102,1,1] pport Bus
+connect-bus cpu-mapper pport:[0xa01100-0xa01102,1,1] pport Bus
 connect-pin panel up-pin -> pport PD0
 connect-pin panel down-pin -> pport PD1
 connect-pin panel rec-pin -> pport PD2

             reply	other threads:[~2002-01-31 23:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-31 15:13 Klaus Pedersen [this message]
2002-01-31 15:15 ` Ben Elliston
2002-02-07 13:59 ` Ben Elliston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C59DFDA.3090502@mail.tele.dk \
    --to=klaus.kruse.pedersen@mail.tele.dk \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).