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

int main (void)


Detailed Description

,vMain for USB application.

Copyright (c) 2006 Atmel.

Please read file license.txt for copyright notice.

Version:
1.2 at90usb162-cdc-1_0_1
Id
main.c,v 1.2 2007/02/15 12:49:13 arobert Exp

Definition in file main.c.


Function Documentation

int main ( void   ) 

Definition at line 66 of file main.c.

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

00067 {
00068 
00069   Usb_enable_regulator();
00070 
00071 #ifndef  AVRGCC
00072    Wdt_off();
00073 #else
00074    wdt_reset();
00075    Wdt_clear_flag();
00076    Wdt_change_enable();
00077    Wdt_stop();
00078 #endif
00079    Clear_prescaler();
00080    scheduler();
00081    return 0;
00082 }

Here is the call graph for this function:


Generated on Fri Jun 15 14:15:37 2007 for Atmel by  doxygen 1.5.1-p1