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

Function _pin_cmd_print_usage

components/drivers/pin/dev_pin.c:191–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static void _pin_cmd_print_usage(void)
192{
193 rt_kprintf("pin [option] GPIO\n");
194 rt_kprintf(" num: get pin number from hardware pin\n");
195 rt_kprintf(" mode: set pin mode to output/input/input_pullup/input_pulldown/output_od\n");
196 rt_kprintf(" e.g. MSH >pin mode GPIO output\n");
197 rt_kprintf(" read: read pin level of hardware pin\n");
198 rt_kprintf(" e.g. MSH >pin read GPIO\n");
199 rt_kprintf(" write: write pin level(high/low or on/off) to hardware pin\n");
200 rt_kprintf(" e.g. MSH >pin write GPIO high\n");
201 rt_kprintf(" help: this help list\n");
202 rt_kprintf("GPIO e.g.:");
203 rt_pin_get(" ");
204}
205
206/* e.g. MSH >pin num PA.16 */
207static void _pin_cmd_get(int argc, char *argv[])

Callers 5

_pin_cmd_getFunction · 0.85
_pin_cmd_modeFunction · 0.85
_pin_cmd_readFunction · 0.85
_pin_cmd_writeFunction · 0.85
_pin_cmdFunction · 0.85

Calls 2

rt_kprintfFunction · 0.85
rt_pin_getFunction · 0.85

Tested by

no test coverage detected