Microchip® Advanced Software Framework

scif_example3.c File Reference
#include "compiler.h"
#include "preprocessor.h"
#include "board.h"
#include "gpio.h"
#include "power_clocks_lib.h"

Macros

Generic Clock Configuration
#define EXAMPLE_GCLK_ID   AVR32_SCIF_GCLK_DFLL0_SSG
 
#define EXAMPLE_GCLK_PIN   AVR32_SCIF_GCLK_1_0_PIN
 
#define EXAMPLE_GCLK_FUNCTION   AVR32_SCIF_GCLK_1_0_FUNCTION
 

Functions

static void local_start_gc (void)
 Set-up a generic clock at 32kz with the OSC32 as a source, output the generic clock to a pin. More...
 
int main (void)
 

#define EXAMPLE_GCLK_FUNCTION   AVR32_SCIF_GCLK_1_0_FUNCTION

Referenced by local_start_gc().

#define EXAMPLE_GCLK_ID   AVR32_SCIF_GCLK_DFLL0_SSG

Referenced by local_start_gc().

#define EXAMPLE_GCLK_PIN   AVR32_SCIF_GCLK_1_0_PIN

Referenced by local_start_gc().

static void local_start_gc ( void  )
static

Set-up a generic clock at 32kz with the OSC32 as a source, output the generic clock to a pin.

References EXAMPLE_GCLK_FUNCTION, EXAMPLE_GCLK_ID, EXAMPLE_GCLK_PIN, gpio_enable_module_pin(), gpio_tgl_gpio_pin(), i, SCIF_GCCTRL_OSC32K, and scif_start_gclk().

Referenced by main().

int main ( void  )