board/lgvr/usb_pd_config.h
/* Put the TX driver in Hi-Z state */
Put the TX driver in Hi-Z state
Put the TX driver in Hi - Z state
static inline void pd_tx_disable(int port, int polarity)
{
		STM32_GPIO_MODER(GPIO_A) = (STM32_GPIO_MODER(GPIO_A)
				& ~(3 << (2*6)));
		STM32_GPIO_MODER(GPIO_B) = (STM32_GPIO_MODER(GPIO_B)
				& ~(3 << (2*4)));
		STM32_GPIO_MODER(GPIO_A) = (STM32_GPIO_MODER(GPIO_A)
				|  (3 << (2*1))); 
}
static inline void pd_tx_disable ( int port , int polarity ) { STM32_GPIO_MODER ( GPIO_A ) = ( STM32_GPIO_MODER ( GPIO_A ) & ~ ( 3 << ( 2 * 6 ) ) ) ; STM32_GPIO_MODER ( GPIO_B ) = ( STM32_GPIO_MODER ( GPIO_B ) & ~ ( 3 << ( 2 * 4 ) ) ) ; STM32_GPIO_MODER ( GPIO_A ) = ( STM32_GPIO_MODER ( GPIO_A ) | ( 3 << ( 2 * 1 ) ) ) ; }
Put the TX driver in Hi-Z state
Put the TX driver in Hi - Z state
/* Set TX_DATA to Hi-Z, PA6 is SPI1 MISO */ /* Set TX_DATA to Hi-Z, PB4 is SPI1 MISO */ /* set ADC PA1 pin to ADC function (Hi-Z) */ /* PA1 as ADC */