Microchip® Advanced Software Framework

mode_change_example/main21.c File Reference

WINC1500 Mode Change Example.

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

#include "asf.h"
#include "main.h"
#include "driver/include/m2m_wifi.h"
#include "driver/source/nmasic.h"

Macros

#define DELAY_FOR_MODE_CHANGE   (500)
 
#define HOLD_TIME_IN_MODE   (30000)
 
#define STRING_EOL   "\r\n"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
static int8_t enable_disable_ap_mode (void)
 AP mode. More...
 
int main (void)
 Main application function. More...
 

Variables

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

#define DELAY_FOR_MODE_CHANGE   (500)

Referenced by main().

#define HOLD_TIME_IN_MODE   (30000)

Referenced by enable_disable_ap_mode().

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC1500 mode change example --"STRING_EOL \
"-- "BOARD_NAME " --"STRING_EOL \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define BOARD_NAME
Definition: app_init.h:140
#define STRING_EOL
Definition: mode_change_example/main21.c:88

Referenced by main().

static int8_t enable_disable_ap_mode ( void  )
static
int main ( void  )

Main application function.

Application entry point.

Returns
program return value.

Station mode. Device started as station mode basically.

AP mode. On and off AP mode.

References configure_console(), DELAY_FOR_MODE_CHANGE, enable_disable_ap_mode(), M2M_SUCCESS, m2m_wifi_init(), nm_bsp_init(), nm_bsp_sleep(), STRING_HEADER, and system_init().

struct usart_module cdc_uart_module
static

UART module for debug.