File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/current_sense/hardware_specific/stm32/b_g431 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ void HAL_OPAMP_MspDeInit(OPAMP_HandleTypeDef* hopamp)
380380 PA2 ------> OPAMP1_VOUT
381381 PA3 ------> OPAMP1_VINM
382382 */
383- HAL_GPIO_DeInit (GPIOA, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
383+ HAL_GPIO_DeInit (GPIOA, GPIO_PIN_1|( GPIO_PIN_2 * OPAMP_USE_INTERNAL_CHANNEL) |GPIO_PIN_3);
384384
385385 /* USER CODE BEGIN OPAMP1_MspDeInit 1 */
386386
@@ -397,7 +397,7 @@ void HAL_OPAMP_MspDeInit(OPAMP_HandleTypeDef* hopamp)
397397 PA6 ------> OPAMP2_VOUT
398398 PA7 ------> OPAMP2_VINP
399399 */
400- HAL_GPIO_DeInit (GPIOA, GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7);
400+ HAL_GPIO_DeInit (GPIOA, GPIO_PIN_5|( GPIO_PIN_6 * OPAMP_USE_INTERNAL_CHANNEL) |GPIO_PIN_7);
401401
402402 /* USER CODE BEGIN OPAMP2_MspDeInit 1 */
403403
@@ -414,7 +414,7 @@ void HAL_OPAMP_MspDeInit(OPAMP_HandleTypeDef* hopamp)
414414 PB1 ------> OPAMP3_VOUT
415415 PB2 ------> OPAMP3_VINM
416416 */
417- HAL_GPIO_DeInit (GPIOB, GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2);
417+ HAL_GPIO_DeInit (GPIOB, GPIO_PIN_0|( GPIO_PIN_1 * OPAMP_USE_INTERNAL_CHANNEL) |GPIO_PIN_2);
418418
419419 /* USER CODE BEGIN OPAMP3_MspDeInit 1 */
420420
You can’t perform that action at this time.
0 commit comments