FreeRTOS configuration.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "status_codes.h"
#include "conf_uart_serial.h"
#include "partest.h"
#include "ethernet.h"
#include "netif/etharp.h"
#include "flash.h"
#include "sysclk.h"
#include "ioport.h"
#include "uart_serial.h"
#include "stdio_serial.h"
#include <compiler.h>
#include "led.h"
#include "conf_board.h"
Macros | |
#define | ioport_set_port_peripheral_mode(port, masks, mode) |
Set peripheral mode for IOPORT pins. More... | |
#define | TASK_LED_STACK_PRIORITY (tskIDLE_PRIORITY) |
#define | TASK_LED_STACK_SIZE (128 / sizeof(portSTACK_TYPE)) |
Functions | |
static void | configure_console (void) |
Configure the console UART. More... | |
int | main (void) |
getting-started Application entry point. More... | |
static void | task_led (void *pvParameters) |
This task, when activated, send every ten seconds on debug UART the whole report of free heap and total tasks status. More... | |
void | vApplicationIdleHook (void) |
This function is called by FreeRTOS idle task. More... | |
void | vApplicationStackOverflowHook (xTaskHandle *pxTask, signed char *pcTaskName) |
Called if stack overflow during execution. More... | |
void | vApplicationTickHook (void) |
This function is called by FreeRTOS each tick. More... | |
void | xPortSysTickHandler (void) |
#define ioport_set_port_peripheral_mode | ( | port, | |
masks, | |||
mode | |||
) |
Set peripheral mode for IOPORT pins.
It will configure port mode and disable pin mode (but enable peripheral).
port | IOPORT port to configure |
masks | IOPORT pin masks to configure |
mode | Mode masks to configure for the specified pin (IOPORT Modes) |
#define TASK_LED_STACK_PRIORITY (tskIDLE_PRIORITY) |
Referenced by main().
#define TASK_LED_STACK_SIZE (128 / sizeof(portSTACK_TYPE)) |
Referenced by main().
|
static |
Configure the console UART.
References uart_rs232_options::baudrate, NULL, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
int main | ( | void | ) |
getting-started Application entry point.
References BOARD_NAME, configMAX_PRIORITIES, configure_console(), IOPORT_DIR_OUTPUT, ioport_set_pin_dir(), ioport_set_pin_level(), NULL, pdPASS, sysclk_init(), task_led(), TASK_LED_STACK_PRIORITY, TASK_LED_STACK_SIZE, vStartEthernetTaskLauncher(), vTaskStartScheduler(), and xTaskCreate.
|
static |
This task, when activated, send every ten seconds on debug UART the whole report of free heap and total tasks status.
References vTaskDelay().
Referenced by main().
void vApplicationIdleHook | ( | void | ) |
This function is called by FreeRTOS idle task.
void vApplicationStackOverflowHook | ( | xTaskHandle * | pxTask, |
signed char * | pcTaskName | ||
) |
Called if stack overflow during execution.
void vApplicationTickHook | ( | void | ) |
This function is called by FreeRTOS each tick.
void xPortSysTickHandler | ( | void | ) |