stmfx_pinconf_set_pupd
ret = stmfx_pinconf_set_pupd(pctl, pin, 0);
ret = stmfx_pinconf_set_pupd(pctl, pin, 1);