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

Function clk_set_parent

components/drivers/clk/clk.c:190–199  ·  view source on GitHub ↗

* @brief Set parent clock * * @param clk_np point to clock node * @param parent_np point to parent rt_clk * */

Source from the content-addressed store, hash-verified

188 *
189 */
190static void clk_set_parent(struct rt_clk_node *clk_np, struct rt_clk_node *parent_np)
191{
192 rt_hw_spin_lock(&_clk_lock.lock);
193
194 clk_np->parent = parent_np;
195
196 rt_list_insert_after(&parent_np->children_nodes, &clk_np->list);
197
198 rt_hw_spin_unlock(&_clk_lock.lock);
199}
200
201static const struct rt_clk_ops unused_clk_ops =
202{

Callers 1

rt_clk_registerFunction · 0.70

Calls 3

rt_list_insert_afterFunction · 0.85
rt_hw_spin_lockFunction · 0.50
rt_hw_spin_unlockFunction · 0.50

Tested by

no test coverage detected