DOKK / manpages / debian 12 / avr-libc / power.h.3avr.en
power.h(3avr) avr-libc power.h(3avr)

power.h


#define clock_prescale_get() (clock_div_t)(CLKPR & (uint8_t)((1<<CLKPS0)|(1<<CLKPS1)|(1<<CLKPS2)|(1<<CLKPS3)))


static __inline void __attribute__ ((__always_inline__)) __power_all_enable()
void clock_prescale_set (clock_div_t __x)

Gets and returns the clock prescaler register setting. The return type is clock_div_t.

Note

For device with XTAL Divide Control Register (XDIV), return can actually range from 1 to 129. Care should be taken has the return value could differ from the typedef enum clock_div_t. This should only happen if clock_prescale_set was previously called with a value other than those defined by clock_div_t.

Generated automatically by Doxygen for avr-libc from the source code.

Fri Jan 7 2022 Version 2.0.0