WILC1000 AT Commands Example.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "osprintf.h"
#include "application.h"
#include "at_cmd_handler/at_cmd_Handler.h"
Macros | |
#define | ALL_INTERRUPT_MASK 0xffffffff |
All interrupt mask. More... | |
#define | CMD_HANDLER_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | CMD_HANDLER_STACK_SIZE (4096 / sizeof(portSTACK_TYPE)) |
#define | STRING_EOL "\r\n" |
#define | STRING_HEADER |
#define | WILC_TASK1_PRIORITY (tskIDLE_PRIORITY + 2) |
#define | WILC_TASK1_STACK_SIZE (8192 / 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) |
void | HardFault_Handler (void) |
int | main (void) |
Main application function. More... | |
void | vApplicationMallocFailedHook (void) |
void | vApplicationStackOverflowHook (xTaskHandle pxTask, signed char *pcTaskName) |
Variables | |
static uint32_t | fault_addr |
#define ALL_INTERRUPT_MASK 0xffffffff |
All interrupt mask.
Referenced by configure_console().
#define CMD_HANDLER_PRIORITY (tskIDLE_PRIORITY + 1) |
Referenced by main().
#define CMD_HANDLER_STACK_SIZE (4096 / sizeof(portSTACK_TYPE)) |
Referenced by main().
#define STRING_EOL "\r\n" |
#define STRING_HEADER |
Referenced by main().
#define WILC_TASK1_PRIORITY (tskIDLE_PRIORITY + 2) |
Referenced by main().
#define WILC_TASK1_STACK_SIZE (8192 / sizeof(portSTACK_TYPE)) |
Referenced by main().
Configure UART console.
References ALL_INTERRUPT_MASK, uart_rs232_options::baudrate, CONF_STDIO_BAUDRATE, CONF_STDIO_CHAR_LENGTH, CONF_STDIO_PARITY, CONF_STDIO_STOP_BITS, CONF_STDIO_USART_MODULE, CONF_UART, CONSOLE_UART_ID, osprintf_init(), sysclk_enable_peripheral_clock(), uart_disable_interrupt(), uart_enable_interrupt(), uart_enable_rx(), uart_enable_tx(), and UART_IRQn.
Referenced by main().
void fatal | ( | int | code, |
const char * | msg | ||
) |
void hard_fault | ( | uint32_t * | args, |
uint32_t | lr | ||
) |
References fault_addr, and osprintf().
int main | ( | void | ) |
Main application function.
Application entry point.
References board_init(), cmd_handler(), CMD_HANDLER_PRIORITY, CMD_HANDLER_STACK_SIZE, configure_console(), STRING_HEADER, sysclk_init(), vTaskStartScheduler(), WILC_TASK1_PRIORITY, WILC_TASK1_STACK_SIZE, wilc_task_1(), and xTaskCreate.
Referenced by pvPortMalloc().
void vApplicationStackOverflowHook | ( | xTaskHandle | pxTask, |
signed char * | pcTaskName | ||
) |
References M2M_ERR.
|
static |
Referenced by hard_fault().