Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

pow() function in EZ-USB Suite - KBA231148

pow() function in EZ-USB Suite - KBA231148

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

Version: **

The pow(a,b) function returns the value of ‘a’ raised to the power of ‘b’. It is defined inside the math.h header file. Do the following to use this function in an FX3 project in EZ USB Suite:

  1. At the top of the source file where pow() is to be used, add a reference to the math.h header file.
    #include "math.h"
  2. Right-click the project and select Properties.
  3. On the Project Properties window, select C/C++ build > Settings.
  4. Under Cross ARM C Linker, select Libraries. 
    pastedImage_16.png
  5. Add the new library (m) to the set of default libraries present and click OK.
    pastedImage_17.png
  6. Click OK and then refresh the project before building.
  7. Build the project.
0 Likes
263 Views
Contributors