Get pin number by name, such as PA.0, P0.12 */
| 163 | |
| 164 | /* Get pin number by name, such as PA.0, P0.12 */ |
| 165 | rt_base_t rt_pin_get(const char *name) |
| 166 | { |
| 167 | RT_ASSERT(_hw_pin.ops != RT_NULL); |
| 168 | |
| 169 | if (_hw_pin.ops->pin_get == RT_NULL) |
| 170 | { |
| 171 | return -RT_ENOSYS; |
| 172 | } |
| 173 | return _hw_pin.ops->pin_get(name); |
| 174 | } |
| 175 | |
| 176 | #ifdef RT_USING_FINSH |
| 177 | #include <string.h> |
no outgoing calls
no test coverage detected