adjusting code to start playing with EXTI registers