-->
Page 2 of 2

Re: error when registering an ISR

PostPosted: Tue Mar 19, 2019 1:25 pm
by RichardS
quackmore wrote:nope

don't think so

ETS_GPIO_INTR_ATTACH expects a function and a function parameter
check out the interrupt function declaration
or try forcing a cast

this is a working example

Code: Select allstatic void input_pulse(struct di_seq *seq);

{
...
struct di_seq *seq;
...
ETS_GPIO_INTR_ATTACH((ets_isr_t)input_pulse, seq);
...
}


This is correct, I was misthinking....