Hi,
when debugging my mysterious behaviour (discussed here on this list in
the past few days)
I discovered that __critical does not change anything in my code. So
protecting
my function that sets up some critical parameters for my interrupt code
with
__critical does not function.
I' doing it as follows :
void stepperSeekPosition(int stepperNo, uint32 seekPosition) __critical
{
<snip>
}
This code definately needs to run interrupts disabled otherwise there
are sure to
be problems with my interrupt which uses the parameters this
function sets up.
But when I look at the compiled (assembler source code) I see no
difference
with or without the __critical keyword nor any evidence of any
interrupt disabling code.
So what am I doing wrong?
br Kusti
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user