I need two same functions to map to two cores itcm in arm, in a way I can define two function as below
#pragma arm section code="core0itcm"
void function1_core0()
{
< program body xxx>
}
#pragma arm section code
..
#pragma arm section code="core1itcm"
void function1_core1()
{
< program body xxx>
}
#pragma arm section code
But in this way, I have to manually maintain the same logic in two different location.
Is there an elegent way to define two function with same "progam body" ? With inline or use advanced use of MACRO?
thanks