Microchip® Advanced Software Framework

example.c File Reference

QTouch component example with I2C interface.

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

#include "asf.h"
#include "conf_example.h"
#include "string.h"

Functions

static void configure_console (void)
 Configure serial console. More...
 
static void init_interface (void)
 Initialize TWI communication interface. More...
 
int main (void)
 Main entry point for QTouch component example. More...
 

Variables

struct qt_setup_block setup_block
 Storage for QT setup block. More...
 
struct qt_status status
 Storage for QT status. More...
 

static void configure_console ( void  )
static

Configure serial console.

References uart_rs232_options::baudrate, CONF_UART, CONF_UART_BAUDRATE, CONF_UART_PARITY, and stdio_serial_init().

Referenced by main().

static void init_interface ( void  )
static

Initialize TWI communication interface.

References BOARD_QT_TWI_INSTANCE, twi_options::speed, and twi_master_setup().

Referenced by main().

struct qt_setup_block setup_block

Storage for QT setup block.

Referenced by main().

struct qt_status status