NIOS:
-fixed bug for switchesIRQhandler called endless