Microchip® Advanced Software Framework

main21.c File Reference

WINC1500 Chip Information Example.

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

#include "asf.h"
#include "driver/include/m2m_wifi.h"
#include "driver/source/nmasic.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...
 

Variables

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

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC1500 chip information example --"STRING_EOL \
"-- "BOARD_NAME " --"STRING_EOL \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define BOARD_NAME
Name string macro.
Definition: samw25_xplained_pro.h:62
#define STRING_EOL
Definition: main21.c:80

Referenced by main().

int main ( void  )

Main application function.

Application entry point. Initialize board and WINC1500 Wi-Fi module. Display WINC1500 chip id and rf revision id.

Returns
program return value.

References configure_console(), M2M_SUCCESS, m2m_wifi_init(), nm_bsp_init(), nmi_get_chipid(), nmi_get_rfrevid(), STRING_HEADER, and system_init().

struct usart_module cdc_uart_module
static

UART module for debug.

Referenced by configure_console().