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

Go to the source code of this file.

Functions

int main (void)


Detailed Description

Main for USB application.

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

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

00112 {
00113 
00114   Usb_enable_regulator();
00115 
00116 #ifndef  __GNUC__
00117    Wdt_off();
00118 #else
00119    wdt_reset();
00120    Wdt_clear_flag();
00121    Wdt_change_enable();
00122    Wdt_stop();
00123 #endif
00124    Clear_prescaler();
00125    scheduler();
00126    return 1;
00127 }

Here is the call graph for this function:


Generated on Mon May 5 15:58:02 2008 for ATMEL by  doxygen 1.5.1-p1