| 44 | } |
| 45 | |
| 46 | static 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 | |
| 52 | static const struct rt_pin_ops ops = |
| 53 | { |
nothing calls this directly
no test coverage detected