[stm32] support GPIO digital read
[GPIO] support masked 'set_port_mode'
[gpio] support masked {s,g}et_port_val()