Improve readability

Unobfuscate GPIO manipulations by encapsulating them inside static
inline functions