diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-12-18 15:44:22 +0100 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-12-18 15:44:22 +0100 |
| commit | b3fc13c36c4ed666e34e292a9ed7d45ae4f49454 (patch) | |
| tree | 5a6af613dc529cd5dd5c6ef022be44d2508a6782 /examples/demos | |
| parent | 3b7c46ab74548a9a79bfb867551c51dd877c8f4d (diff) | |
| download | psn00bsdk-b3fc13c36c4ed666e34e292a9ed7d45ae4f49454.tar.gz | |
Rearrange hwregs_c.h and k573io.h, add clz intrinsics
Diffstat (limited to 'examples/demos')
| -rw-r--r-- | examples/demos/n00bdemo/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/demos/n00bdemo/main.c b/examples/demos/n00bdemo/main.c index 069b549..6d0be3c 100644 --- a/examples/demos/n00bdemo/main.c +++ b/examples/demos/n00bdemo/main.c @@ -76,7 +76,7 @@ volatile int timer_counter = 0, frame_counter = 0, frame_rate = 0; void sort_overlay(int showlotl); void lightdemo(); -#define K573_WATCHDOG *((volatile unsigned short *) 0x1f5c0000) +#define K573_WATCHDOG *((volatile unsigned short *) 0xbf5c0000) #define K573_EXP1_CFG 0x24173f47 void timerTick() { @@ -101,8 +101,8 @@ void timerSetup() { EnterCriticalSection(); #ifdef SYSTEM_573_SUPPORT - EXP1_ADDR = 0x1f000000; - EXP1_DELAY_SIZE = K573_EXP1_CFG; + BUS_EXP1_ADDR = 0x1f000000; + BUS_EXP1_CFG = K573_EXP1_CFG; #endif TIMER_CTRL(2) = 0x0258; // CLK/8 input, IRQ on reload |
