diff options
Diffstat (limited to 'sdk-modifications/libsrc')
-rw-r--r-- | sdk-modifications/libsrc/core/ds2_cpuclock.c | 8 | ||||
-rw-r--r-- | sdk-modifications/libsrc/core/ds2_dma.h | 16 |
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) |