Functions

# power_drv.c File Reference

This file contains the Power and clock management driver routines. More...

`#include "config.h"`
`#include "power_drv.h"`
Include dependency graph for power_drv.c:

Go to the source code of this file.

## Functions
void | Set_cpu_prescaler (U8 x)
| This function write the CPU prescaler register to a define value.
void | set_power_down_mode (void)
| This function makes the AVR core enter power down mode.
void | set_idle_mode (void)
| This function makes the AVR core enter idle mode.
void | set_adc_noise_reduction_mode (void)
| This function makes the AVR core enter adc noise reduction mode.
void | set_power_save_mode (void)
| This function makes the AVR core enter power save mode.
void | set_standby_mode (void)
| This function makes the AVR core enter standby mode.
void | set_ext_standby_mode (void)
| This function makes the AVR core enter extended standby mode.
void | Clock_switch_external (void)
| This function makes the AVR selects the EXTERNAL clock source (CRYSTAL)
void | Clock_switch_internal (void)
| This function makes the AVR selects the INTERNAL clock source (RC)

## Detailed Description

This file contains the Power and clock management driver routines.

- Compiler: IAR EWAVR and GNU GCC for AVR
- Supported devices: ATmega32U4

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file power_drv.c.