Microchip® Advanced Software Framework

main21.c File Reference

WINC1500 HTTP provision example.

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

#include "asf.h"
#include "common/include/nm_common.h"
#include "driver/include/m2m_wifi.h"
#include "main.h"

Macros

#define HEX2ASCII(x)   (((x) >= 10) ? (((x) - 10) + 'A') : ((x) + '0'))
 
#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...
 
static void set_dev_name_to_mac (uint8 *name, uint8 *mac_addr)
 
static void wifi_cb (uint8_t u8MsgType, void *pvMsg)
 Callback to get the Wi-Fi status update. More...
 

Variables

static struct usart_module cdc_uart_module
 UART module for debug. More...
 

#define HEX2ASCII (   x)    (((x) >= 10) ? (((x) - 10) + 'A') : ((x) + '0'))

Referenced by set_dev_name_to_mac().

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC1500 HTTP provision example --"STRING_EOL \
"-- "BOARD_NAME " --"STRING_EOL \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define BOARD_NAME
Name string macro.
Definition: samd21_xplained_pro.h:65
#define STRING_EOL
Definition: main21.c:86

Referenced by main().

static void set_dev_name_to_mac ( uint8 name,
uint8 mac_addr 
)
static

References HEX2ASCII, and m2m_strlen().

Referenced by main().

static void wifi_cb ( uint8_t  u8MsgType,
void *  pvMsg 
)
static

struct usart_module cdc_uart_module
static

UART module for debug.

Referenced by configure_console().