60 #ifndef CLKSYS_DRIVER_H 61 #define CLKSYS_DRIVER_H 81 #define CLKSYS_Enable( _oscSel ) ( OSC.CTRL |= (_oscSel) ) 94 #define CLKSYS_IsReady( _oscSel ) ( OSC.STATUS & (_oscSel) ) 101 #define CLKSYS_RTC_ClockSource_Disable() ( CLK.RTCCTRL &= ~CLK_RTCEN_bm ) 108 #define CLKSYS_AutoCalibration_Disable( _clk ) ( (_clk).CALA &= ~DFLL_ENABLE_bm ) 114 OSC_XOSCSEL_t xoscModeSelection );
118 CLK_PSBCDIV_t PSBCfactor );
void CLKSYS_Prescalers_Config(CLK_PSADIV_t PSAfactor, CLK_PSBCDIV_t PSBCfactor)
This function changes the prescaler configuration.
void CLKSYS_XOSC_FailureDetection_Enable(void)
This function enables the External Oscillator Failure Detection (XOSCFD) feature. ...
void CLKSYS_PLL_Config(OSC_PLLSRC_t clockSource, uint8_t factor)
This function configures the internal high-frequency PLL.
void CLKSYS_AutoCalibration_Enable(uint8_t clkSource, bool extReference)
This function enables automatic calibration of the selected internal oscillator.
void CLKSYS_RTC_ClockSource_Enable(CLK_RTCSRC_t clockSource)
This function selects a Real-Time Counter clock source.
void CLKSYS_XOSC_Config(OSC_FRQRANGE_t freqRange, bool lowPower32kHz, OSC_XOSCSEL_t xoscModeSelection)
This function configures the external oscillator.
uint8_t CLKSYS_Disable(uint8_t oscSel)
This function disables the selected oscillator.
void CLKSYS_Configuration_Lock(void)
This function lock the entire clock system configuration.
uint8_t CLKSYS_Main_ClockSource_Select(CLK_SCLKSEL_t clockSource)
This function selects the main system clock source.