Add more info about the power button hack

This commit is contained in:
meepingsnesroms
2018-12-05 13:49:03 -08:00
parent 934b630d0d
commit 642c5a8f20
2 changed files with 3 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ uint16_t getHwRegister16(uint32_t address){
return spi1RxFifoRead();
case PLLFSR:
//this is a hack, it makes the busy wait in HwrDelay finish instantly
//this is a hack, it makes the busy wait in HwrDelay finish instantly, prevents issues with the power button
registerArrayWrite16(PLLFSR, registerArrayRead16(PLLFSR) ^ 0x8000);
return registerArrayRead16(PLLFSR);

View File

@@ -306,7 +306,8 @@ void beginClk32(void){
}
void endClk32(void){
registerArrayWrite16(PLLFSR, registerArrayRead16(PLLFSR) ^ 0x8000);
//currently using toggle on read hack
//registerArrayWrite16(PLLFSR, registerArrayRead16(PLLFSR) ^ 0x8000);
//second position counter
if(clk32Counter >= CRYSTAL_FREQUENCY - 1){