Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 7 months ago.
Compile errors when using pulsewidth_ticks on LPC1768
I get two compile errors from FastPWM on LPC1768:
Error: Expression must have class type in "FastPWM/Device/FastPWM_LPC1768.cpp", Line: 12, Col: 7 Error: Expression must have class type in "FastPWM/Device/FastPWM_LPC1768.cpp", Line: 13, Col: 27
This is in FastPWM::pulsewidth_ticks. I imagine it is a quick fix.
Ralph
Question relating to:

1 Answer
10 years, 7 months ago.
Hey,
Which code are you using in your main.cpp? And do you have the latest version of FastPWM? (Right mouse button on the lib, click update). Also latest version of regular mbed lib? (Not that I see how that could cause this).
I just checked it in a test program, and I don't get compilation errors. Assuming updating the libs doesn't fix it, and you don't have special code in your main, could you publish your code and post a link here? Then I can import it and see if I can figure out the issue.
Erik