更新 UART_kx12A4_128.cs

This commit is contained in:
2026-04-23 16:41:35 +08:00
parent 6762a420a5
commit f5a2fa7725

View File

@@ -222,15 +222,15 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
IRQ.Set(interrupt); IRQ.Set(interrupt);
if (interrupt) // if (interrupt)
{ // {
this.Log(LogLevel.Info, "Interrupt asserted"); // this.Log(LogLevel.Info, "Interrupt asserted");
machine.ScheduleAction(TimeInterval.FromMicroseconds(1), // machine.ScheduleAction(TimeInterval.FromMicroseconds(1),
_ => { // _ => {
IRQ.Set(false); // IRQ.Set(false);
this.Log(LogLevel.Info, "Interrupt deasserted"); // this.Log(LogLevel.Info, "Interrupt deasserted");
}); // });
} // }
} }
@@ -480,10 +480,11 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
} }
usr = (byte)(usr | USR_RBFI); //usr寄存器置接收中断 usr = (byte)(usr | USR_RBFI); //usr寄存器置接收中断
machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
_ => {
UpdateInterrupts(); UpdateInterrupts();
}); // machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
// _ => {
// UpdateInterrupts();
// });
} }
else else