This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Use RTOS and xTimerCreate() ,Timer faster than the actual(SDK12,52832)

Timer for defining 20ms cycle:

// Create timers.
m_test_timer = xTimerCreate("TEST",
                               20,
                               pdTRUE,
                               NULL,
                              test_timeout_handler);

I found eight cycles, fast 6ms

Related