Weather concurrent and BT demo.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "osprintf.h"
#include "driver/include/m2m_wifi.h"
#include "sta.h"
#include "ap.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 (RTOS API). 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 program function. More... | |
Variables | |
static uint32_t | fault_addr |
uint32_t | ms_ticks = 0 |
SysTick counter to avoid busy wait delay. More... | |
#define STRING_EOL "\r\n" |
#define STRING_HEADER |
Referenced by main().
#define TASK_AP_PRIORITY (tskIDLE_PRIORITY + 1) |
Referenced by main().
#define TASK_AP_STACK_SIZE (1024 / sizeof(portSTACK_TYPE)) |
Referenced by main().
#define TASK_STA_PRIORITY (tskIDLE_PRIORITY + 1) |
Referenced by main().
#define TASK_STA_STACK_SIZE (4096 / sizeof(portSTACK_TYPE)) |
Referenced by main().
|
static |
Configure UART console (RTOS API).
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 | ||
) |
References osprintf().
void HardFault_Handler | ( | void | ) |
int main | ( | void | ) |
Main program function.
References ap_task(), board_init(), configure_console(), sta_task(), STRING_HEADER, sysclk_init(), TASK_AP_PRIORITY, TASK_AP_STACK_SIZE, TASK_STA_PRIORITY, TASK_STA_STACK_SIZE, vTaskStartScheduler(), and xTaskCreate.
|
static |
uint32_t ms_ticks = 0 |
SysTick counter to avoid busy wait delay.