Microchip® Advanced Software Framework

pevc_example3.c File Reference
#include <avr32/io.h>
#include <stdio.h>
#include "compiler.h"
#include "print_funcs.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "twim.h"
#include "gpio.h"
#include "pdca.h"
#include "cycle_counter.h"
#include "flashc.h"
#include "at42qt1060.h"
#include "conf_at42qt1060.h"
#include "pevc.h"

Macros

#define FCPU_HZ   60000000
 
#define FPBA_HZ   60000000
 
#define PDCA_CHANNEL_IRQ   AVR32_PDCA_IRQ_0
 
#define PDCA_CHANNEL_USART   0
 The PDCA channel instance for the USART0 Tx. More...
 
#define PEVC_PDCA_SOT_USER   AVR32_PEVC_ID_USER_PDCA_0
 
#define STRING_TRANSFER_SIZE   36
 

Functions

void init_pdca (void)
 
void init_pevc (void)
 Init PEVC Toggle LED when the Busy pin change. More...
 
 ISR (pdca_int_handler, AVR32_PDCA_IRQ_GROUP0, 0)
 PDCA Interrupts handler. More...
 
 ISR (pevc_int_handler, AVR32_PEVC_IRQ_GROUP, 0)
 PEVC overrun and trigger Interrupt handler. More...
 
int main (void)
 
static void twi_init (void)
 Initializes the TWI for AT42QT1060. More...
 

Variables

unsigned char aDataTransfered [STRING_TRANSFER_SIZE]
 
volatile avr32_pdca_channel_t * pdca_channel
 
volatile avr32_pevc_t * ppevc = &AVR32_PEVC
 
volatile bool touch_detect = false
 
static volatile U32 u32PdcaIsr
 

#define FCPU_HZ   60000000

Referenced by init_usart(), and main().

#define PDCA_CHANNEL_IRQ   AVR32_PDCA_IRQ_0

Referenced by init_pdca().

#define PDCA_CHANNEL_USART   0

The PDCA channel instance for the USART0 Tx.

Referenced by init_pdca(), and ISR().

#define PEVC_PDCA_SOT_USER   AVR32_PEVC_ID_USER_PDCA_0

Referenced by init_pevc().

#define STRING_TRANSFER_SIZE   36

ISR ( pdca_int_handler  ,
AVR32_PDCA_IRQ_GROUP0  ,
 
)

unsigned char aDataTransfered[STRING_TRANSFER_SIZE]

Referenced by init_pdca(), ISR(), main(), and pdca_int_handler().

volatile avr32_pevc_t* ppevc = &AVR32_PEVC

Referenced by init_pdca(), init_pevc(), and ISR().

volatile bool touch_detect = false
volatile U32 u32PdcaIsr
static

Referenced by ISR().