feat(kernel): add debounced (glitch-filtered) sense-line reads #5
@ -286,6 +286,10 @@ static void run_state_machine(void)
|
|||||||
bool eoi;
|
bool eoi;
|
||||||
enum iec_rx rc;
|
enum iec_rx rc;
|
||||||
|
|
||||||
|
if (kthread_should_stop()) {
|
||||||
|
iec_data_release();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (db_reset_asserted())
|
if (db_reset_asserted())
|
||||||
goto reset;
|
goto reset;
|
||||||
|
|
||||||
@ -313,6 +317,10 @@ static void run_state_machine(void)
|
|||||||
/* LISTENER: data phase */
|
/* LISTENER: data phase */
|
||||||
emit_record(IEC_KIND_EVENT, IEC_EV_ATN_RELEASED, IEC_FLAG_ADDRESSED);
|
emit_record(IEC_KIND_EVENT, IEC_EV_ATN_RELEASED, IEC_FLAG_ADDRESSED);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
if (kthread_should_stop()) {
|
||||||
|
iec_data_release();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (db_reset_asserted())
|
if (db_reset_asserted())
|
||||||
goto reset;
|
goto reset;
|
||||||
if (db_atn_asserted()) {
|
if (db_atn_asserted()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user