Microchip® Advanced Software Framework

sysclk_auto.h File Reference

Application-specific system clock management to support automatic detection of external oscillator.

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

Functions

External routines required by main.c file and usbc driver
void sysclk_auto_init (void)
 Detects extern OSC frequency and initialize system clocks on it. More...
 
void sysclk_auto_enable_usb (void)
 Enable the USB generic clock. More...
 
void sysclk_auto_disable_usb (void)
 Disable the USB generic clock. More...
 

void sysclk_auto_disable_usb ( void  )

Disable the USB generic clock.

void sysclk_auto_enable_usb ( void  )

Enable the USB generic clock.

Precondition
The USB generic clock must be configured to 48MHz.
void sysclk_auto_init ( void  )

Detects extern OSC frequency and initialize system clocks on it.

Referenced by main().