xiaoxiang781216 commented on PR #17276: URL: https://github.com/apache/nuttx/pull/17276#issuecomment-3494437129
> Hello all, > > Maybe it's best if I wait for the documentation, but still. There is already work done in drivers/clk, which defines clk_s and clk_ops_s, though I do not know anything more about them. This ClockDevice seems to only talk about timers. Is there plan to also cover the work of drivers/clk? Or can we make it cover drivers/clk? It's a bit confusing using ClockDevice name without relating to drivers/clk. > > Thanks. it's different subsystem: - drivers/clk is for changing your peripheral(uart, spi, even timer) working clock frequency/phase etc. - drivers/timer is for getting the current timestamp and trigger callback on the specific interval. since clk subsystem design principle is same as Linux counterpart, so you can learn from Linux doc too: https://docs.kernel.org/driver-api/clk.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
