pow() function in EZ-USB Suite - KBA231148
Employee
Sep 28, 2020
01:19 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Sep 28, 2020
01:19 AM
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:
- 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" - Right-click the project and select Properties.
- On the Project Properties window, select C/C++ build > Settings.
- Under Cross ARM C Linker, select Libraries.
- Add the new library (m) to the set of default libraries present and click OK.
- Click OK and then refresh the project before building.
- Build the project.
Labels
Rate this article: