I am running a quite complex math. interpolation routine within a cyclic 1ms Freertos task.
I want to run that piece of code as fast as it is possible, because of the high-frequent 1ms calls
What I did until now is to put the ipol_routine() to IRAM.
Are there any other suggestions or possibilities to speed it up?
(No, I cannot write assembler )
Thanks!
Code: Select all
xTaskCreatePinnedToCore (tasks_1ms, "tasks_1ms", 4096, NULL, 2, NULL, 1);
void IRAM_ATTR ipol_routine(void);
void Tasks_1ms(void *arg)
{
while (1)
{
delay(1);
ipol_routine();
}
}