Microchip® Advanced Software Framework

example_usart.c File Reference

Example of usage of the maXTouch component with USART.

This example shows how to receive touch data from a maXTouch device using the maXTouch component, and display them in a terminal window by using the USART driver.

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

#include <asf.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "conf_board.h"
#include "conf_example.h"
#include "conf_usart_serial.h"

Macros

#define MAX_ENTRIES   3
 
#define STRING_LENGTH   40
 
#define USART_TX_MAX_LENGTH   0xff
 

Functions

int main (void)
 
void mxt_handler (struct mxt_device *device)
 
static void mxt_init (struct mxt_device *device)
 Set maXTouch configuration. More...
 

#define MAX_ENTRIES   3

Referenced by mxt_handler().

#define STRING_LENGTH   40

Referenced by mxt_handler().

#define USART_TX_MAX_LENGTH   0xff

static void mxt_init ( struct mxt_device device)
static