Dear reader,
I'm trying to create a state machine using a piece of c code The state machine will use a function pointer with the following typedef: void (*state_func)(unsigned char);
From an xc file I try to call a C routine containing the function pointer, something like:
void a(unsigned char value)
{
(*nextState)(value);
}
Where nextState is of type state_func.
This piece of code results in the following warning:
Constraint check for node 0, core 0:
Stack available: 0000aec0, used: unknown . MAYBE
Threads available: 8, used: 1 . OKAY
Timers available: 10, used: 1 . OKAY
Chanends available: 32, used: 2 . OKAY
excluding the (*nextState)(value); solves the warning.
Does anyone have any idea
Thanks in advance,
Wim
Constrains check (stack)
-
- New User
- Posts: 2
- Joined: Mon May 03, 2010 10:05 am
-
- Respected Member
- Posts: 318
- Joined: Tue Dec 15, 2009 12:46 am
I've answered this on the XMOS Support Board, see
https://www.xmos.com/discuss/viewtopic.php?f=6&t=786
https://www.xmos.com/discuss/viewtopic.php?f=6&t=786