Quality RTOS & Embedded Software

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


Loading

What Hardware Timers can I use?

Posted by larrydew on February 5, 2019

Using Sam4E16E, ASF and FreeRTOS+FAT and FreeRTOS+IP, FreeRTOS-10 I Need to use at least one Hardware Timer and I don't want to interfere with the RTOS. Can you tell me which timers on the chip FreeRTOS uses, TC0, TC1 and/or TC2? I looks like the ethernet code uses TC0. Thanks Larry Dew


What Hardware Timers can I use?

Posted by rtel on February 5, 2019

FreeRTOS only uses the SysTick timer, in the Cortex-M core itself, so all the peripheral timers are available for your use.


What Hardware Timers can I use?

Posted by larrydew on February 5, 2019

Thanks, however the code I am working with includes the "hr_gettime.c" which is using timer TC0 in the function vStartHighResolutionTimer() and the function ullGetHighResolutionTime() that is called from the UDPLoggingPrintF.c file. Is this code I can remove? Thanks for your quick response. Larry Dew


What Hardware Timers can I use?

Posted by rtel on February 5, 2019

Don’t know. That is not part of our code, but would guess if you are not using the high res timer (nothing to do with FreeRTOS) then you can remove it. If nothing else, if you have the source code you can at least see which timer it is using.


What Hardware Timers can I use?

Posted by larrydew on February 7, 2019

Richard, I rechecked my poject files and there is a file call UDPLoggingPrintf that contains a reference to ullGetHighResolutionTime() which uses Timer TC0. The file contains the normal FreeRTOS header text and links, I beleive this is a peripheral file that was added for debugging over Ethernet but not required for FreeRTOS. I am planning to remove it and save code. Thanks


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


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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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

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

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

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