Home
last modified time | relevance | path

Searched refs:gpio (Results 1 – 16 of 16) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/
DLPC43xx_GPIO_Test.cs22 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/
DIGPIO.cs29 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()
DMachine.cs1649 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/
DGPIOPythonEngine.cs20 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
DGPIOHookExtensions.cs14 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/
DInterruptHandler.cs15 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/
DIGaislerAPB.cs25 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/
DBaseGPIOPort.cs48 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/
DSTM32F4_EXTI.cs61 foreach(var gpio in Connections) in Reset()
63 gpio.Value.Unset(); in Reset()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DInterruptManager.cs95 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/
DCC1200.cs51 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()
DCC2520.cs59 foreach(var gpio in Connections.Values) in Reset()
61 gpio.Unset(); in Reset()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DQuectel_BC660K.cs409 var gpioStatus = string.Join(",", gpioConfig.Values.Select(gpio => gpio.LogicLevel)); in GetQcfgGPIOStatus()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DZynqMP_IPI.cs88 foreach(var gpio in Connections) in Reset()
90 gpio.Value.Unset(); in Reset()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/
DSTM32WBA_GPDMA.cs30 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/
DDevicesConfig.cs390 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()