eispc_kb.cpp: Avoid scheduler asserts

This commit is contained in:
Joakim Larsson Edstrom 2019-10-24 11:11:36 +02:00
parent 3ee6433af0
commit 651872a73c

View File

@ -272,15 +272,15 @@ WRITE_LINE_MEMBER(eispc_keyboard_device::rst_line_w)
{
if (state == CLEAR_LINE)
{
m_mcu->resume(SUSPEND_REASON_RESET);
//m_mcu->set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
//m_mcu->resume(SUSPEND_REASON_RESET);
m_mcu->set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
LOGRST("KBD: Keyboard mcu reset line is cleared\n");
}
else
{
// set_input_line suspends with a true argument which causes "Keyboard error"
m_mcu->suspend(SUSPEND_REASON_RESET, false); // This causes an assert later when DEBUG==1
//m_mcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
//m_mcu->suspend(SUSPEND_REASON_RESET, false); // This causes an assert later when DEBUG==1
m_mcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
LOGRST("KBD: Keyboard mcu reset line is asserted\n");
}