00001 #ifndef _USB_TASK_H_
00002 #define _USB_TASK_H_
00003
00004 #include "usb_commun.h"
00005
00006 #define Wait_pll_ready() while (!(PLLCSR & (1<<PLOCK)))
00007
00008
00009 #define PLLx06 ( (0<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) )
00010
00011 #define Start_pll(clockfactor) (PLLCSR = ( clockfactor | (1<<PLLE) ))
00012
00013
00014
00015
00016 #define Is_pll_ready() (PLLCSR & (1<<PLOCK) )
00018 #define Stop_pll() (PLLCSR &= (~(1<<PLLE)),PLLCSR=0 )
00020 #define Pll_start_auto() Start_pll(PLLx06)
00021
00022
00023
00024
00025 void USB_Inicializar (void);
00026
00027
00028 #endif
00029