#include "usb_commun.h"
Ir al código fuente de este archivo.
Definiciones | |
#define | Wait_pll_ready() while (!(PLLCSR & (1<<PLOCK))) |
#define | PLLx06 ( (0<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) ) |
#define | Start_pll(clockfactor) (PLLCSR = ( clockfactor | (1<<PLLE) )) |
#define | Is_pll_ready() (PLLCSR & (1<<PLOCK) ) |
#define | Stop_pll() (PLLCSR &= (~(1<<PLLE)),PLLCSR=0 ) |
#define | Pll_start_auto() Start_pll(PLLx06) |
Funciones | |
void | USB_Inicializar (void) |
#define Is_pll_ready | ( | ) | (PLLCSR & (1<<PLOCK) ) |
#define Pll_start_auto | ( | ) | Start_pll(PLLx06) |
Stop the PLL.
#define PLLx06 ( (0<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) ) |
#define Start_pll | ( | clockfactor | ) | (PLLCSR = ( clockfactor | (1<<PLLE) )) |
#define Stop_pll | ( | ) | (PLLCSR &= (~(1<<PLLE)),PLLCSR=0 ) |
return 1 when PLL locked
#define Wait_pll_ready | ( | ) | while (!(PLLCSR & (1<<PLOCK))) |
void USB_Inicializar | ( | void | ) |