Move all ISR related stuff from the main module to the hardware module
for more complete abstraction.