Microchip® Advanced Software Framework

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

IoT Temperature Sensor Demo.

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

#include "asf.h"
#include <string.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

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 temperature 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_temperature_demo/main.c:66

Referenced by main().

int main ( void  )

Main application function.

Start the sensor task then start the scheduler.

Returns
program return value.

References board_init(), 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.

volatile uint32_t ms_ticks = 0

SysTick counter to avoid busy wait delay.

TLS read functionality.

SysTick counter for non busy wait delay.