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

- File List
- Globals

# main.c File Reference

,vMain 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 dependency graph for main.c:

Go to the source code of this file.

## Functions
void | main (void)

## Detailed Description

,vMain for USB application.

Copyright (c) 2006 Atmel.

Please read file license.txt for copyright notice.

Version:
  1.2 at90usb162-2enum-mouse_ms-1_0_1
  Id
    main.c,v 1.2 2007/02/15 12:50:17 arobert Exp

Definition in file main.c.

## Function Documentation

void main | ( | void |  | ) |

Definition at line 54 of file main.c.

References Clear_prescaler, scheduler(), Usb_enable_regulator, Wdt_change_enable, Wdt_clear_flag, Wdt_off, and Wdt_stop.

    00055 {
    00056
    00057   Usb_enable_regulator();
    00058
    00059 #ifndef  AVRGCC
    00060    Wdt_off();
    00061 #else
    00062    wdt_reset();
    00063    Wdt_clear_flag();
    00064    Wdt_change_enable();
    00065    Wdt_stop();
    00066 #endif
    00067    Clear_prescaler();
    00068
    00069    scheduler();
    00070 }

Here is the call graph for this function: