Update the YMF262-HAL.hpp to add the initial_clear function to clear the YMF262 ic

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda 2026-06-03 15:00:38 -03:00
parent ec589d929a
commit 53f5251f3d
1 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,15 @@ class YMF262_HAL{
write(Bank::BANK_1, 0x105, (mode == OPLMode::OPL3) ? 0x01 : 0x00); write(Bank::BANK_1, 0x105, (mode == OPLMode::OPL3) ? 0x01 : 0x00);
}; };
void initial_clear(){
_gpio.set_ic(State::ACTIVE);
_gpio.delay_ticks(_t_icw_ticks);
_gpio.set_ic(State::INACTIVE);
_gpio.delay_ticks(_t_recovery_ticks);
};
}; };
#endif #endif