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

Function reset_simple_reset

components/drivers/reset/reset-simple.c:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static rt_err_t reset_simple_reset(struct rt_reset_control *rstc)
65{
66 rt_err_t err;
67 struct reset_simple *rsts = raw_to_reset_simple(rstc);
68
69 if (!rsts->reset_us)
70 {
71 return -RT_ENOSYS;
72 }
73
74 if ((err = reset_simple_assert(rstc)))
75 {
76 return err;
77 }
78
79 rt_hw_us_delay(rsts->reset_us + (rsts->reset_us >> 1));
80
81 return reset_simple_deassert(rstc);
82}
83
84static int reset_simple_status(struct rt_reset_control *rstc)
85{

Callers

nothing calls this directly

Calls 3

reset_simple_assertFunction · 0.85
reset_simple_deassertFunction · 0.85
rt_hw_us_delayFunction · 0.50

Tested by

no test coverage detected