更新 UART_kx12A4_128.cs
This commit is contained in:
@@ -222,15 +222,15 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
|
||||
|
||||
IRQ.Set(interrupt);
|
||||
|
||||
if (interrupt)
|
||||
{
|
||||
this.Log(LogLevel.Info, "Interrupt asserted");
|
||||
machine.ScheduleAction(TimeInterval.FromMicroseconds(1),
|
||||
_ => {
|
||||
IRQ.Set(false);
|
||||
this.Log(LogLevel.Info, "Interrupt deasserted");
|
||||
});
|
||||
}
|
||||
// if (interrupt)
|
||||
// {
|
||||
// this.Log(LogLevel.Info, "Interrupt asserted");
|
||||
// machine.ScheduleAction(TimeInterval.FromMicroseconds(1),
|
||||
// _ => {
|
||||
// IRQ.Set(false);
|
||||
// this.Log(LogLevel.Info, "Interrupt deasserted");
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
@@ -480,10 +480,11 @@ namespace Antmicro.Renode.Peripherals.CustomPeripherals
|
||||
}
|
||||
|
||||
usr = (byte)(usr | USR_RBFI); //usr寄存器,置接收中断
|
||||
machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
|
||||
_ => {
|
||||
UpdateInterrupts();
|
||||
});
|
||||
// machine.ScheduleAction(TimeInterval.FromMicroseconds(10000),
|
||||
// _ => {
|
||||
// UpdateInterrupts();
|
||||
// });
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user