Functions

# main.c File Reference

Main for USB application. More...

`#include "config.h"`
`#include "modules/scheduler/scheduler.h"`
`#include "lib_mcu/wdt/wdt_drv.h"`
`#include "lib_mcu/power/power_drv.h"`
`#include "lib_mcu/usb/usb_drv.h"`
`#include "lib_mcu/util/start_boot.h"`
`#include "lib_mcu/flash/flash_drv.h"`
`#include "lib_mcu/cal_inter_rc/cal_inter_rc.h"`
`#include "lib_mcu/adc/adc_drv.h"`
Include dependency graph for main.c:

Go to the source code of this file.

## Functions
int | main (void)
Procedure to speed up the startup code
This one increment the CPU clock before RAM initialisation
char | __low_level_init ()

## Detailed Description

Main for USB application.

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

## Function Documentation

int main | ( | void | ) |

Definition at line 109 of file main.c.

References calibrate_inter_osc(), Clear_prescaler, init_adc(), scheduler(), start_boot_if_required(), Usb_enable_regulator, vcc_5, and wdtdrv_disable().

    {
      init_adc();
      calibrate_inter_osc(vcc_5);
       Usb_enable_regulator();
       wdtdrv_disable();
       start_boot_if_required();
       Clear_prescaler();
       scheduler();
       return 0;
    }

Here is the call graph for this function:

char __low_level_init | ( | ) |

Definition at line 133 of file main.c.

References Clear_prescaler.

    {
      Clear_prescaler();
      return 1;
    }