You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
boolsioWait()
{
// 50 ms timeoutREG_TM0CNT=TIMER_FREQ_16KHZ;
REG_TM0VAL=65536-819;
REG_TM1CNT=TIMER_FREQ_CASCADE;
REG_TM1VAL=0;
REG_TM0CNT |= TIMER_ENABLE;
while (!REG_TM1VAL);
returnhadTrans;
}
Had this code hang on hardware, despite working fine in mGBA. Turns out hardware demands the TIMER_ENABLE flag be set on both TM0 and TM1 for TM1 to count up.
The text was updated successfully, but these errors were encountered:
Had this code hang on hardware, despite working fine in mGBA. Turns out hardware demands the TIMER_ENABLE flag be set on both TM0 and TM1 for TM1 to count up.
The text was updated successfully, but these errors were encountered: