Microchip® Advanced Software Framework

events_example2.c File Reference

SAM Peripheral Event Controller (PEVC) example 2.

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

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

Functions

static void configure_console (void)
 Configure serial console. More...
 
static void init_events (void)
 Initialize the PEVC for the example. More...
 
static void init_pdca (void)
 Initialize the PDCA transfer for the example. More...
 
int main (void)
 Main entry point for event example. More...
 
static void pdca_tranfer_done (enum pdca_channel_status status)
 PDCA transfer interrupt callback. More...
 

Variables

uint8_t event_string [] = "GPIO event triggered PDCA!"
 

static void configure_console ( void  )
static

Configure serial console.

References uart_rs232_options::baudrate, and stdio_serial_init().

Referenced by main().

static void init_pdca ( void  )
static
static void pdca_tranfer_done ( enum pdca_channel_status  status)
static

PDCA transfer interrupt callback.

References event_string, PDCA_CH_TRANSFER_COMPLETED, and pdca_channel_write_reload().

Referenced by init_pdca().

uint8_t event_string[] = "GPIO event triggered PDCA!"