What Hardware Timers can I use?

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?

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?

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?

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?

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