| 102 | } |
| 103 | |
| 104 | rt_err_t rt_pin_attach_irq(rt_base_t pin, rt_uint8_t mode, |
| 105 | void (*hdr)(void *args), void *args) |
| 106 | { |
| 107 | RT_ASSERT(_hw_pin.ops != RT_NULL); |
| 108 | if (_hw_pin.ops->pin_attach_irq) |
| 109 | { |
| 110 | return _hw_pin.ops->pin_attach_irq(&_hw_pin.parent, pin, mode, hdr, args); |
| 111 | } |
| 112 | return -RT_ENOSYS; |
| 113 | } |
| 114 | |
| 115 | rt_err_t rt_pin_detach_irq(rt_base_t pin) |
| 116 | { |
no outgoing calls