ports/stm32/pin_defs_stm32.c
uint32_t pin_get_pull(const pin_obj_t *pin) {
#if !defined(MCU_SERIES_F1)
    return (pin->gpio->PUPDR >> (pin->pin * 2)) & 3;
#else
    return GPIO_NOPULL;
#endif
}
// Returns the pin pullup/pulldown. The value returned by this macro should
// be one of GPIO_NOPULL, GPIO_PULLUP, or GPIO_PULLDOWN.
Returns the pin pullup/pulldown. The value returned by this macro should
be one of GPIO_NOPULL, GPIO_PULLUP, or GPIO_PULLDOWN.
Returns the pin pullup / pulldown . The value returned by this macro should be one of GPIO_NOPULL GPIO_PULLUP or GPIO_PULLDOWN .
uint32_t pin_get_pull(const pin_obj_t *pin) {
#if !defined(MCU_SERIES_F1)
    return (pin->gpio->PUPDR >> (pin->pin * 2)) & 3;
#else
    return GPIO_NOPULL;
#endif
}
uint32_t pin_get_pull ( const pin_obj_t * pin ) { #if ! defined ( MCU_SERIES_F1 ) return ( pin -> gpio -> PUPDR >> ( pin -> pin * 2 ) ) & 3 ; #else return GPIO_NOPULL ; #endif }
Returns the pin pullup/pulldown.
Returns the pin pullup / pulldown .