MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pin_get

Function rt_pin_get

components/drivers/pin/dev_pin.c:165–174  ·  view source on GitHub ↗

Get pin number by name, such as PA.0, P0.12 */

Source from the content-addressed store, hash-verified

163
164/* Get pin number by name, such as PA.0, P0.12 */
165rt_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>

Callers 15

_pin_cmd_convFunction · 0.85
_pin_cmd_print_usageFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
sd_mountFunction · 0.85
rt_hw_gt911_registerFunction · 0.85
icu_sampleFunction · 0.85
qe_touch_mainFunction · 0.85
hal_entryFunction · 0.85
icu_sampleFunction · 0.85
rt_hw_gt911_registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected