aboutsummaryrefslogtreecommitdiff
path: root/sdk-modifications/libsrc
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-05 01:33:39 -0500
committerNebuleon Fumika2013-02-05 01:33:39 -0500
commitdfa2d3cc68616ddc7e5c5fd1bb9f250fa44cd2fd (patch)
treeda3305b41ea030084bd15437b947cac4fb3518d0 /sdk-modifications/libsrc
parentd1a7bf5eb558e7db4a1a27e15ebedb02e6b7f804 (diff)
downloadsnes9x2005-dfa2d3cc68616ddc7e5c5fd1bb9f250fa44cd2fd.tar.gz
snes9x2005-dfa2d3cc68616ddc7e5c5fd1bb9f250fa44cd2fd.tar.bz2
snes9x2005-dfa2d3cc68616ddc7e5c5fd1bb9f250fa44cd2fd.zip
Add include files from BassAceGold's library, release 2 fix 2.2.
Diffstat (limited to 'sdk-modifications/libsrc')
-rw-r--r--sdk-modifications/libsrc/core/ds2_cpuclock.c8
-rw-r--r--sdk-modifications/libsrc/core/ds2_dma.h16
2 files changed, 12 insertions, 12 deletions
diff --git a/sdk-modifications/libsrc/core/ds2_cpuclock.c b/sdk-modifications/libsrc/core/ds2_cpuclock.c
index 57f2143..145218d 100644
--- a/sdk-modifications/libsrc/core/ds2_cpuclock.c
+++ b/sdk-modifications/libsrc/core/ds2_cpuclock.c
@@ -192,7 +192,7 @@ static void detect_clockNew(void){
//udelay overclock
void ds2_udelay(unsigned int usec)
{
- /*unsigned int i = usec * (_iclk / 2000000);
+ unsigned int i = usec * (_iclk / 2000000);
__asm__ __volatile__ (
"\t.set noreorder\n"
@@ -202,17 +202,17 @@ void ds2_udelay(unsigned int usec)
".set reorder\n"
: "=r" (i)
: "0" (i)
- );*/
+ );
}
//mdelay overclock
void ds2_mdelay(unsigned int msec)
{
- /*int i;
+ int i;
for(i=0;i<msec;i++)
{
ds2_udelay(1000);
- }*/
+ }
}
diff --git a/sdk-modifications/libsrc/core/ds2_dma.h b/sdk-modifications/libsrc/core/ds2_dma.h
index a66588a..9a306cf 100644
--- a/sdk-modifications/libsrc/core/ds2_dma.h
+++ b/sdk-modifications/libsrc/core/ds2_dma.h
@@ -103,18 +103,18 @@ extern int _dmaCopy(int ch, void *dest, void *src, unsigned int size, unsigned i
_dmaCopy(ch, dest, src, size, DMA_MODECOPY | DMA_MODE32BIT);
/*
-- * Copy 'size' bytes from src to dest, in blocks of 16 bits (2 bytes).
-- * size is in bytes and must be a multiple of 2.
-- * Both src and dest must be aligned to 16 bits (2 bytes).
-- * Returns 0 on failure, non-zero on success.
-- */
+ * Copy 'size' bytes from src to dest, in blocks of 16 bits (2 bytes).
+ * size is in bytes and must be a multiple of 2.
+ * Both src and dest must be aligned to 16 bits (2 bytes).
+ * Returns 0 on failure, non-zero on success.
+ */
#define ds2_DMAcopy_16Bit(ch, dest, src, size)\
_dmaCopy(ch, dest, src, size, DMA_MODECOPY | DMA_MODE16BIT)
/*
-- * Copy 'size' individual bytes (8 bits at a time) from src to dest.
-- * Returns 0 on failure, non-zero on success.
-- */
+ * Copy 'size' individual bytes (8 bits at a time) from src to dest.
+ * Returns 0 on failure, non-zero on success.
+ */
#define ds2_DMAcopy_8Bit(ch, dest, src, size)\
_dmaCopy(ch, dest, src, size, DMA_MODECOPY | DMA_MODE8BIT)