How do I get an open drain based I/O with interrupt input function?

04 Sep 2010

I'd like to get an open drain based I/O with interrupt input function.

InterruptIn clkint(p12);
DigitalInOut clk(p12);

clkint.fall(&func_fall);
clkint.mode(OpenDrain);
clk.mode(OpenDrain);
clk.output();

clk.write(1);

This is illegal use case I know.

But sometime I (and some users) need like this function.