Fix issue where GPIO functions incorrectly use u16 instead of u32 values.