Microchip® Advanced Software Framework

clock_failure_detector.c File Reference

SAM XOSC32K Runtime Failure Detector Application.

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

#include <asf.h>
#include "conf_example.h"

Macros

#define ENABLE_XOSC32K_CLOCK_OUT   true
 Support and FAQ: visit Microchip Support More...
 

Functions

static void init_osculp32k (void)
 Configures and starts the OSCULP32K internal oscillator. More...
 
static void init_xosc32k (void)
 Configures and starts the XOSC32K external crystal. More...
 
int main (void)
 Main application entry point. More...
 
static void sim_xosc32k_failure (bool connection)
 Simulation xosc32k connect or disconnect. More...
 

#define ENABLE_XOSC32K_CLOCK_OUT   true

Support and FAQ: visit Microchip Support

If true, the XOSC32K clock will be routed out to GPIO pin

static void init_osculp32k ( void  )
static
static void sim_xosc32k_failure ( bool  connection)
static

Simulation xosc32k connect or disconnect.

Simulation xosc32k connect or disconnect

Parameters
[in]connectiontrue represent xosc32k is connected

References system_clock_source_is_ready(), and SYSTEM_CLOCK_SOURCE_XOSC32K.

Referenced by main().