Skip to content

Commit

Permalink
Use new libnds function for setting NTR clock speeds on arm9
Browse files Browse the repository at this point in the history
  • Loading branch information
ApacheThunder committed Feb 16, 2017
1 parent dfed476 commit 910c8f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ void TWL_ResetSlot1() {

int main(void) {

REG_SCFG_CLK = 0x0187;
// libnds sets TWL clock speeds on boot now.
// REG_SCFG_CLK = 0x0187;

irqInit();
fifoInit();
Expand Down
7 changes: 5 additions & 2 deletions arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ int main(int argc, const char* argv[]) {
bool UseNTRSplash = true;
bool EnableSD = false;

REG_SCFG_CLK = 0x85;
// libnds sets this now.
// REG_SCFG_CLK = 0x85;

swiWaitForVBlank();

Expand Down Expand Up @@ -76,7 +77,9 @@ int main(int argc, const char* argv[]) {

if( UseNTRSplash == true ) {
fifoSendValue32(FIFO_USER_04, 1);
REG_SCFG_CLK = 0x80;
// REG_SCFG_CLK = 0x80;
// New libnds function for going back to NTR clock speeds
setCpuClock(false);
swiWaitForVBlank();
}

Expand Down
2 changes: 1 addition & 1 deletion nds/ntr_launcher.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ DISABLEANIMATION = 0
NTRCLOCK = 1
ENABLESD = 0
TWLMODE = 0
RESETSLOT1 = 1
RESETSLOT1 = 0

0 comments on commit 910c8f8

Please sign in to comment.