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

Function rt_clk_get_array

components/drivers/clk/clk.c:1088–1097  ·  view source on GitHub ↗

* @brief Get clock array pointer from ofw device node * * @param dev point to dev * * @return struct rt_clk_array* if use ofw and under normal circumstance, it will return clock array pointer and other value is RT_NULL */

Source from the content-addressed store, hash-verified

1086 clock array pointer and other value is RT_NULL
1087 */
1088struct rt_clk_array *rt_clk_get_array(struct rt_device *dev)
1089{
1090 struct rt_clk_array *clk_arr = RT_NULL;
1091
1092#ifdef RT_USING_OFW
1093 clk_arr = rt_ofw_get_clk_array(dev->ofw_node);
1094#endif
1095
1096 return clk_arr;
1097}
1098
1099/**
1100 * @brief Get clock pointer from ofw device node by index

Callers

nothing calls this directly

Calls 1

rt_ofw_get_clk_arrayFunction · 0.85

Tested by

no test coverage detected