Microchip® Advanced Software Framework

freqm_example.c File Reference

Frequency Meter Example for SAM4L.

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

#include "asf.h"

Macros

#define GCLK_DIV   1
 
#define GCLK_ID   0
 GENCLK Configuration Value. More...
 
#define GCLK_SOURCE   GENCLK_SRC_CLK_CPU
 
#define STRING_EOL   "\r"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
int main (void)
 Application entry point for freqm example. More...
 

Variables

struct freqm_config g_freqm_cfg
 FREQM configuration. More...
 
struct freqm_dev_inst g_freqm_inst
 FREQM instance. More...
 

#define GCLK_DIV   1

Referenced by main().

#define GCLK_ID   0

GENCLK Configuration Value.

Referenced by main().

#define GCLK_SOURCE   GENCLK_SRC_CLK_CPU

Referenced by main().

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- Freqm Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define STRING_EOL
Definition: freqm_example.c:77
#define BOARD_NAME
Name of the board.
Definition: sam4l_ek.h:47

Referenced by main().

static void configure_console ( void  )
static

struct freqm_config g_freqm_cfg

FREQM configuration.

Referenced by main().

struct freqm_dev_inst g_freqm_inst

FREQM instance.

Referenced by main().