Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rc3ad9ff5401aed42da66a2f47c7d02332f9fd1b5 -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision c3ad9ff5401aed42da66a2f47c7d02332f9fd1b5) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -15,7 +15,7 @@ * ***************************************************************************/ -#include // Used for fabs() and pow() functions +//#include // Used for fabs() functions #include "can.h" #include "etpwm.h" Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -r16b02389432724c1bd15e9ce58579bff95050a03 -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 16b02389432724c1bd15e9ce58579bff95050a03) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -15,9 +15,11 @@ * ***************************************************************************/ -#include // For sprintf and strlen -#include -#include // For sprintf +#ifndef _VECTORCAST_ +#include // For pow function +#endif +#include // For memset and strlen +#include // For sprintf #include "AlarmMgmt.h" #include "BloodLeak.h" Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -r1354685cce00d343e29be2c098fd9fdb857374ae -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 1354685cce00d343e29be2c098fd9fdb857374ae) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -14,7 +14,6 @@ * @date (original) 04-Mar-2021 * ***************************************************************************/ -#include #include "AlarmMgmt.h" #include "FPGA.h" Index: firmware/App/Controllers/Temperatures.c =================================================================== diff -u -r3d409ee7130063937dce719281bb072c87023d3f -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/Controllers/Temperatures.c (.../Temperatures.c) (revision 3d409ee7130063937dce719281bb072c87023d3f) +++ firmware/App/Controllers/Temperatures.c (.../Temperatures.c) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -15,8 +15,8 @@ * ***************************************************************************/ -#include // For memset -#include // For temperature calculations +#include // For memset +#include // For log and pow functions #include "FPGA.h" #include "InternalADC.h" Index: firmware/App/HDCommon.h =================================================================== diff -u -r52845cc5c122e7f1ecdace61d4080f6d61bb90e7 -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/HDCommon.h (.../HDCommon.h) (revision 52845cc5c122e7f1ecdace61d4080f6d61bb90e7) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -123,7 +123,27 @@ #ifdef _VECTORCAST_ +S32 pow( S32 num, U32 exp ) +{ + S32 result = num; + if ( 0 == exp ) + { + result = 1; + } + else if ( exp > 1 ) + { + U32 i; + + for ( i = 1; i < exp; i++ ) + { + result *= num; + } + } + + return result; +} + #endif #endif