Hi,
I’m fairly new to mbed and have been experimenting with the Timeout ISR.
I was wondering if it’s possible to attach a function which takes an argument to Timeout. For example.
Timeout myTimeout;
void myFunction(int myInt)
{
// do stuff
}
int main ()
{
myTimeout.attach(&myFunction(11), 0.2);
}
This seems to throw an error:
Error: Expression must be an lvalue or a function designator in “main.cpp”, Line: 12, Col: 24
Thanks,
Alex