@lcamtuf I would blame this on the library, why not just have a set_clock function that takes the desired frequency and watchdog status.

Follow

@nothacking @lcamtuf you also specify iiuc what's the source of the clock (external clock, external quartz, internal oscillator?), which clock consumers are clocked (and thus, which peripherals are usable), and potentially more things around clocks that get and that don't get suspended in sleep modes.

(There's some state you are in just after reset and thus usually would just write the difference wrt that state.)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.