main.c File Reference

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

Go to the source code of this file.

Functions

void main (void)
char __low_level_init ()


Detailed Description

,vMain for USB/OTG application.

Copyright (c) 2006 Atmel.

Please read file license.txt for copyright notice.

Version:
1.1 at90usb128-otg-dual_role-toggle-1_0_0
Id
main.c,v 1.1 2007/02/16 13:13:10 arobert Exp

Definition in file main.c.


Function Documentation

void main ( void   ) 

Definition at line 74 of file main.c.

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

00075 {
00076 #ifndef  AVRGCC
00077    Wdt_off();
00078 #else
00079    wdt_reset();
00080    Wdt_clear_flag();
00081    Wdt_change_enable();
00082    Wdt_stop();
00083 #endif
00084    Clear_prescaler();
00085    scheduler();
00086 }

Here is the call graph for this function:

char __low_level_init (  ) 

Definition at line 91 of file main.c.

References Clear_prescaler.

00092 {
00093   Clear_prescaler();
00094   return 1;
00095 }


Generated on Mon Feb 19 09:31:50 2007 for Atmel by  doxygen 1.5.1-p1