чебля
This commit is contained in:
@@ -421,6 +421,7 @@ void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState Pin
|
||||
{
|
||||
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U;
|
||||
}
|
||||
__GPIO_BSRR_Sim(GPIOx);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -442,6 +443,7 @@ void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
|
||||
|
||||
/* Set selected pins that were at low level, and reset ones that were high */
|
||||
GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
|
||||
__GPIO_BSRR_Sim(GPIOx);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,18 @@ void Simulate_GPIO_BSRR(void)
|
||||
#ifdef GPIOD
|
||||
__GPIO_BSRR_Sim(GPIOD);
|
||||
#endif
|
||||
#ifdef GPIOE
|
||||
__GPIO_BSRR_Sim(GPIOE);
|
||||
#endif
|
||||
#ifdef GPIOF
|
||||
__GPIO_BSRR_Sim(GPIOF);
|
||||
#endif
|
||||
#ifdef GPIOG
|
||||
__GPIO_BSRR_Sim(GPIOG);
|
||||
#endif
|
||||
#ifdef GPIOH
|
||||
__GPIO_BSRR_Sim(GPIOH);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user