MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pico_pin_read

Function pico_pin_read

bsp/raspberry-pico/Drivers/drv_gpio.c:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static rt_ssize_t pico_pin_read(struct rt_device *device, rt_base_t pin)
47{
48 RT_ASSERT((0 <= pin) && (pin < NUM_BANK0_GPIOS));
49 return (gpio_get(pin)? PIN_HIGH : PIN_LOW);
50}
51
52static const struct rt_pin_ops ops =
53{

Callers

nothing calls this directly

Calls 1

gpio_getFunction · 0.50

Tested by

no test coverage detected