Hi Frieder,

thanks for the suggestion, yes this was one of my suspects too,
although, as you said,
it should not matter, as the array indexing inside STEPPER macro that
invokes
a library call to do the multiplication only takes place outside the
interrupt and
on the otherhand there are no library calls in the interrupt code (I've

triple checked the asm listing).  But maybe there is stack usage
issue.

Anaway I'll try that and report back, come **ll or high water.

What is sort of nasty is that when I change things the behaviour
changes so that sometimes it takes minutes for the problem to appear.
So even if something appears to work I'm not confident that the
problem
is solved it may just submerged only to surface later.

br Kusti


>>> frieder.ferlem...@web.de 22.1.2009 0:25:04 >>>
Hi,

Kustaa Nyholm schrieb:
> void stepperSeekPosition(int stepperNo, uint32 seekPosition)  {
  ...
> int16 stepperGetState(int stepperNo){

could you try
  void stepperSeekPosition(unsigned char stepperNo, uint32
seekPosition)  {
and
  uint16 stepperGetState(unsigned char stepperNo){

not that it should matter?

------------------------------------------------------------------------------
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
Sdcc-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/sdcc-user

------------------------------------------------------------------------------
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
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to