// // Copyright (c) 2010-2024 Antmicro // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. // using System.Collections.Generic; using Antmicro.Renode.Core; namespace Antmicro.Renode.Peripherals.GPIOPort { public class RenesasRA4_GPIO : RenesasRA_GPIO { public RenesasRA4_GPIO(IMachine machine, int portNumber, int numberOfConnections, RenesasRA_GPIOMisc pfsMisc) : base(machine, portNumber, numberOfConnections, pfsMisc) { // Intentionally left blank } protected override List[] PinInterruptOutputs => new List[] { /* PORT0 */ new List { new InterruptOutput(0, IRQ6), new InterruptOutput(1, IRQ7), new InterruptOutput(2, IRQ2), new InterruptOutput(4, IRQ3), new InterruptOutput(5, IRQ10), new InterruptOutput(11, IRQ15), new InterruptOutput(15, IRQ7), }, /* PORT1 */ new List { new InterruptOutput(0, IRQ2), new InterruptOutput(1, IRQ1), new InterruptOutput(4, IRQ1), new InterruptOutput(5, IRQ0), new InterruptOutput(10, IRQ3), new InterruptOutput(11, IRQ4), }, /* PORT2 */ new List { new InterruptOutput(5, IRQ1), new InterruptOutput(6, IRQ0), new InterruptOutput(12, IRQ3), new InterruptOutput(13, IRQ2), }, /* PORT3 */ new List { new InterruptOutput(1, IRQ6), new InterruptOutput(2, IRQ5), new InterruptOutput(4, IRQ9), new InterruptOutput(5, IRQ8), }, /* PORT4 */ new List { new InterruptOutput(0, IRQ0), new InterruptOutput(1, IRQ5), new InterruptOutput(2, IRQ4), new InterruptOutput(8, IRQ7), new InterruptOutput(9, IRQ6), new InterruptOutput(10, IRQ5), new InterruptOutput(11, IRQ4), new InterruptOutput(14, IRQ9), new InterruptOutput(15, IRQ8), }, /* PORT5 */ new List { new InterruptOutput(1, IRQ11), new InterruptOutput(2, IRQ12), new InterruptOutput(5, IRQ14), }, /* PORT6 */ new List { // Intentionally left blank }, /* PORT7 */ new List { // Intentionally left blank }, /* PORT8 */ new List { // Intentionally left blank }, /* PORT9 */ new List { // Intentionally left blank }, /* PORTA */ new List { // Intentionally left blank }, /* PORTB */ new List { // Intentionally left blank }, }; } }