Optimization: GPIO functions changed to direct IO access in encoder module
Optimization: GPIO functions changed to direct IO access in encoder module