1 //
2 // Copyright (c) 2010-2021 Antmicro
3 //
4 //  This file is licensed under the MIT License.
5 //  Full license text is available in 'licenses/MIT.txt'.
6 //
7 using Antmicro.Renode.Core;
8 
9 namespace Antmicro.Renode.Peripherals.IRQControllers
10 {
11     public class PULP_EventController : IIRQController
12     {
PULP_EventController(PULP_InterruptController parent)13         public PULP_EventController(PULP_InterruptController parent)
14         {
15             this.parent = parent;
16         }
17 
OnGPIO(int number, bool value)18         public void OnGPIO(int number, bool value)
19         {
20             parent.OnEvent(number, value);
21         }
22 
Reset()23         public void Reset()
24         {
25             // intentionally left blank
26         }
27 
28         private readonly PULP_InterruptController parent;
29     }
30 }
31