Functions | Variables

# cal_inter_rc.c File Reference

This file contains internal oscillator calibration drivers. More...

`#include "config.h"`
`#include "cal_inter_rc.h"`
`#include "lib_mcu/temp_sensor/temp_sensor.h"`
`#include "lib_mcu/flash/flash_drv.h"`
`#include "lib_mcu/adc/adc_drv.h"`
Include dependency graph for cal_inter_rc.c:

Go to the source code of this file.

## Functions
void | get_cal_values (void)
| This function get the calibration values.
void | calibrate_inter_osc (enum vcc v)
| This function update the OSCCAL value following the temperature and the voltage.
## Variables
U8 | osc_cal_25_3v
U8 | osc_cal_85_3v
U8 | osc_cal_25_5v
U8 | offset
U16 | temp_sensor_25
U16 | temp_sensor_85
U8 | n_step
U8 | period
U16 | temp_value

## Detailed Description

This file contains internal oscillator calibration drivers.

- 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 cal_inter_rc.c.

## Variable Documentation

U8 osc_cal_25_3v

Definition at line 63 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U8 osc_cal_85_3v

Definition at line 64 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U8 osc_cal_25_5v

Definition at line 65 of file cal_inter_rc.c.

Referenced by get_cal_values().

U8 offset

Definition at line 66 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U16 temp_sensor_25

Definition at line 67 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U16 temp_sensor_85

Definition at line 68 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U8 n_step

Definition at line 69 of file cal_inter_rc.c.

Referenced by get_cal_values().

U8 period

Definition at line 70 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc(), and get_cal_values().

U16 temp_value

Definition at line 71 of file cal_inter_rc.c.

Referenced by calibrate_inter_osc().