detecting two rising edges from camshaft signal

wvmarle:
Just looking in more detail at your code, this is an issue:

  attachInterrupt (0, risingISR, RISING);

It seems you have your signal connected to pin 0,

OOPs ....

Interrupt 0 is on Pin 2

...R