AnsweredAssumed Answered

inline function

Question asked by Markus Kandler on Jun 25, 2014
Latest reply on Jul 29, 2014 by Markus Kandler



I'm trying to inline this Little function but the Compiler (S12ZCPU) refuses to do that. Is there any Limitation I violated?


__inline__ void FunctionToInline(uint16 *current_ptr)


    current_ptr[0] -= Adc0Offset;

    current_ptr[1] -= Adc1Offset;



With another function that staturates a value, inlining worked well.


Thanks for your help