Weather concurrent and BT demo.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
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... | |
void | vApplicationMallocFailedHook (void) |
void | vApplicationStackOverflowHook (xTaskHandle pxTask, signed char *pcTaskName) |
Variables | |
static uint32_t | fault_addr |
uint32_t | ms_ticks = 0 |
SysTick counter to avoid busy wait delay. More... | |
Configure UART console (RTOS API).
References uart_rs232_options::baudrate, CONF_STDIO_BAUDRATE, CONF_STDIO_CHAR_LENGTH, CONF_STDIO_PARITY, CONF_STDIO_STOP_BITS, CONF_STDIO_USART_MODULE, CONSOLE_UART_ID, 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 fault_addr, and osprintf().
int main | ( | void | ) |
Main program function.
References ap_task(), board_init(), configure_console(), sta_task(), sysclk_init(), vTaskStartScheduler(), and xTaskCreate.
Referenced by pvPortMalloc().
void vApplicationStackOverflowHook | ( | xTaskHandle | pxTask, |
signed char * | pcTaskName | ||
) |
References M2M_ERR.
|
static |
Referenced by hard_fault().
uint32_t ms_ticks = 0 |
SysTick counter to avoid busy wait delay.