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, 8 months ago.
Compile error in LPC4088QS
Hello,
I recently updated mbed_src library (from 84 to 114) and mbed-rtos (from 16 to 17). I get a compile error in file EaLcdBoard.cpp. EALib version is unchanged (12)
Error: Too many arguments in function call in "EALib/EaLcdBoard.cpp", Line: 642, Col: 29
The offending line is >> "gpio_init(&gp, pin, PIN_OUTPUT);"
I don't even use the LCD libraries.
...kevin
2 Answers
10 years, 8 months ago.
The gpio functions were slightly changed, which generally isn't a problem since you only use the DigitalOut stuff, but apparrantly they used it directly there. The relevant changes: https://github.com/mbedmicro/mbed/commit/423ddcb86e83e2e0d599ca7106d436eb3c47e6dd
If you don't use it anyway you can probably delete it. But the fix would be replacing that line with:
gpio_init_out(&gp, pin);