You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(17) |
Jun
(59) |
Jul
(165) |
Aug
(84) |
Sep
(25) |
Oct
(200) |
Nov
(113) |
Dec
(208) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(349) |
Feb
(284) |
Mar
(516) |
Apr
(420) |
May
(290) |
Jun
(431) |
Jul
(269) |
Aug
(409) |
Sep
(305) |
Oct
(91) |
Nov
(36) |
Dec
(7) |
| 2004 |
Jan
(7) |
Feb
|
Mar
(2) |
Apr
|
May
(8) |
Jun
(4) |
Jul
|
Aug
(43) |
Sep
(2) |
Oct
(16) |
Nov
(28) |
Dec
(8) |
| 2005 |
Jan
|
Feb
(17) |
Mar
|
Apr
(1) |
May
(14) |
Jun
(40) |
Jul
(43) |
Aug
(4) |
Sep
(14) |
Oct
(23) |
Nov
|
Dec
(1) |
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Marcel T. <te...@us...> - 2005-02-24 05:24:31
|
Update of /cvsroot/openwince/tools/ibisa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv602 Modified Files: ChangeLog NEWS configure.ac Log Message: 2005-02-24 Marcel Telka <ma...@te...> * configure.ac (AC_INIT): Changed version number to 0.3.7. Index: NEWS =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/NEWS,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- NEWS 16 Feb 2005 08:29:28 -0000 1.36 +++ NEWS 24 Feb 2005 05:24:16 -0000 1.37 @@ -1,5 +1,7 @@ $Id$ +ibisa-0.3.7: + * Enabled perl as tool for building. ibisa-0.3.6 (2005-02-08): Index: configure.ac =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/configure.ac,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- configure.ac 25 Oct 2004 12:49:35 -0000 1.12 +++ configure.ac 24 Feb 2005 05:24:16 -0000 1.13 @@ -21,7 +21,7 @@ # Written by Marcel Telka <ma...@te...>, 2003. # -AC_INIT(ibisa,0.3.6) +AC_INIT(ibisa,0.3.7) AC_PREREQ(2.53) AC_REVISION($Revision$) Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/ChangeLog,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- ChangeLog 16 Feb 2005 08:29:27 -0000 1.48 +++ ChangeLog 24 Feb 2005 05:24:16 -0000 1.49 @@ -1,3 +1,7 @@ +2005-02-24 Marcel Telka <ma...@te...> + + * configure.ac (AC_INIT): Changed version number to 0.3.7. + 2005-02-16 Marcel Telka <ma...@te...> * src/Makefile.owce (plat, proj, cebuild, buildrel): Configured PERL environment variable. |
|
From: Marcel T. <te...@us...> - 2005-02-16 08:29:40
|
Update of /cvsroot/openwince/tools/ibisa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396 Modified Files: ChangeLog NEWS Log Message: 2005-02-16 Marcel Telka <ma...@te...> * src/Makefile.owce (plat, proj, cebuild, buildrel): Configured PERL environment variable. Index: NEWS =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/NEWS,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- NEWS 8 Feb 2005 12:49:16 -0000 1.35 +++ NEWS 16 Feb 2005 08:29:28 -0000 1.36 @@ -1,5 +1,7 @@ $Id$ + * Enabled perl as tool for building. + ibisa-0.3.6 (2005-02-08): * Added support for building project directory. Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/ChangeLog,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- ChangeLog 8 Feb 2005 12:49:16 -0000 1.47 +++ ChangeLog 16 Feb 2005 08:29:27 -0000 1.48 @@ -1,3 +1,7 @@ +2005-02-16 Marcel Telka <ma...@te...> + + * src/Makefile.owce (plat, proj, cebuild, buildrel): Configured PERL environment variable. + 2005-02-08 Marcel Telka <ma...@te...> Version 0.3.6 released. |
|
From: Marcel T. <te...@us...> - 2005-02-16 08:29:40
|
Update of /cvsroot/openwince/tools/ibisa/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19396/src Modified Files: Makefile.owce Log Message: 2005-02-16 Marcel Telka <ma...@te...> * src/Makefile.owce (plat, proj, cebuild, buildrel): Configured PERL environment variable. Index: Makefile.owce =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/src/Makefile.owce,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.owce 25 Oct 2004 12:49:35 -0000 1.8 +++ Makefile.owce 16 Feb 2005 08:29:28 -0000 1.9 @@ -2,7 +2,7 @@ # $Id$ # # Copyright (C) 2003 ETC s.r.o. -# Copyright (C) 2004 Elcom s.r.o. +# Copyright (C) 2004, 2005 Elcom s.r.o. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,12 +19,13 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # -# Written by Marcel Telka <ma...@te...>, 2003, 2004. +# Written by Marcel Telka <ma...@te...>, 2003, 2004, 2005. # all: proj cebuild buildrel img plat: + export PERL=`cygpath -w $$(which perl)` ;\ export WINCEREL=1 ; \ cd `cygpath '$(_TARGETPLATROOT)'` ; \ export MAKEFLAGS= ; \ @@ -34,16 +35,19 @@ test ! -f `cygpath '$(_TARGETPLATROOT)'`/build.err proj: + export PERL=`cygpath -w $$(which perl)` ;\ export _DEPTREES= ; \ export MAKEFLAGS= ; \ cebldtree.bat $(_TGTPROJ) -s -c > /dev/null cebuild: + export PERL=`cygpath -w $$(which perl)` ;\ export MAKEFLAGS= ; \ cebuild.bat -q -c test ! -f `cygpath '$(_WINCEROOT)'`/build.err buildrel: + export PERL=`cygpath -w $$(which perl)` ;\ export BUILDREL_USE_COPY=1 ; \ export COPYCMD=/Y ; \ buildrel.bat |
|
From: Marcel T. <te...@us...> - 2005-02-08 14:53:56
|
IBISA_0_3_6 mov /cvsroot/openwince/website/ibisa index.html 1.10 |
|
From: Marcel T. <te...@us...> - 2005-02-08 14:49:42
|
Update of /cvsroot/openwince/website/ibisa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9459 Modified Files: index.html Log Message: Updated for 0.3.6 release. Index: index.html =================================================================== RCS file: /cvsroot/openwince/website/ibisa/index.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- index.html 11 Aug 2004 07:37:12 -0000 1.9 +++ index.html 8 Feb 2005 14:49:33 -0000 1.10 @@ -20,8 +20,8 @@ </p> <p> -Latest released version is 0.3.5, -downloadable <a href="http://sourceforge.net/project/showfiles.php?group_id=52603&release_id=242271">here</a>. +Latest released version is 0.3.6, +downloadable <a href="http://sourceforge.net/project/showfiles.php?group_id=52603&release_id=303381">here</a>. </p> <hr /> |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:51
|
IBISA_0_3_6 add /cvsroot/openwince/tools/ibisa/src .cvsignore 1.3 Makefile.am 1.5 Makefile.owce 1.8 owce-config 1.6 owce-install 1.5 owce-run 1.13 |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:51
|
IBISA_0_3_6 add /cvsroot/openwince/tools/ibisa/tools .cvsignore 1.1 |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:51
|
IBISA_0_3_6 add /cvsroot/openwince/website/ibisa index.html 1.9 |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:51
|
IBISA_0_3_6 add /cvsroot/openwince/tools/ibisa/wince Makefile 1.6 makegen.bat 1.5 |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:50
|
IBISA_0_3_6 add /cvsroot/openwince/tools/ibisa .cvsignore 1.2 AUTHORS 1.1 ChangeLog 1.47 Makefile.am 1.8 NEWS 1.35 README 1.8 autogen.sh 1.1 configure.ac 1.12 ibisa.spec.in 1.6 makerpms.sh 1.5 |
|
From: Marcel T. <te...@us...> - 2005-02-08 12:49:26
|
Update of /cvsroot/openwince/tools/ibisa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25584 Modified Files: ChangeLog NEWS Log Message: 2005-02-08 Marcel Telka <ma...@te...> Version 0.3.6 released. Index: NEWS =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/NEWS,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- NEWS 12 Nov 2004 21:32:14 -0000 1.34 +++ NEWS 8 Feb 2005 12:49:16 -0000 1.35 @@ -1,6 +1,6 @@ $Id$ -ibisa-0.3.6: +ibisa-0.3.6 (2005-02-08): * Added support for building project directory. * Added support for CEPBDIR into openwince configurations. Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/tools/ibisa/ChangeLog,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- ChangeLog 12 Nov 2004 21:32:14 -0000 1.46 +++ ChangeLog 8 Feb 2005 12:49:16 -0000 1.47 @@ -1,3 +1,7 @@ +2005-02-08 Marcel Telka <ma...@te...> + + Version 0.3.6 released. + 2004-11-12 Marcel Telka <ma...@te...> * src/owce-config: Replaced CEPBDir with CEPBDIR (changed spelling). |
|
From: Marcel T. <te...@us...> - 2004-12-20 22:08:55
|
Update of /cvsroot/openwince/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6846 Modified Files: ChangeLog Makefile.am Log Message: 2004-12-20 Marcel Telka <ma...@te...> * device/other/hd64461/afe.h: New file. * Makefile.am (nobase_openwinceinc_HEADERS): Added device/other/hd64461/afe.h. Index: Makefile.am =================================================================== RCS file: /cvsroot/openwince/include/Makefile.am,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Makefile.am 20 Dec 2004 05:45:30 -0000 1.23 +++ Makefile.am 20 Dec 2004 22:08:31 -0000 1.24 @@ -79,6 +79,7 @@ device/flash/28fxxxk.h \ device/flash/cfi.h \ device/flash/intel.h \ + device/other/hd64461/afe.h \ device/other/hd64461/gpio.h \ device/other/hd64461/intc.h \ device/other/hd64461/lcdc.h \ Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/include/ChangeLog,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- ChangeLog 20 Dec 2004 05:45:30 -0000 1.55 +++ ChangeLog 20 Dec 2004 22:08:31 -0000 1.56 @@ -1,5 +1,10 @@ 2004-12-20 Marcel Telka <ma...@te...> + * device/other/hd64461/afe.h: New file. + * Makefile.am (nobase_openwinceinc_HEADERS): Added device/other/hd64461/afe.h. + +2004-12-20 Marcel Telka <ma...@te...> + * device/other/hd64461/gpio.h: New file. * device/other/hd64461/intc.h: Ditto. * device/other/hd64461/lcdc.h: Ditto. |
|
From: Marcel T. <te...@us...> - 2004-12-20 22:08:40
|
Update of /cvsroot/openwince/include/device/other/hd64461 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6846/device/other/hd64461 Added Files: afe.h Log Message: 2004-12-20 Marcel Telka <ma...@te...> * device/other/hd64461/afe.h: New file. * Makefile.am (nobase_openwinceinc_HEADERS): Added device/other/hd64461/afe.h. --- NEW FILE: afe.h --- /* * $Id: afe.h,v 1.1 2004/12/20 22:08:31 telka Exp $ * * Hitachi HD64461 AFE Interface Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_AFE_H #define HD64461_AFE_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* AFE Interface Registers */ #if LANGUAGE == C typedef volatile struct AFE_registers { uint16_t actr; uint16_t astr; uint16_t arxdr; uint16_t atxdr; } AFE_registers_t; #endif /* LANGUAGE == C */ #define ACTR_OFFSET 0x00 #define ASTR_OFFSET 0x02 #define ARXDR_OFFSET 0x04 #define ATXDR_OFFSET 0x06 /* ACTR bits */ #define ACTR_HC bit(15) #define ACTR_DIV_MASK bits(14,13) #define ACTR_DIV(x) bits_val(14,13,x) #define get_ACTR_DIV(x) bits_get(14,13,x) #define ACTR_RLYCNT bit(12) #define ACTR_CNT2 bit(11) #define ACTR_CNT1 bit(10) #define ACTR_TSW bit(9) #define ACTR_RSW bit(8) #define ACTR_RDETM bit(7) #define ACTR_TEIE bit(6) #define ACTR_REIE bit(5) #define ACTR_TXIE bit(4) #define ACTR_RXIE bit(3) #define ACTR_BUFD bit(2) #define ACTR_TE bit(1) #define ACTR_RE bit(0) /* ASTR bits */ #define ASTR_TAB bit(15) #define ASTR_RAB bit(14) #define ASTR_TERR bit(3) #define ASTR_RERR bit(2) #define ASTR_TDE bit(1) #define ASTR_RDF bit(0) #endif /* HD64461_AFE_H */ |
|
From: Marcel T. <te...@us...> - 2004-12-20 05:45:41
|
Update of /cvsroot/openwince/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23952 Modified Files: COPYING ChangeLog Makefile.am NEWS Log Message: 2004-12-20 Marcel Telka <ma...@te...> * device/other/hd64461/gpio.h: New file. * device/other/hd64461/intc.h: Ditto. * device/other/hd64461/lcdc.h: Ditto. * device/other/hd64461/pcc.h: Ditto. * device/other/hd64461/stbsys.h: Ditto. * device/other/hd64461/timer.h: Ditto. * Makefile.am (nobase_openwinceinc_HEADERS): Added new files. Index: NEWS =================================================================== RCS file: /cvsroot/openwince/include/NEWS,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- NEWS 6 Aug 2004 07:16:54 -0000 1.42 +++ NEWS 20 Dec 2004 05:45:30 -0000 1.43 @@ -3,6 +3,7 @@ include-0.3.3: * Added Renesas SH7750 CCN registers. + * Added Hitiachi HD64461 registers. * Added more manufacturer entries into Manufacturer's Identification Code database. * Ported uintptr_t type in win32/stdint.h to old Windows SDK. * Changes in brux common headers: Index: Makefile.am =================================================================== RCS file: /cvsroot/openwince/include/Makefile.am,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- Makefile.am 9 Nov 2003 21:36:32 -0000 1.22 +++ Makefile.am 20 Dec 2004 05:45:30 -0000 1.23 @@ -79,6 +79,12 @@ device/flash/28fxxxk.h \ device/flash/cfi.h \ device/flash/intel.h \ + device/other/hd64461/gpio.h \ + device/other/hd64461/intc.h \ + device/other/hd64461/lcdc.h \ + device/other/hd64461/pcc.h \ + device/other/hd64461/stbsys.h \ + device/other/hd64461/timer.h \ sh/sh7750/ccn.h \ std/mic.h Index: COPYING =================================================================== RCS file: /cvsroot/openwince/include/COPYING,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- COPYING 12 Feb 2003 14:32:29 -0000 1.2 +++ COPYING 20 Dec 2004 05:45:30 -0000 1.3 @@ -1,6 +1,7 @@ $Id$ Copyright (C) 2002, 2003 ETC s.r.o. +Copyright (C) 2003, 2004 Marcel Telka All rights reserved. Redistribution and use in source and binary forms, with or without @@ -13,7 +14,7 @@ copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of the ETC s.r.o. nor the names of its + * Neither the name of the copyright holders nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission. Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/include/ChangeLog,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- ChangeLog 6 Aug 2004 07:16:53 -0000 1.54 +++ ChangeLog 20 Dec 2004 05:45:30 -0000 1.55 @@ -1,3 +1,13 @@ +2004-12-20 Marcel Telka <ma...@te...> + + * device/other/hd64461/gpio.h: New file. + * device/other/hd64461/intc.h: Ditto. + * device/other/hd64461/lcdc.h: Ditto. + * device/other/hd64461/pcc.h: Ditto. + * device/other/hd64461/stbsys.h: Ditto. + * device/other/hd64461/timer.h: Ditto. + * Makefile.am (nobase_openwinceinc_HEADERS): Added new files. + 2004-08-06 Marcel Telka <ma...@te...> * win32/stdint.h (uintptr_t): Changed type definition from DWORD_PTR to UINT_PTR. |
|
From: Marcel T. <te...@us...> - 2004-12-20 05:45:40
|
Update of /cvsroot/openwince/include/device/other/hd64461 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23952/device/other/hd64461 Added Files: gpio.h intc.h lcdc.h pcc.h stbsys.h timer.h Log Message: 2004-12-20 Marcel Telka <ma...@te...> * device/other/hd64461/gpio.h: New file. * device/other/hd64461/intc.h: Ditto. * device/other/hd64461/lcdc.h: Ditto. * device/other/hd64461/pcc.h: Ditto. * device/other/hd64461/stbsys.h: Ditto. * device/other/hd64461/timer.h: Ditto. * Makefile.am (nobase_openwinceinc_HEADERS): Added new files. --- NEW FILE: timer.h --- /* * $Id: timer.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 Timer Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_TIMER_H #define HD64461_TIMER_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* Timer Registers */ #if LANGUAGE == C typedef volatile struct TIMER_registers { uint16_t tcvr1; uint16_t tcvr0; uint16_t trvr1; uint16_t trvr0; uint16_t tcr1; uint16_t tcr0; uint16_t tirr; uint16_t ter; } TIMER_registers_t; #endif /* LANGUAGE == C */ #define TCVR1_OFFSET 0x00 #define TCVR0_OFFSET 0x02 #define TRVR1_OFFSET 0x04 #define TRVR0_OFFSET 0x06 #define TCR1_OFFSET 0x08 #define TCR0_OFFSET 0x0A #define TIRR_OFFSET 0x0C #define TER_OFFSET 0x0E /* TCR1 bits */ #define TCR1_ETMO1 bit(3) #define TCR1_PST1_MASK bits(2,1) #define TCR1_PST1(x) bits_val(2,1,x) #define get_TCR1_PST1(x) bits_get(2,1,x) #define TCR1_T1STP bit(0) /* TCR0 bits */ #define TCR0_ETMO0 bit(3) #define TCR0_PST0_MASK bits(2,1) #define TCR0_PST0(x) bits_val(2,1,x) #define get_TCR0_PST0(x) bits_get(2,1,x) #define TCR0_T0STP bit(0) /* TIRR bits */ #define TIRR_TMU1R bit(1) #define TIRR_TMU0R bit(0) /* TER bits */ #define TER_TMU1E bit(1) #define TER_TMU0E bit(0) #endif /* HD64461_TIMER_H */ --- NEW FILE: lcdc.h --- /* * $Id: lcdc.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 Color LCD Controller Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_LCDC_H #define HD64461_LCDC_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* Color LCD Controller Registers */ #if LANGUAGE == C typedef volatile struct LCDC_registers { uint16_t lcdcbar; uint16_t lcdclor; uint16_t lcdccr; uint16_t __reserved1[5]; uint16_t ldr1; uint16_t ldr2; uint16_t ldhncr; uint16_t ldhnsr; uint16_t ldvntr; uint16_t ldvndr; uint16_t ldvspr; uint16_t ldr3; uint16_t crtvtr; uint16_t crtvrsr; uint16_t vrtvrer; uint16_t __reserved2[5]; uint16_t cptwar; uint16_t cptwdr; uint16_t cptrar; uint16_t cptrdr; uint16_t __reserved3[4]; uint16_t grdor; uint16_t grscr; uint16_t grcfgr; uint16_t lnsarh; uint16_t lnsarl; uint16_t lnaxlr; uint16_t lndgr; uint16_t lnaxr; uint16_t lnertr; uint16_t lnmdr; uint16_t bbtssarh; uint16_t bbtssarl; uint16_t bbtdsarh; uint16_t bbtdsarl; uint16_t bbtdwr; uint16_t bbtdhr; uint16_t bbtparh; uint16_t bbtparl; uint16_t bbtmarh; uint16_t bbtmarl; uint16_t bbtropr; uint16_t bbtmdr; } LCDC_registers_t; #endif /* LANGUAGE == C */ #define LCDCBAR_OFFSET 0x00 #define LCDCLOR_OFFSET 0x02 #define LCDCCR_OFFSET 0x04 #define LDR1_OFFSET 0x10 #define LDR2_OFFSET 0x12 #define LDHNCR_OFFSET 0x14 #define LDHNSR_OFFSET 0x16 #define LDVNTR_OFFSET 0x18 #define LDVNDR_OFFSET 0x1A #define LDVSPR_OFFSET 0x1C #define LDR3_OFFSET 0x1E #define CRTVTR_OFFSET 0x20 #define CRTVRSR_OFFSET 0x22 #define CRTVRER_OFFSET 0x24 #define CPTWAR_OFFSET 0x30 #define CPTWDR_OFFSET 0x32 #define CPTRAR_OFFSET 0x34 #define CPTRDR_OFFSET 0x36 #define GRDOR_OFFSET 0x40 #define GRSCR_OFFSET 0x42 #define GRCFGR_OFFSET 0x44 #define LNSARH_OFFSET 0x46 #define LNSARL_OFFSET 0x48 #define LNAXLR_OFFSET 0x4A #define LNDGR_OFFSET 0x4C #define LNAXR_OFFSET 0x4E #define LNERTR_OFFSET 0x50 #define LNMDR_OFFSET 0x52 #define BBTSSARH_OFFSET 0x54 #define BBTSSARL_OFFSET 0x56 #define BBTDSARH_OFFSET 0x58 #define BBTDSARL_OFFSET 0x5A #define BBTDWR_OFFSET 0x5C #define BBTDHR_OFFSET 0x5E #define BBTPARH_OFFSET 0x60 #define BBTPARL_OFFSET 0x62 #define BBTMARH_OFFSET 0x64 #define BBTMARL_OFFSET 0x66 #define BBTROPR_OFFSET 0x68 #define BBTMDR_OFFSET 0x6A /* LCDCBAR bits */ #define LCDCBAR_BAD_MASK bits(13,0) #define LCDCBAR_BAD(x) bits_val(13,0,x) #define get_LCDCBAR_BAD(x) bits_get(13,0,x) /* LCDCLOR bits */ #define LCDCLOR_LO_MASK bits(10,0) #define LCDCLOR_LO(x) bits_val(10,0,x) #define get_LCDCLOR_LO(x) bits_get(10,0,x) /* LCDCCR bits */ #define LCDCCR_STBACK bit(10) #define LCDCCR_STREQ bit(8) #define LCDCCR_MOFF bit(7) #define LCDCCR_REFSEL bit(6) #define LCDCCR_EPON bit(5) #define LCDCCR_SPON bit(4) #define LCDCCR_DSPSEL_MASK bits(2,0) #define LCDCCR_DSPSEL(x) bits_val(2,0,x) #define get_LCDCCR_DSPSEL(x) bits_get(2,0,x) /* LDR1 bits */ #define LDR1_DINV bit(8) #define LDR1_DON bit(0) /* LDR2 bits */ #define LDR2_CC1 bit(7) #define LDR2_CC2 bit(6) #define LDR2_LM_MASK bits(2,0) #define LDR2_LM(x) bits_val(2,0,x) #define get_LDR2_LM(x) bits_get(2,0,x) /* LDHNCR bits */ #define LDHNCR_NHD_MASK bits(15,8) #define LDHNCR_NHD(x) bits_val(15,8,x) #define get_LDHNCR_NHD(x) bits_get(15,8,x) #define LDHNCR_NHT_MASK bits(7,0) #define LDHNCR_NHT(x) bits_val(7,0,x) #define get_LDHNCR_NHT(x) bits_get(7,0,x) /* LDHNSR bits */ #define LDHNSR_HSW_MASK bits(11,8) #define LDHNSR_HSW(x) bits_val(11,8,x) #define get_LDHNSR_HSW(x) bits_get(11,8,x) #define LDHNSR_HSP_MASK bits(7,0) #define LDHNSR_HSP(x) bits_val(7,0,x) #define get_LDHNSR_HSP(x) bits_get(7,0,x) /* LDVNTR bits */ #define LDVNTR_VTL_MASK bits(9,0) #define LDVNTR_VTL(x) bits_val(9,0,x) #define get_LDVNTR_VTL(x) bits_get(9,0,x) /* LDVNDR bits */ #define LDVNDR_VDL_MASK bits(9,0) #define LDVNDR_VDL(x) bits_val(9,0,x) #define get_LDVNDR_VDL(x) bits_get(9,0,x) /* LDVSPR bits */ #define LDVSPR_VSP_MASK bits(9,0) #define LDVSPR_VSP(x) bits_val(9,0,x) #define get_LDVSPR_VSP(x) bits_get(9,0,x) /* LDR3 bits */ #define LDR3_CS_MASK bits(9,5) #define LDR3_CS(x) bits_val(9,5,x) #define get_LDR3_CS(x) bits_get(9,5,x) #define LDR3_CG_MASK bits(3,0) #define LDR3_CG(x) bits_val(3,0,x) #define get_LDR3_CG(x) bits_get(3,0,x) /* CRTVTR bits */ #define CRTVTR_CRTVTR_MASK bits(9,0) #define CRTVTR_CRTVTR(x) bits_val(9,0,x) #define get_CRTVTR_CRTVTR(x) bits_get(9,0,x) /* CRTVRSR bits */ #define CRTVRSR_CRTVRSR_MASK bits(9,0) #define CRTVRSR_CRTVRSR(x) bits_val(9,0,x) #define get_CRTVRSR_CRTVRSR(x) bits_get(9,0,x) /* CRTVRER bits */ #define CRTVRER_CRTVRER_MASK bits(3,0) #define CRTVRER_CRTVRER(x) bits_val(3,0,x) #define get_CRTVRER_CRTVRER(x) bits_get(3,0,x) /* CPTWAR bits */ #define CPTWAR_WRITE_PALETTE_NUM_MASK bits(15,8) #define CPTWAR_WRITE_PALETTE_NUM(x) bits_val(15,8,x) #define get_CPTWAR_WRITE_PALETTE_NUM(x) bits_get(15,8,x) /* CPTWDR bits */ #define CPTWDR_WRITE_PALETTE_D_MASK bits(5,0) #define CPTWDR_WRITE_PALETTE_D(x) bits_val(5,0,x) #define get_CPTWDR_WRITE_PALETTE_D(x) bits_get(5,0,x) /* CPTRAR bits */ #define CPTRAR_READ_PALETTE_NUM_MASK bits(15,8) #define CPTRAR_READ_PALETTE_NUM(x) bits_val(15,8,x) #define get_CPTRAR_READ_PALETTE_NUM(x) bits_get(15,8,x) /* CPTRDR bits */ #define CPTRDR_READ_PALETTE_D_MASK bits(5,0) #define CPTRDR_READ_PALETTE_D(x) bits_val(5,0,x) #define get_CPTRDR_READ_PALETTE_D(x) bits_get(5,0,x) /* GRDOR bits */ #define GRDOR_GRDOR_MASK bits(10,0) #define GRDOR_GRDOR(x) bits_val(10,0,x) #define get_GRDOR_GRDOR(x) bits_get(10,0,x) /* GRCFGR bits */ #define GRCFGR_ACCSTATUS bit(4) #define GRCFGR_ACCRESET bit(3) #define GRCFGR_ACCSTART_MASK bits(2,1) #define GRCFGR_ACCSTART(x) bits_val(2,1,x) #define get_GRCFGR_ACCSTART(x) bits_get(2,1,x) #define GRCFGR_COLORDEPTH bit(0) /* LNSARH bits */ #define LNSARH_LNSARH_MASK bits(2,0) #define LNSARH_LNSARH(x) bits_val(2,0,x) #define get_LNSARH_LNSARH(x) bits_get(2,0,x) /* LNAXLR bits */ #define LNAXLR_LNAXLR_MASK bits(10,0) #define LNAXLR_LNAXLR(x) bits_val(10,0,x) #define get_LNAXLR_LNAXLR(x) bits_get(10,0,x) /* LNDGR bits */ #define LNDGR_LNDGR_SIGN bit(15) #define LNDGR_LNDGR_MASK bits(10,0) #define LNDGR_LNDGR(x) bits_val(10,0,x) #define get_LNDGR_LNDGR(x) bits_get(10,0,x) /* LNAXR bits */ #define LNAXR_LNAXR_MASK bits(11,0) #define LNAXR_LNAXR(x) bits_val(10,0,x) #define get_LNAXR_LNAXR(x) bits_get(10,0,x) /* LNERTR bits */ #define LNERTR_LNERTR_SIGN bit(15) #define LNERTR_LNERTR_MASK bits(10,0) #define LNERTR_LNERTR(x) bits_val(10,0,x) #define get_LNERTR_LNERTR(x) bits_get(10,0,x) /* LNMDR bits */ #define LNMDR_LNMDR_MASK bits(1,0) #define LNMDR_LNMDR(x) bits_val(1,0,x) #define get_LNMDR_LNMDR(x) bits_get(1,0,x) /* BBTSSARH bits */ #define BBTSSARH_BBTSSARH_MASK bits(2,0) #define BBTSSARH_BBTSSARH(x) bits_val(2,0,x) #define get_BBTSSARH_BBTSSARH(x) bits_get(2,0,x) /* BBTDSARH bits */ #define BBTDSARH_BBTDSARH_MASK bits(2,0) #define BBTDSARH_BBTDSARH(x) bits_val(2,0,x) #define get_BBTDSARH_BBTDSARH(x) bits_get(2,0,x) /* BBTDWR bits */ #define BBTDWR_BBTDWR_MASK bits(10,0) #define BBTDWR_BBTDWR(x) bits_val(10,0,x) #define get_BBTDWR_BBTDWR(x) bits_get(10,0,x) /* BBTDHR bits */ #define BBTDHR_BBTDHR_MASK bits(10,0) #define BBTDHR_BBTDHR(x) bits_val(10,0,x) #define get_BBTDHR_BBTDHR(x) bits_get(10,0,x) /* BBTPARH bits */ #define BBTPARH_BBTPARH_MASK bits(2,0) #define BBTPARH_BBTPARH(x) bits_val(2,0,x) #define get_BBTPARH_BBTPARH(x) bits_get(2,0,x) /* BBTMARH bits */ #define BBTMARH_BBTMARH_MASK bits(2,0) #define BBTMARH_BBTMARH(x) bits_val(2,0,x) #define get_BBTMARH_BBTMARH(x) bits_get(2,0,x) /* BBTMDR bits */ #define BBTMDR_MSKENABLE bit(5) #define BBTMDR_PATSELECT bit(4) #define BBTMDR_SCREENSELECT_MASK bits(3,2) #define BBTMDR_SCREENSELECT(x) bits_val(3,2,x) #define get_BBTMDR_SCREENSELECT(x) bits_get(3,2,x) #define BBTMDR_SCANDRCT bit(0) #endif /* HD64461_LCDC_H */ --- NEW FILE: stbsys.h --- /* * $Id: stbsys.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 Standby Mode and System Configuration Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_STBSYS_H #define HD64461_STBSYS_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* Standby Mode and System Configuration Registers */ #if LANGUAGE == C typedef volatile struct STBSYS_registers { uint16_t stbcr; uint16_t syscr; uint16_t scpucr; } STBSYS_registers_t; #endif /* LANGUAGE == C */ #define STBCR_OFFSET 0x00 #define SYSCR_OFFSET 0x02 #define SCPUCR_OFFSET 0x04 /* STBCR bits */ #define STBCR_CKIO_STBY bit(13) #define STBCR_SAFECKE_IST bit(12) #define STBCR_SLCKE_IST bit(11) #define STBCR_SAFECKE_OST bit(10) #define STBCR_SLCKE_OST bit(9) #define STBCR_SMIAST bit(8) #define STBCR_SLCDST bit(7) #define STBCR_SPC0ST bit(6) #define STBCR_SPC1ST bit(5) #define STBCR_SAFEST bit(4) #define STBCR_STM0ST bit(3) #define STBCR_STM1ST bit(2) #define STBCR_SIRST bit(1) #define STBCR_SURTSD bit(0) /* SYSCR bits */ #define SYSCR_SCPU_BUS_IGAT bit(13) #define SYSCR_SPTA_IR bit(7) #define SYSCR_SPTA_TM bit(6) #define SYSCR_SPTB_UR bit(5) #define SYSCR_WAIT_CTL_SEL bit(4) #define SYSCR_SMODE1 bit(1) #define SYSCR_SMODE0 bit(0) /* SCPUCR bits */ #define SCPUCR_SPDSTOF bit(15) #define SCPUCR_SPDSTIG bit(14) #define SCPUCR_SPCSTOF bit(13) #define SCPUCR_SPCSTIG bit(12) #define SCPUCR_SPBSTOF bit(11) #define SCPUCR_SPBSTIG bit(10) #define SCPUCR_SPASTOF bit(9) #define SCPUCR_SPASTIG bit(8) #define SCPUCR_SLCDSTIG bit(7) #define SCPUCR_SCPU_CS56_EP bit(6) #define SCPUCR_SCPU_CMD_EP bit(5) #define SCPUCR_SCPU_ADDR_EP bit(4) #define SCPUCR_SCPDPU bit(3) #define SCPUCR_SCPU_A2319_EP bit(0) #endif /* HD64461_STBSYS_H */ --- NEW FILE: intc.h --- /* * $Id: intc.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 Interrupt Controller Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_INTC_H #define HD64461_INTC_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* Interrupt Controller Registers */ #if LANGUAGE == C typedef volatile struct INTC_registers { uint16_t nirr; uint16_t nimr; } INTC_registers_t; #endif /* LANGUAGE == C */ #define NIRR_OFFSET 0x00 #define NIMR_OFFSET 0x02 /* NIRR bits */ #define NIRR_PCC0R bit(14) #define NIRR_PCC1R bit(13) #define NIRR_AFER bit(12) #define NIRR_GPIOR bit(11) #define NIRR_TMU0R bit(10) #define NIRR_TMU1R bit(9) #define NIRR_IRDAR bit(6) #define NIRR_UARTR bit(5) /* NIMR bits */ #define NIMR_PCC0M bit(14) #define NIMR_PCC1M bit(13) #define NIMR_AFEM bit(12) #define NIMR_GPIOM bit(11) #define NIMR_TMU0M bit(10) #define NIMR_TMU1M bit(9) #define NIMR_IRDAM bit(6) #define NIMR_UARTM bit(5) #endif /* HD64461_INTC_H */ --- NEW FILE: pcc.h --- /* * $Id: pcc.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 PC Card Controller Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_PCC_H #define HD64461_PCC_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* PC Card Controller Registers */ #if LANGUAGE == C typedef volatile struct PCC_registers { uint8_t pcc0isr; uint8_t __reserved1; uint8_t pcc0gcr; uint8_t __reserved2; uint8_t pcc0cscr; uint8_t __reserved3; uint8_t pcc0cscier; uint8_t __reserved4; uint8_t pcc0scr; uint8_t __reserved5[7]; uint8_t pcc1isr; uint8_t __reserved6; uint8_t pcc1gcr; uint8_t __reserved7; uint8_t pcc1cscr; uint8_t __reserved8; uint8_t pcc1cscier; uint8_t __reserved9; uint8_t pcc1scr; uint8_t __reserved10[17]; uint8_t p0ocr; uint8_t __reserved11; uint8_t p1ocr; uint8_t __reserved12; uint8_t pgcr; } PCC_registers_t; #endif /* LANGUAGE == C */ #define PCC0ISR_OFFSET 0x00 #define PCC0GCR_OFFSET 0x02 #define PCC0CSCR_OFFSET 0x04 #define PCC0CSCIER_OFFSET 0x06 #define PCC0SCR_OFFSET 0x08 #define PCC1ISR_OFFSET 0x10 #define PCC1GCR_OFFSET 0x12 #define PCC1CSCR_OFFSET 0x14 #define PCC1CSCIER_OFFSET 0x16 #define PCC1SCR_OFFSET 0x18 #define P0OCR_OFFSET 0x2A #define P1OCR_OFFSET 0x2C #define PGCR_OFFSET 0x2E /* PCC0ISR bits */ #define PCC0ISR_P0READY bit(7) #define PCC0ISR_P0MWP bit(6) #define PCC0ISR_P0VS2 bit(5) #define PCC0ISR_P0VS1 bit(4) #define PCC0ISR_P0CD2 bit(3) #define PCC0ISR_P0CD1 bit(2) #define PCC0ISR_P0BVD2 bit(1) #define PCC0ISR_P0BVD1 bit(0) /* PCC0GCR bits */ #define PCC0GCR_P0DRVE bit(7) #define PCC0GCR_P0PCCR bit(6) #define PCC0GCR_P0PCCT bit(5) #define PCC0GCR_P0VCC0 bit(4) #define PCC0GCR_P0MMOD bit(3) #define PCC0GCR_P0PA25 ` bit(2) #define PCC0GCR_P0PA24 bit(1) #define PCC0GCR_P0REG bit(0) /* PCC0CSCR bits */ #define PCC0CSCR_P0SCDI bit(7) #define PCC0CSCR_P0IREQ bit(5) #define PCC0CSCR_P0SC bit(4) #define PCC0CSCR_P0CDC bit(3) #define PCC0CSCR_P0RC bit(2) #define PCC0CSCR_P0BW bit(1) #define PCC0CSCR_P0BD bit(0) /* PCC0CSCIER bits */ #define PCC0CSCIER_P0CRE bit(7) #define PCC0CSCIER_P0IREQE1 bit(6) #define PCC0CSCIER_P0IREQE0 bit(5) #define PCC0CSCIER_P0SCE bit(4) #define PCC0CSCIER_P0CDE bit(3) #define PCC0CSCIER_P0RE bit(2) #define PCC0CSCIER_P0BWE bit(1) #define PCC0CSCIER_P0BDE bit(0) /* PCC0SCR bits */ #define PCC0SCR_P0VCC1 bit(1) #define PCC0SCR_P0SWP bit(0) /* PCC1ISR bits */ #define PCC1ISR_P1READY bit(7) #define PCC1ISR_P1MWP bit(6) #define PCC1ISR_P1VS2 bit(5) #define PCC1ISR_P1VS1 bit(4) #define PCC1ISR_P1CD2 bit(3) #define PCC1ISR_P1CD1 bit(2) #define PCC1ISR_P1BVD2 bit(1) #define PCC1ISR_P1BVD1 bit(0) /* PCC1GCR bits */ #define PCC1GCR_P1DRVE bit(7) #define PCC1GCR_P1PCCR bit(6) #define PCC1GCR_P1VCC0 bit(4) #define PCC1GCR_P1MMOD bit(3) #define PCC1GCR_P1PA25 ` bit(2) #define PCC1GCR_P1PA24 bit(1) #define PCC1GCR_P1REG bit(0) /* PCC1CSCR bits */ #define PCC1CSCR_P1SCDI bit(7) #define PCC1CSCR_P1CDC bit(3) #define PCC1CSCR_P1RC bit(2) #define PCC1CSCR_P1BW bit(1) #define PCC1CSCR_P1BD bit(0) /* PCC1CSCIER bits */ #define PCC1CSCIER_P1CRE bit(7) #define PCC1CSCIER_P1CDE bit(3) #define PCC1CSCIER_P1RE bit(2) #define PCC1CSCIER_P1BWE bit(1) #define PCC1CSCIER_P1BDE bit(0) /* PCC1SCR bits */ #define PCC1SCR_P1VCC1 bit(1) #define PCC1SCR_P1SWP bit(0) /* P0OCR bits */ #define P0OCR_P0DEPLUP bit(7) #define P0OCR_P0AEPLUP bit(4) /* P1OCR bits */ #define P1OCR_P1RST8MA bit(3) #define P1OCR_P1RST4MA bit(2) #define P1OCR_P1RAS8MA bit(1) #define P1OCR_P1RAS4MA bit(0) /* PGCR bits */ #define PGCR_PSSDIR bit(1) #define PGCR_PSSRDWR bit(0) #endif /* HD64461_PCC_H */ --- NEW FILE: gpio.h --- /* * $Id: gpio.h,v 1.1 2004/12/20 05:45:30 telka Exp $ * * Hitachi HD64461 Pin Function Controller & I/O Port Registers * Copyright (C) 2004 Marcel Telka * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holders nor the names of their * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Written by Marcel Telka <ma...@te...>, 2004. * * Documentation: * [1] Hitachi, Ltd., "HD64461 Windows(R) CE Intelligent Peripheral Controller", * 1st Edition, July 1998, Order Number: ADE-602-076 * */ #ifndef HD64461_GPIO_H #define HD64461_GPIO_H #include <common.h> #if LANGUAGE == C #include <stdint.h> #endif /* Pin Function Controller & I/O Port Registers */ #if LANGUAGE == C typedef volatile struct GPIO_registers { uint16_t gpacr; uint16_t gpbcr; uint16_t gpccr; uint16_t gpdcr; uint16_t __reserved1[4]; uint8_t gpadr; uint8_t __reserved2; uint8_t gpbdr; uint8_t __reserved3; uint8_t gpcdr; uint8_t __reserved4; uint8_t gpddr; uint8_t __reserved5[9]; uint8_t gpaicr; uint8_t __reserved6; uint8_t gpbicr; uint8_t __reserved7; uint8_t gpcicr; uint8_t __reserved8; uint8_t gpdicr; uint8_t __reserved9[25]; uint8_t gpaisr; uint8_t __reserved10; uint8_t gpbisr; uint8_t __reserved11; uint8_t gpcisr; uint8_t __reserved12; uint8_t gpdisr; } GPIO_registers_t; #endif /* LANGUAGE == C */ #define GPACR_OFFSET 0x00 #define GPBCR_OFFSET 0x02 #define GPCCR_OFFSET 0x04 #define GPDCR_OFFSET 0x06 #define GPADR_OFFSET 0x10 #define GPBDR_OFFSET 0x12 #define GPCDR_OFFSET 0x14 #define GPDDR_OFFSET 0x16 #define GPAICR_OFFSET 0x20 #define GPBICR_OFFSET 0x22 #define GPCICR_OFFSET 0x24 #define GPDICR_OFFSET 0x26 #define GPAISR_OFFSET 0x40 #define GPBISR_OFFSET 0x42 #define GPCISR_OFFSET 0x44 #define GPDISR_OFFSET 0x46 #endif /* HD64461_GPIO_H */ |
|
From: Marcel T. <te...@us...> - 2004-12-20 05:26:54
|
Update of /cvsroot/openwince/include/device/other/hd64461 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20813/hd64461 Log Message: Directory /cvsroot/openwince/include/device/other/hd64461 added to the repository |
|
From: Marcel T. <te...@us...> - 2004-12-20 05:26:40
|
Update of /cvsroot/openwince/include/device/other In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20756/other Log Message: Directory /cvsroot/openwince/include/device/other added to the repository |
|
From: Martin F. <fl...@us...> - 2004-12-19 21:58:52
|
Update of /cvsroot/openwince/tools/cogen/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30725 Modified Files: min420.bat Log Message: fixed invalid RTTI setting Index: min420.bat =================================================================== RCS file: /cvsroot/openwince/tools/cogen/src/min420.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- min420.bat 5 Sep 2003 09:41:25 -0000 1.3 +++ min420.bat 19 Dec 2004 21:58:43 -0000 1.4 @@ -40,4 +40,4 @@ set SYSGEN_PEGTERM=1 set SYSGEN_AS_BASE=1 set SYSGEN_CPP_SEH=1 -set set SYSGEN_RTTI=1 +set SYSGEN_RTTI=1 |
|
From: Marcel T. <te...@us...> - 2004-12-05 09:31:27
|
Update of /cvsroot/openwince/website/jtag In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23827 Modified Files: index.html Log Message: Changed URL for article about JTAG on iPaq 3600 to local copy. Index: index.html =================================================================== RCS file: /cvsroot/openwince/website/jtag/index.html,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- index.html 11 Oct 2003 02:34:43 -0000 1.29 +++ index.html 5 Dec 2004 09:30:53 -0000 1.30 @@ -344,7 +344,7 @@ <p> -<a href="http://axl.freeyellow.com/iPAQ/jtag.htm">Fitting a JTAG interface to an iPAQ 3600</a> +<a href="http://openwince.sourceforge.net/jtag/iPAQ-3600/">Fitting a JTAG interface to an iPAQ 3600</a> </p> |
|
From: Marcel T. <te...@us...> - 2004-11-24 21:33:57
|
Update of /cvsroot/openwince/jtag/po In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26829 Modified Files: ChangeLog POTFILES.in Log Message: 2004-11-24 Marcel Telka <ma...@te...> * POTFILES.in: Added src/cmd/reset.c. Index: POTFILES.in =================================================================== RCS file: /cvsroot/openwince/jtag/po/POTFILES.in,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- POTFILES.in 18 Nov 2004 19:02:00 -0000 1.20 +++ POTFILES.in 24 Nov 2004 21:33:45 -0000 1.21 @@ -41,6 +41,7 @@ src/cmd/print.c src/cmd/readmem.c src/cmd/register.c +src/cmd/reset.c src/cmd/salias.c src/cmd/script.c src/cmd/set.c Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/jtag/po/ChangeLog,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- ChangeLog 18 Nov 2004 19:01:59 -0000 1.16 +++ ChangeLog 24 Nov 2004 21:33:45 -0000 1.17 @@ -1,3 +1,7 @@ +2004-11-24 Marcel Telka <ma...@te...> + + * POTFILES.in: Added src/cmd/reset.c. + 2004-11-18 Marcel Telka <ma...@te...> * POTFILES.in: Added src/bus/ppc440gx_ebc8.c, src/bus/tx4925.c, and src/tap/cable/lattice.c. |
|
From: Marcel T. <te...@us...> - 2004-11-24 21:27:41
|
Update of /cvsroot/openwince/jtag In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25043 Modified Files: ChangeLog NEWS Log Message: 2004-11-24 Marcel Telka <ma...@te...> * src/cmd/reset.c: New file. * src/discovery.c (jtag_reset): Function changed to non-static. * src/cmd/Makefile.am (libcmd_a_SOURCES): Added reset.c. * src/cmd/cmd.c (cmds): Added cmd_reset. Index: NEWS =================================================================== RCS file: /cvsroot/openwince/jtag/NEWS,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- NEWS 21 Nov 2004 12:43:52 -0000 1.115 +++ NEWS 24 Nov 2004 21:26:59 -0000 1.116 @@ -23,7 +23,9 @@ - Sharp LH7A400 (patch 886068, Marko RöÃler) * Added support for Lattice Parallel Port JTAG Cable (patch 1012138, Jerome Debard). * Fixed pin assignment for Macraigor Wiggler JTAG Cable (patch 1040199, Andrew Dyer). - * Added new command 'salias'. + * Added new commands: + - 'salias' to define alias for a signal + - 'reset' to reset JTAG chain * Explicit 'detectflash' command call is required before 'flashmem' command. * Fixed minor bugs (including bug 857039). * Fixed compiler error on Debian Woody (patch 986414, Martin Buck). Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/jtag/ChangeLog,v retrieving revision 1.211 retrieving revision 1.212 diff -u -d -r1.211 -r1.212 --- ChangeLog 21 Nov 2004 12:43:52 -0000 1.211 +++ ChangeLog 24 Nov 2004 21:26:58 -0000 1.212 @@ -1,3 +1,10 @@ +2004-11-24 Marcel Telka <ma...@te...> + + * src/cmd/reset.c: New file. + * src/discovery.c (jtag_reset): Function changed to non-static. + * src/cmd/Makefile.am (libcmd_a_SOURCES): Added reset.c. + * src/cmd/cmd.c (cmds): Added cmd_reset. + 2004-11-21 Marcel Telka <ma...@te...> * src/jtag.c (jtag_parse_stream, cleanup): New function. |
|
From: Marcel T. <te...@us...> - 2004-11-24 21:27:24
|
Update of /cvsroot/openwince/jtag/src/cmd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25043/src/cmd Modified Files: Makefile.am cmd.c Added Files: reset.c Log Message: 2004-11-24 Marcel Telka <ma...@te...> * src/cmd/reset.c: New file. * src/discovery.c (jtag_reset): Function changed to non-static. * src/cmd/Makefile.am (libcmd_a_SOURCES): Added reset.c. * src/cmd/cmd.c (cmds): Added cmd_reset. Index: Makefile.am =================================================================== RCS file: /cvsroot/openwince/jtag/src/cmd/Makefile.am,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- Makefile.am 23 Oct 2003 19:29:41 -0000 1.13 +++ Makefile.am 24 Nov 2004 21:27:09 -0000 1.14 @@ -28,6 +28,7 @@ libcmd_a_SOURCES = \ frequency.c \ cable.c \ + reset.c \ discovery.c \ detect.c \ signal.c \ Index: cmd.c =================================================================== RCS file: /cvsroot/openwince/jtag/src/cmd/cmd.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- cmd.c 23 Oct 2003 19:29:41 -0000 1.13 +++ cmd.c 24 Nov 2004 21:27:09 -0000 1.14 @@ -35,6 +35,7 @@ extern cmd_t cmd_help; extern cmd_t cmd_frequency; extern cmd_t cmd_cable; +extern cmd_t cmd_reset; extern cmd_t cmd_discovery; extern cmd_t cmd_detect; extern cmd_t cmd_signal; @@ -65,6 +66,7 @@ &cmd_help, &cmd_frequency, &cmd_cable, + &cmd_reset, &cmd_discovery, &cmd_detect, &cmd_signal, --- NEW FILE: reset.c --- /* * $Id: reset.c,v 1.1 2004/11/24 21:27:09 telka Exp $ * * Copyright (C) 2004 Marcel Telka * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Written by Marcel Telka <ma...@te...>, 2004. * */ #include "sysdep.h" #include <stdio.h> #include <string.h> #include "jtag.h" #include "cmd.h" void jtag_reset( chain_t *chain ); static int cmd_reset_run( char *params[] ) { if (cmd_params( params ) > 1) return -1; if (!cmd_test_cable()) return 1; jtag_reset( chain ); return 1; } static void cmd_reset_help( void ) { printf( _( "Usage: %s\n" "Reset current JTAG chain.\n" ), "reset" ); } cmd_t cmd_reset = { "reset", N_("reset JTAG chain"), cmd_reset_help, cmd_reset_run }; |
|
From: Marcel T. <te...@us...> - 2004-11-24 21:27:22
|
Update of /cvsroot/openwince/jtag/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25043/src Modified Files: discovery.c Log Message: 2004-11-24 Marcel Telka <ma...@te...> * src/cmd/reset.c: New file. * src/discovery.c (jtag_reset): Function changed to non-static. * src/cmd/Makefile.am (libcmd_a_SOURCES): Added reset.c. * src/cmd/cmd.c (cmds): Added cmd_reset. Index: discovery.c =================================================================== RCS file: /cvsroot/openwince/jtag/src/discovery.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- discovery.c 19 Aug 2003 08:42:19 -0000 1.11 +++ discovery.c 24 Nov 2004 21:27:02 -0000 1.12 @@ -91,7 +91,7 @@ return -1; } -static void +void jtag_reset( chain_t *chain ) { chain_set_trst( chain, 0 ); |
|
From: Marcel T. <te...@us...> - 2004-11-21 12:44:08
|
Update of /cvsroot/openwince/jtag/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5324/src Modified Files: jtag.c Log Message: 2004-11-21 Marcel Telka <ma...@te...> * src/jtag.c (jtag_parse_stream, cleanup): New function. (jtag_parse_file): Replaced stream parsing algorithm with jtag_parse_stream() call. Removed support for special filename '-'. (main): Rewritten and improved startup sequence to distinguish between interactive invocation and stdin input (fixed bug 858535, thanks to Andrew Dyer for an idea). Index: jtag.c =================================================================== RCS file: /cvsroot/openwince/jtag/src/jtag.c,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- jtag.c 13 Aug 2004 04:23:20 -0000 1.57 +++ jtag.c 21 Nov 2004 12:43:53 -0000 1.58 @@ -27,6 +27,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <readline/readline.h> @@ -195,28 +196,35 @@ free( line ); } -int -jtag_parse_file( const char *filename ) +static int +jtag_parse_stream( FILE *f ) { - FILE *f; int go = 1; char *line = NULL; int n = 0; - if (strcmp( filename, "-" ) != 0) - f = fopen( filename, "r" ); - else - f = stdin; - if (!f) - return -1; - while (go && (getline( &line, &n, f ) != -1)) if ((strlen(line) > 0) && (line[0] != '#')) go = jtag_parse_line(line); free(line); - if (strcmp( filename, "-" ) != 0) - fclose(f); + + return go; +} + +int +jtag_parse_file( const char *filename ) +{ + FILE *f; + int go; + + f = fopen( filename, "r" ); + if (!f) + return -1; + + go = jtag_parse_stream( f ); + + fclose(f); return go; } @@ -248,10 +256,24 @@ return go; } +static void +cleanup( void ) +{ + cfi_array_free( cfi_array ); + cfi_array = NULL; + + if (bus) { + bus_free( bus ); + bus = NULL; + } + chain_free( chain ); + chain = NULL; +} + int main( int argc, const char **argv ) { - int go = 1; + int go; int i; #ifdef ENABLE_NLS @@ -261,6 +283,41 @@ textdomain( PACKAGE ); #endif /* ENABLE_NLS */ + /* input from files */ + if (argc > 1) { + for (i = 1; i < argc; i++) { + chain = chain_alloc(); + if (!chain) { + printf( _("Out of memory\n") ); + return -1; + } + + go = jtag_parse_file( argv[i] ); + cleanup(); + if (go < 0) { + printf( _("Unable to open file `%s'!\n"), argv[i] ); + break; + } + } + return 0; + } + + /* input from stdin */ + if (!isatty(0)) { + chain = chain_alloc(); + if (!chain) { + printf( _("Out of memory\n") ); + return -1; + } + + jtag_parse_stream( stdin ); + + cleanup(); + + return 0; + } + + /* interactive */ printf( _("%s\n" "Copyright (C) 2002, 2003 ETC s.r.o.\n" @@ -278,41 +335,24 @@ printf( _("Warning: %s may damage your hardware! Type \"quit\" to exit!\n\n"), PACKAGE_NAME ); printf( _("Type \"help\" for help.\n\n") ); - for (i = 1; i < argc; i++) { - go = jtag_parse_file( argv[i] ); - if (go < 0) - printf( _("Unable to open file `%s'!\n"), argv[i] ); - if (!go) - break; - } - - if (go) { - /* Create ~/.jtag */ - jtag_create_jtagdir(); + /* Create ~/.jtag */ + jtag_create_jtagdir(); - /* Parse and execute the RC file */ - go = jtag_parse_rc(); + /* Parse and execute the RC file */ + go = jtag_parse_rc(); - if (go) { - /* Load history */ - jtag_load_history(); + if (go) { + /* Load history */ + jtag_load_history(); - /* main loop */ - jtag_readline_loop( "jtag> " ); + /* main loop */ + jtag_readline_loop( "jtag> " ); - /* Save history */ - jtag_save_history(); - } + /* Save history */ + jtag_save_history(); } - cfi_array_free( cfi_array ); - cfi_array = NULL; - - if (bus) { - bus_free( bus ); - bus = NULL; - } - chain_free( chain ); + cleanup(); return 0; } |
|
From: Marcel T. <te...@us...> - 2004-11-21 12:44:07
|
Update of /cvsroot/openwince/jtag In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5324 Modified Files: ChangeLog NEWS Log Message: 2004-11-21 Marcel Telka <ma...@te...> * src/jtag.c (jtag_parse_stream, cleanup): New function. (jtag_parse_file): Replaced stream parsing algorithm with jtag_parse_stream() call. Removed support for special filename '-'. (main): Rewritten and improved startup sequence to distinguish between interactive invocation and stdin input (fixed bug 858535, thanks to Andrew Dyer for an idea). Index: NEWS =================================================================== RCS file: /cvsroot/openwince/jtag/NEWS,v retrieving revision 1.114 retrieving revision 1.115 diff -u -d -r1.114 -r1.115 --- NEWS 16 Nov 2004 21:51:26 -0000 1.114 +++ NEWS 21 Nov 2004 12:43:52 -0000 1.115 @@ -28,6 +28,9 @@ * Fixed minor bugs (including bug 857039). * Fixed compiler error on Debian Woody (patch 986414, Martin Buck). * Added support for different Intel IXP425 frequency variants (patch 1030647, Trevor Man). + * Rewritten and improved startup sequence to distinguish between interactive invocation + and stdin input (fixed bug 858535, thanks to Andrew Dyer for an idea). + * Removed support for parameter '-' (stdin). * New translations: - French (Michel Robitaille) Index: ChangeLog =================================================================== RCS file: /cvsroot/openwince/jtag/ChangeLog,v retrieving revision 1.210 retrieving revision 1.211 diff -u -d -r1.210 -r1.211 --- ChangeLog 17 Nov 2004 14:00:38 -0000 1.210 +++ ChangeLog 21 Nov 2004 12:43:52 -0000 1.211 @@ -1,3 +1,11 @@ +2004-11-21 Marcel Telka <ma...@te...> + + * src/jtag.c (jtag_parse_stream, cleanup): New function. + (jtag_parse_file): Replaced stream parsing algorithm with jtag_parse_stream() call. Removed support + for special filename '-'. + (main): Rewritten and improved startup sequence to distinguish between interactive invocation + and stdin input (fixed bug 858535, thanks to Andrew Dyer for an idea). + 2004-11-17 Marcel Telka <ma...@te...> * acinclude.m4: New file with VL_LIB_READLINE macro (removed dependency on ac-archive package). |