Update of /cvsroot/lapetus/lapetus
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15706
Modified Files:
dsp.c dsp.h
Log Message:
-Couple of code tweaks
Index: dsp.c
===================================================================
RCS file: /cvsroot/lapetus/lapetus/dsp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dsp.c 22 Jan 2007 04:12:12 -0000 1.2
+++ dsp.c 12 Jan 2008 18:15:56 -0000 1.3
@@ -44,16 +44,15 @@
SCUREG_PPD = program[i];
}
- SCUREG_PPAF = 0;
-
return LAPETUS_ERR_OK;
}
//////////////////////////////////////////////////////////////////////////////
-void DSPExec()
+void DSPExec(u8 PC)
{
- SCUREG_PPAF = SCUREG_PPAF | 0x18000;
+ SCUREG_PPAF = 0;
+ SCUREG_PPAF = 0x18000 | PC;
}
//////////////////////////////////////////////////////////////////////////////
@@ -67,7 +66,7 @@
void DSPStop()
{
- SCUREG_PPAF = SCUREG_PPAF & ~0x10000;
+ SCUREG_PPAF = 0;
}
//////////////////////////////////////////////////////////////////////////////
Index: dsp.h
===================================================================
RCS file: /cvsroot/lapetus/lapetus/dsp.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dsp.h 14 Jan 2007 19:46:07 -0000 1.1
+++ dsp.h 12 Jan 2008 18:15:56 -0000 1.2
@@ -28,7 +28,7 @@
#define SCUREG_PDD (*(volatile u32 *)0x25FE008C)
int DSPLoad(u32 *program, u8 offset, u8 size);
-void DSPExec();
+void DSPExec(u8 PC);
int DSPIsExec();
void DSPStop();
void DSPPause();
|