Interrupts and Reentrant calls

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
CGEngineering
Posts: 144
Joined: 09 May 2007 23:31
Location: Florence - Italy
Contact:

Interrupts and Reentrant calls

#1 Post by CGEngineering » 13 Nov 2007 21:26

Hello,

recently i had some troubles using (small) function inside and outside interrupt() routine, in particular SPI ones. Someone suggested me to write duplicated routines to call in the two different cases, without any risk of reentrancy simply disabling/enabling interrupts for the function call external to interrupt() routine...

My wish is: can mikroC do like CCS C compiler for this trouble ? I mean that if the compiler finds a reentrancy risk (tree matches), it automatically disables interrupts, and, in addiction, it returns a "warning", and not a compiling fail error?

Thanks
Regards
CG

Post Reply

Return to “mikroC Wish List”