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

Function clk_free

components/drivers/clk/clk.c:107–117  ·  view source on GitHub ↗

* @brief Free memory space of clock object * * @param clk point to clock * */

Source from the content-addressed store, hash-verified

105 *
106 */
107static void clk_free(struct rt_clk *clk)
108{
109 struct rt_clk_node *clk_np = clk->clk_np;
110
111 if (clk_np && clk_np->ops->finit)
112 {
113 clk_np->ops->finit(clk);
114 }
115
116 rt_free(clk);
117}
118
119/**
120 * @brief Allocate memory space and creat clock object

Callers 3

clk_createFunction · 0.85
rt_clk_unregisterFunction · 0.85
rt_clk_putFunction · 0.85

Calls 1

rt_freeFunction · 0.85

Tested by

no test coverage detected