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

Function reset_free

components/drivers/reset/reset.c:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static void reset_free(struct rt_reset_control *rstc)
218{
219 if (rstc->is_array)
220 {
221 struct reset_control_array *rstc_arr = reset_control_to_array(rstc);
222
223 for (int i = 0; i < rstc_arr->count; ++i)
224 {
225 rt_reset_control_put(rstc_arr->rstcs[i]);
226 }
227 }
228
229 rt_free(rstc);
230}
231
232struct rt_reset_control *rt_reset_control_get_array(struct rt_device *dev)
233{

Callers 1

rt_reset_control_putFunction · 0.85

Calls 2

rt_reset_control_putFunction · 0.85
rt_freeFunction · 0.85

Tested by

no test coverage detected