Microchip® Advanced Software Framework

pdca_example.c File Reference
#include <asf.h>
#include "conf_example.h"
#include "ascii_anim1.h"
#include "ascii_anim2.h"

Macros

#define PDCA_CHANNEL_USART_EXAMPLE   0
 The channel instance for the USART example, here PDCA channel 0 (highest priority). More...
 

Functions

int main (void)
 The given example is a transfer of an ASCII animation stored in internal flash to the USART_0 output (57600 bps/8 data bits/no parity bit/1 stop bit/no flow control) More...
 
static void pdca_set_irq (void)
 The PDCA interrupt handler. More...
 

Variables

volatile bool animation_high_section = false
 Counter for interrupt test. More...
 
const char ascii_anim1 []
 String for ASCII animation: this is the first part of the ASCII animation. More...
 
const char ascii_anim2 []
 String for ASCII animation: this is the second and final part of the ASCII animation. More...
 

#define PDCA_CHANNEL_USART_EXAMPLE   0

The channel instance for the USART example, here PDCA channel 0 (highest priority).

Referenced by main().

static void pdca_set_irq ( void  )
static

The PDCA interrupt handler.

The handler reload the PDCA settings with the correct ASCII animation address and size using the reload register. The interrupt will happen each time half of the animation is played.Init interrupt controller and register pdca_int_handler interrupt.

References Enable_global_interrupt.

Referenced by main().

volatile bool animation_high_section = false

Counter for interrupt test.

const char ascii_anim1[]
Initial value:
=
# 104 "/Jenkins/workspace/check-IS-asf-main-build-doxygen-linux-idc/source/avr32/drivers/pdca/example/pdca_example.c" 2

String for ASCII animation: this is the first part of the ASCII animation.

Referenced by main().

const char ascii_anim2[]
Initial value:
=
# 110 "/Jenkins/workspace/check-IS-asf-main-build-doxygen-linux-idc/source/avr32/drivers/pdca/example/pdca_example.c" 2

String for ASCII animation: this is the second and final part of the ASCII animation.