Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


API Usage
[API]

Selecting the API to Use

  • Only those API functions specifically designated for use from within an ISR should be used from within an ISR.

  • Tasks and co-routines use different API functions to access queues. A queue cannot be used to communicate between a task and a co-routine or vice versa.

  • Intertask communication can be achieved using the full featured API functions, the alternative API functions, and the light weight API functions (those with "FromISR" in their name).

  • Use of the light weight functions outside of an ISR requires special consideration, as described under the heading "Performance tips and tricks - using the light weight API".



Task API

A task may call any API function listed in the menu frame on the left other than those under the co-routine specific section.



Co-Routine API

In addition to the API functions listed under the co-routine specific section, a co-routine may use the following API calls.
  • taskYIELD() - will yield the task in which the co-routines are running.

  • taskENTER_CRITICAL().

  • taskEXIT_CRITICAL().

  • vTaskStartScheduler() - this is still used to start the RTOS scheduler even if the application only includes co-routines and no tasks.

  • vTaskSuspendAll() - can still be used to lock the RTOS scheduler.

  • xTaskResumeAll()

  • xTaskGetTickCount()

  • uxTaskGetNumberOfTasks()







[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner