Searched refs:gpio2 (Results 1 – 2 of 2) sorted by relevance
/qemu/tests/qtest/ |
H A D | stm32l4x5_gpio-test.c | 375 uint32_t gpio2 = GPIO_BASE_ADDR + (GPIO_H - gpio); in test_push_pull() local 388 gpio_set_irq(gpio2, pin, 0); in test_push_pull() 389 gpio_set_bit(gpio2, ODR, pin, 1); in test_push_pull() 390 gpio_set_2bits(gpio2, MODER, pin, MODER_OUTPUT); in test_push_pull() 391 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull() 392 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull() 400 gpio_set_irq(gpio2, pin, 0); in test_push_pull() 401 g_assert_cmphex(get_disconnected_pins(gpio2), ==, 0xFFFF); in test_push_pull() 402 g_assert_cmphex(gpio_readl(gpio2, IDR), ==, reset(gpio2, IDR) | (1 << pin)); in test_push_pull() 406 gpio_writel(gpio2, ODR, reset(gpio2, ODR)); in test_push_pull() [all …]
|
/qemu/hw/arm/ |
H A D | realview.c | 86 DeviceState *dev, *sysctl, *gpio2, *pl041; in realview_init() local 246 gpio2 = sysbus_create_simple("pl061", 0x10015000, pic[8]); in realview_init() 264 qdev_get_gpio_in(gpio2, 1)); in realview_init() 268 qemu_irq_invert(qdev_get_gpio_in(gpio2, 0))); in realview_init()
|