Quality RTOS & Embedded Software

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


Hardware usage how is it possible?

Posted by Nobody/Anonymous on January 10, 2007

I have been reading the site and RTOS core.
Untill now i wasn´t able to find (for the PICs) any tip or comment on how to use the pheripherals like SPI, UART, PORTS, PP, ADCs.

How is it possible to interact with the peripherals when using FreeRTOS??

Thank you for the help

RE: Hardware usage how is it possible?

Posted by Nobody/Anonymous on January 10, 2007
Does the PIC port not have a uart driver as an example? I think they all do.

Look in the source code in the demo/[port]/serial directory (where [port] is the port you are interested in).

RE: Hardware usage how is it possible?

Posted by Westmoreland Engineering on January 10, 2007

FreeRTOS is a kernel - peripheral drivers are part of the ports (example code). Some of the example code is very simple - but it's meant to demonstrate the features of FreeRTOS. You can find UART drivers as mentioned above - but it's unlikely you'll find, for instance, a fully-functional full-duplex DMA driven UART for every port - that's up to you to develop or perhaps find the source code for that someplace else and adapt it for FreeRTOS. Most ports have a simple interrupt driven example for UART's - but it'll take some work if you want to use those in the real world - some ports are better than others as well.

John W.

RE: Hardware usage how is it possible?

Posted by Richard on January 10, 2007
Just to go a little further to what John has already stated.

[As I think I state in numerous places on the WEB site and in the code) The sample UART drivers provide an example of interaction between the kernel and an interrupt which is useful for users to copy. However the actual implementation of the driver is often deliberately inefficient, for example it might not use the DMA or even the buffers on the peripheral. This is because the provision of the driver is also for the purpose of testing the port. The more interrupts the peripheral can generate the higher the loading and statistical change of finding an error. If you have a 16 byte buffer and generate an interrupt every 16 characters then you are generating 16 times less interrupts than if you turn the buffering off.


[ 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.


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


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