| 52 | |
| 53 | |
| 54 | rt_ssize_t ls1c_pin_read(struct rt_device *device, rt_base_t pin) |
| 55 | { |
| 56 | unsigned int gpio = pin; |
| 57 | rt_ssize_t value = PIN_LOW; |
| 58 | |
| 59 | if (0 == gpio_get(gpio)) |
| 60 | { |
| 61 | value = PIN_LOW; |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | value = PIN_HIGH; |
| 66 | } |
| 67 | |
| 68 | return value; |
| 69 | } |
| 70 | |
| 71 | rt_err_t ls1c_pin_attach_irq(struct rt_device *device, rt_base_t pin, |
| 72 | rt_uint8_t mode, void (*hdr)(void *args), void *args) |
nothing calls this directly
no test coverage detected