Defines | |
#define | PLLx06 ( (0<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) ) |
#define | Start_pll(clockfactor) (PLLCSR = ( clockfactor | (1<<PLLE) )) |
#define | Is_pll_ready() (PLLCSR & (1<<PLOCK) ) |
return 1 when PLL locked | |
#define | Wait_pll_ready() while (!(PLLCSR & (1<<PLOCK))) |
Test PLL lock bit and wait until lock is set. | |
#define | Stop_pll() (PLLCSR &= (~(1<<PLLE)),PLLCSR=0 ) |
Stop the PLL. |
#define Start_pll | ( | clockfactor | ) | (PLLCSR = ( clockfactor | (1<<PLLE) )) |
#define Is_pll_ready | ( | ) | (PLLCSR & (1<<PLOCK) ) |
return 1 when PLL locked
Definition at line 82 of file pll_drv.h.
Referenced by usb_general_interrupt(), and usb_generate_remote_wakeup().
#define Wait_pll_ready | ( | ) | while (!(PLLCSR & (1<<PLOCK))) |
Test PLL lock bit and wait until lock is set.
Definition at line 84 of file pll_drv.h.
Referenced by usb_device_task(), usb_general_interrupt(), usb_generate_remote_wakeup(), and usb_start_device().
#define Stop_pll | ( | ) | (PLLCSR &= (~(1<<PLLE)),PLLCSR=0 ) |