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

Function rt_clk_put

components/drivers/clk/clk.c:1171–1178  ·  view source on GitHub ↗

* @brief Put reference count of clock * * @param clk point to clock * */

Source from the content-addressed store, hash-verified

1169 *
1170 */
1171void rt_clk_put(struct rt_clk *clk)
1172{
1173 if (clk)
1174 {
1175 clk_put(clk->clk_np);
1176 clk_free(clk);
1177 }
1178}
1179
1180#ifdef RT_USING_OFW
1181/**

Callers 4

rt_clk_array_putFunction · 0.85
dw8250_free_resourceFunction · 0.85
rk_timer_probeFunction · 0.85

Calls 2

clk_freeFunction · 0.85
clk_putFunction · 0.70

Tested by

no test coverage detected