Microchip® Advanced Software Framework

common/components/wifi/winc1500/iot_qtouch_demo/main.c File Reference

IOT QTouch Sensor Demo.

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

#include "asf.h"
#include "stdio_serial.h"
#include "conf_uart_serial.h"
#include "demo.h"

Macros

#define STRING_EOL   "\r\n"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
int main (void)
 Main application function. More...
 
void SysTick_Handler (void)
 SysTick handler used to measure precise delay. More...
 

Variables

static struct usart_module cdc_uart_module
 UART module for debug. More...
 
volatile uint32_t ms_ticks = 0
 SysTick counter to avoid busy wait delay. More...
 

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC1500 IoT Qtouch sensor demo --"STRING_EOL \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: app_init.h:140
#define STRING_EOL
Definition: common/components/wifi/winc1500/iot_qtouch_demo/main.c:65

Referenced by main().

int main ( void  )

Main application function.

Start the sensor task then start the scheduler.

Returns
program return value.

References configure_console(), delay_init(), demo_start(), STRING_HEADER, system_cpu_clock_get_hz(), and system_init().

void SysTick_Handler ( void  )

SysTick handler used to measure precise delay.

References ms_ticks.

struct usart_module cdc_uart_module
static

UART module for debug.

volatile uint32_t ms_ticks = 0

SysTick counter to avoid busy wait delay.

TLS read functionality.

SysTick counter for non busy wait delay.

Referenced by button_press_duration(), demo_start(), getTimeInMillis(), m2m_wifi_socket_handler(), reset_start_time(), run_udp_client(), and SysTick_Handler().