Subversion Repositories FuelGauge

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 6
Line 894... Line 894...
894
  *         @arg @ref LL_GPIO_PIN_ALL
894
  *         @arg @ref LL_GPIO_PIN_ALL
895
  * @retval None
895
  * @retval None
896
  */
896
  */
897
__STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
897
__STATIC_INLINE void LL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint32_t PinMask)
898
{
898
{
-
 
899
  uint32_t odr = READ_REG(GPIOx->ODR);
899
  WRITE_REG(GPIOx->ODR, READ_REG(GPIOx->ODR) ^ PinMask);
900
  WRITE_REG(GPIOx->BSRR, ((odr & PinMask) << 16u) | (~odr & PinMask));
900
}
901
}
901
 
902
 
902
/**
903
/**
903
  * @}
904
  * @}
904
  */
905
  */