- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# main.c File Reference

`#include "config.h"`
`#include "modules/scheduler/scheduler.h"`
`#include "lib_mcu/wdt/wdt_drv.h"`
`#include "lib_mcu/power/power_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: AT90USB1287, AT90USB1286, AT90USB647, AT90USB646

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 215 of file main.c.

References Clear_prescaler, scheduler(), and wdtdrv_disable().

    00216 {
    00217    wdtdrv_disable();
    00218    Clear_prescaler();
    00219    scheduler();
    00220    return 0;
    00221 }

Here is the call graph for this function:

char __low_level_init | ( |  | ) |

Definition at line 235 of file main.c.

References Clear_prescaler.

    00236 {
    00237   Clear_prescaler();
    00238   return 1;
    00239 }