[CM3] Add support for Cortex M interrupt masks

FIX: add doxygen documentation to the module