FreeRTOS/Demo/AVR_ATmega328PB_Xplained_mini_GCC/RTOSDemo/include/port.h
/**
 * \brief Set PORTB pin pull mode
 *
 * Configure pin to pull up, down or disable pull mode, supported pull
 * modes are defined by device used
 *
 * \param[in] pin       The pin number in PORTB
 * \param[in] pull_mode Pin pull mode
 */
\brief Set PORTB pin pull mode
Configure pin to pull up, down or disable pull mode, supported pull
modes are defined by device used

\param[in] pin       The pin number in PORTB
\param[in] pull_mode Pin pull mode
\ brief Set PORTB pin pull mode Configure pin to pull up down or disable pull mode supported pull modes are defined by device used \ param [ in ] pin The pin number in PORTB \ param [ in ] pull_mode Pin pull mode
static inline void PORTB_set_pin_pull_mode(const uint8_t pin, const enum port_pull_mode pull_mode)
{
	if (pull_mode == PORT_PULL_UP) {
		DDRB &= ~(1 << pin);
		PORTB |= 1 << pin;
	} else if (pull_mode == PORT_PULL_OFF) {
		PORTB &= ~(1 << pin);
	}
}
static inline void PORTB_set_pin_pull_mode ( const uint8_t pin , const enum port_pull_mode pull_mode ) { if ( pull_mode == PORT_PULL_UP ) { DDRB &= ~ ( 1 << pin ) ; PORTB |= 1 << pin ; } else if ( pull_mode == PORT_PULL_OFF ) { PORTB &= ~ ( 1 << pin ) ; } }
\brief Set PORTB pin pull mode
 Configure pin to pull up, down or disable pull mode, supported pull
 modes are defined by device used
\ brief Set PORTB pin pull mode Configure pin to pull up down or disable pull mode supported pull modes are defined by device used