Microchip® Advanced Software Framework

common/components/wifi/winc3400/mode_sta_bypass_example/main.c File Reference

WINC3400 Station Bypass Mode Example.

Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "main.h"
#include <string.h>
#include "driver/include/m2m_wifi.h"
#include "driver/source/nmasic.h"
#include "osprintf.h"
#include "sta.h"

Macros

#define STRING_EOL   "\r\n"
 
#define STRING_HEADER
 
#define TASK_AP_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define TASK_AP_STACK_SIZE   (1024 / sizeof(portSTACK_TYPE))
 
#define TASK_STA_PRIORITY   (tskIDLE_PRIORITY + 1)
 
#define TASK_STA_STACK_SIZE   (4096 / sizeof(portSTACK_TYPE))
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
void fatal (int code, const char *msg)
 
void hard_fault (uint32_t *args, uint32_t lr)
 
int main (void)
 Main application function. More...
 

Variables

static uint32_t fault_addr
 

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- WINC3400 in ByPass Mode example --"STRING_EOL \
"-- "BOARD_NAME " --"STRING_EOL \
"-- Compiled: "__DATE__ " "__TIME__ " --"STRING_EOL
#define BOARD_NAME
Definition: inc/app_init.h:140
#define STRING_EOL
Definition: common/components/wifi/winc3400/mode_sta_bypass_example/main.c:95

Referenced by main().

#define TASK_AP_PRIORITY   (tskIDLE_PRIORITY + 1)
#define TASK_AP_STACK_SIZE   (1024 / sizeof(portSTACK_TYPE))
#define TASK_STA_PRIORITY   (tskIDLE_PRIORITY + 1)

Referenced by main().

#define TASK_STA_STACK_SIZE   (4096 / sizeof(portSTACK_TYPE))

Referenced by main().

static void configure_console ( void  )
static

Configure UART console.

References uart_rs232_options::baudrate, osprintf_init(), and sysclk_enable_peripheral_clock().

Referenced by main().

void fatal ( int  code,
const char *  msg 
)
void hard_fault ( uint32_t *  args,
uint32_t  lr 
)
int main ( void  )

Main application function.

Application entry point.

Returns
program return value.

References board_init(), configure_console(), sta_task(), STRING_HEADER, sysclk_init(), TASK_STA_PRIORITY, TASK_STA_STACK_SIZE, vTaskStartScheduler(), and xTaskCreate.

uint32_t fault_addr
static