| 35 | |
| 36 | |
| 37 | void ls1c_pin_write(struct rt_device *device, rt_base_t pin, rt_uint8_t value) |
| 38 | { |
| 39 | unsigned int gpio = pin; |
| 40 | |
| 41 | if (PIN_LOW == value) |
| 42 | { |
| 43 | gpio_set(gpio, gpio_level_low); |
| 44 | } |
| 45 | else |
| 46 | { |
| 47 | gpio_set(gpio, gpio_level_high); |
| 48 | } |
| 49 | |
| 50 | return ; |
| 51 | } |
| 52 | |
| 53 | |
| 54 | rt_ssize_t ls1c_pin_read(struct rt_device *device, rt_base_t pin) |
nothing calls this directly
no test coverage detected