Correction @1:14:04 We should set ICR to clear previous RIS. So the correct code would be _ICR_R = 0x10; @1:18:34 there is an extra equal that would cause syntax error. it should be () | 0x.. Thanks to Hussein Ahmed for detecting them.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.