C51: USING NON-REENTRANT FUNCTION IN MAIN AND INTERRUPTS
Information in this article applies to:
I use the atof function in an interrupt service routine and in the main program loop. Since atof is not reentrant, I receive the following linker warning:
*** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR??C?ATOF??C?ATOF CALLER1: ?PR?SERIAL_INT?D CALLER2: ?C_C51STARTUP
Is there a way to use atof from both the interrupt and the main routine?
Yes. It is possible to use non-reentrant functions in both interrupt and main routines.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Saturday, July 9, 2005
of your data.