Fixed some function's bugs

Fixed some bugs and modified mmu setting.
Fixed functions as below
- analog in
- i2c
- interruptin