Add debug output: interrupts and hardware.

Fix style bugs in generic clock.
Add framerate cap on LEM1802.