SAMV71 Xplained Ultra Software Package 1.3

main.c File Reference

#include "board.h"
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  WaveformConfiguration

Defines

#define PIN_TC_TIOA_OUT   {PIO_PA0B_TIOA0, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT}
#define PIN_TC_TIOA_IN   {PIO_PD21C_TIOA11, PIOD, ID_PIOD, PIO_PERIPH_C, PIO_DEFAULT}
#define TC_WAVE_BASE   TC0
#define TC_WAVE_ID   ID_TC0
#define TC_WAVE_CHANNEL   0
#define TC_CAPTURE_BASE   TC3
#define TC_CAPTURE_ID   ID_TC11
#define TC_CAPTURE_CHANNEL   2
#define TC_Handler   TC11_Handler
#define TC_IRQn   TC11_IRQn

Functions

void TC_Handler (void)
 Interrupt handler for the TC capture.
int main (void)
 Application entry point for tc_capture_waveform example.

Variables

const uint8_t numConfigurations
const uint32_t divisors [5] = {2, 8, 32, 128, BOARD_MCK / 32768}

Detailed Description

This file contains all the specific code for the tc capture waveform example.

Definition in file main.c.


Function Documentation

int main ( void   ) 

Application entry point for tc_capture_waveform example.

Returns:
Unused (ANSI-C compatibility).

Definition at line 291 of file main.c.

Here is the call graph for this function:


Variable Documentation

const uint8_t numConfigurations
Initial value:
 sizeof(waveformConfigurations) / 
        sizeof(struct WaveformConfiguration)

Number of available wave configurations

Definition at line 167 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines