Update the YMF262-HAL.hpp to add the initial_clear function to clear the YMF262 ic
This commit is contained in:
parent
ec589d929a
commit
53f5251f3d
|
|
@ -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
|
||||||
Loading…
Reference in New Issue