Microchip® Advanced Software Framework

pll.c File Reference

Chip-specific PLL implementation.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include <pll.h>

Macros

#define SCIF_UNLOCK_PLL_REG(pll_id)
 

Functions

void pll_config_write (const struct pll_config *cfg, uint32_t pll_id)
 
void pll_disable (uint32_t pll_id)
 
void pll_enable (const struct pll_config *cfg, uint32_t pll_id)
 

#define SCIF_UNLOCK_PLL_REG (   pll_id)
Value:
do { \
SCIF->SCIF_UNLOCK = SCIF_UNLOCK_KEY(0xAAu) \
| SCIF_UNLOCK_ADDR((uint32_t)&SCIF->SCIF_PLL[0].SCIF_PLL \
+ (4 * pll_id) - (uint32_t)SCIF); \
} while (0)

Referenced by pll_config_write(), pll_disable(), and pll_enable().