| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/ |
| D | LPC43xx_GPIO_Test.cs | 22 var gpio = new LPC43xx_GPIO(machine); in InitTest() 23 machine.SystemBus.Register(gpio, new BusRangeRegistration(0x4000A000, 0x400)); in InitTest() 26 gpio.Reset(); in InitTest() 31 Assert.AreEqual(gpio.ReadDoubleWord(GPIO_DIR + 4 * port), 0x00000000); in InitTest() 33 Assert.AreEqual(gpio.ReadDoubleWord(GPIO_MASK + 4 * port), 0x00000000); in InitTest() 35 Assert.AreEqual(gpio.ReadDoubleWord(GPIO_SET + 4 * port), 0x00000000); in InitTest() 43 var gpio = new LPC43xx_GPIO(machine); in ChangeDirectionToOutput() 44 machine.SystemBus.Register(gpio, new BusRangeRegistration(0x4000A000, 0x400)); in ChangeDirectionToOutput() 47 gpio.Reset(); in ChangeDirectionToOutput() 52 gpio.WriteDoubleWord(GPIO_DIR + 4 * port, 0xFFFFFFFF); in ChangeDirectionToOutput() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/ |
| D | IGPIO.cs | 29 public static void Set(this IGPIO gpio) in Set() argument 31 gpio.Set(true); in Set() 34 public static void Unset(this IGPIO gpio) in Unset() argument 36 gpio.Set(false); in Unset() 39 public static void Blink(this IGPIO gpio) in Blink() argument 41 gpio.Set(); in Blink() 42 gpio.Unset(); in Blink()
|
| D | Machine.cs | 1649 foreach(var gpio in peripheral.GetGPIOs().Select(x => x.Item2)) in DetachIncomingInterrupts() 1651 var endpoints = gpio.Endpoints; in DetachIncomingInterrupts() 1656 gpio.Disconnect(endpoints[i]); in DetachIncomingInterrupts() 1668 foreach(var gpio in peripheral.GetGPIOs().Select(x => x.Item2)) in DetachOutgoingInterrupts() 1670 gpio.Disconnect(); in DetachOutgoingInterrupts()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/ |
| D | GPIOPythonEngine.cs | 20 public GPIOPythonEngine(IGPIOWithHooks gpio, string script) in GPIOPythonEngine() argument 23 this.gpio = gpio; in GPIOPythonEngine() 40 Scope.SetVariable("self", gpio); in InnerInit() 50 private readonly IGPIOWithHooks gpio; field in Antmicro.Renode.Hooks.GPIOPythonEngine
|
| D | GPIOHookExtensions.cs | 14 public static void AddStateChangedHook(this IGPIOWithHooks gpio, string pythonScript) in AddStateChangedHook() argument 16 var engine = new GPIOPythonEngine(gpio, pythonScript); in AddStateChangedHook() 17 gpio.AddStateChangedHook(engine.Hook); in AddStateChangedHook()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/ |
| D | InterruptHandler.cs | 15 public InterruptHandler(IGPIO gpio) in InterruptHandler() argument 19 this.gpio = gpio; in InterruptHandler() 29 gpio.Unset(); in Reset() 81 gpio.Set(true); in Refresh() 85 gpio.Set(false); in Refresh() 90 private readonly IGPIO gpio; field in Antmicro.Renode.Peripherals.InterruptHandler
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Bus/ |
| D | IGaislerAPB.cs | 25 public static uint GetCpuInterruptNumber(this IGaislerAPB @this, IGPIO gpio) in GetCpuInterruptNumber() argument 27 var endpoint = gpio.Endpoints.FirstOrDefault(); in GetCpuInterruptNumber()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/GPIOPort/ |
| D | BaseGPIOPort.cs | 48 foreach(var gpio in Connections.Values) in Unregister() 50 var endpoints = gpio.Endpoints; in Unregister() 55 gpio.Disconnect(endpoints[i]); in Unregister()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/IRQControllers/ |
| D | STM32F4_EXTI.cs | 61 foreach(var gpio in Connections) in Reset() 63 gpio.Value.Unset(); in Reset()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | InterruptManager.cs | 95 var gpio = subvectorIdToGpio[subvectorId]; in InterruptManager() 96 if(!subvectors.TryGetValue(gpio, out HashSet<TInterrupt> interrupts)) in InterruptManager() 99 subvectors.Add(gpio, interrupts); in InterruptManager()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/ |
| D | CC1200.cs | 51 foreach(var gpio in Connections.Values) in Reset() 53 gpio.Unset(); in Reset() 94 var gpio = gpioConfigurations[i]; in UpdateGPIOs() 95 switch(gpio.Value) in UpdateGPIOs() 136 … this.Log(LogLevel.Debug, "Unsupported GPIO mode on pin {0}: {1}", i, gpio.Value); in UpdateGPIOs() 139 … this.Log(LogLevel.Noisy, "Setting up GPIO{0} ({1}) to {2}", i, gpio.Value, Connections[i].IsSet); in UpdateGPIOs()
|
| D | CC2520.cs | 59 foreach(var gpio in Connections.Values) in Reset() 61 gpio.Unset(); in Reset()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/ |
| D | Quectel_BC660K.cs | 409 var gpioStatus = string.Join(",", gpioConfig.Values.Select(gpio => gpio.LogicLevel)); in GetQcfgGPIOStatus()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/ |
| D | ZynqMP_IPI.cs | 88 foreach(var gpio in Connections) in Reset() 90 gpio.Value.Unset(); in Reset()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/ |
| D | STM32WBA_GPDMA.cs | 30 var gpio = new GPIO(); in STM32WBA55_GPDMA() 31 channels[i] = new Channel(this, gpio, i); in STM32WBA55_GPDMA() 32 innerConnections[i] = gpio; in STM32WBA55_GPDMA()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/Devices/ |
| D | DevicesConfig.cs | 390 var gpio = connector.GetValue(device, null) as GPIO; in InitializeGPIO() 391 if(gpio == null) in InitializeGPIO() 395 gpio.Connect(receiver, (int)irqEntry[1]); in InitializeGPIO()
|