Updated device.c
Added interrupt enabling and disabling
Merge branch 'master' of https://github.com/tayhym/Lab349