Skip to content

Commit

Permalink
ez5h: remove WAIT_CR (REG_EXMEMCNT) handling
Browse files Browse the repository at this point in the history
Not entirely certain why EZ-Flash did it this way, but we don't want
to conflict with SRLs that may adjust this for their own needs.
  • Loading branch information
lifehackerhansol committed Jun 4, 2024
1 parent 3fa86a6 commit cac4988
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions source/ez5h/source/io_ez5.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ void delay(int times)
}
}

//------------------------------------------------------
void Enable_Arm9DS()
{
WAIT_CR &= ~0x0880;
}

void Enable_Arm7DS()
{
WAIT_CR |= 0x0880;
}

//---------------------------------------------------------------------------------
void dsCardi_SetRomOP(uint8 * command)
{
Expand Down Expand Up @@ -136,7 +125,6 @@ void cardWriteCommand(uint8 * command)
uint32 dsCardi_Read4ByteMode(uint8 * command)
{
uint32 status=0;
Enable_Arm9DS();
dsCardi_SetRomOP(command);

//设置控制寄存器0x40001A4
Expand All @@ -147,7 +135,6 @@ uint32 dsCardi_Read4ByteMode(uint8 * command)
}while(!(status & 0x800000));

uint32 DD = REG_CARD_DATA_RD ;
Enable_Arm7DS();
return DD ;

}
Expand Down

0 comments on commit cac4988

Please sign in to comment.