BriscoeTech / Arduino-FreeRTOS-SAMD21

A port of FreeRTOS that runs on Arduino Samd21 boards
63 stars 19 forks source link

Why is the Tick rate 10000Hz and not 1000Hz ? #1

Closed pjalocha closed 6 years ago

pjalocha commented 6 years ago

I tried the code and it worked fine for me except the tick rate was 10000Hz instead of "standard" 1000Hz. The Arduino delay() was as well off by a factor of 10. But when I set the tick rate to 1000 in the FreeRTOSConfig.h all came back to normal: both RTOS tick rate and the Arduino delay() so why not have it set at 1000 ?

BriscoeTech commented 6 years ago

Hello pjalocha,

Sorry for the late reply, better late than never right.

Thank you for finding that, I was wondering why the millis/micros/delays were off by a factor of 10. I updated the repository and they should all work properly again.

Thanks for posting!