mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1774 from openmv/dcmi_pins
ports/stm32: Fix DCMI pins deinit.
This commit is contained in:
commit
9a4282b0cf
@ -462,16 +462,6 @@ void HAL_DCMI_MspDeInit(DCMI_HandleTypeDef* hdcmi)
|
|||||||
for (int i=0; i<NUM_DCMI_PINS; i++) {
|
for (int i=0; i<NUM_DCMI_PINS; i++) {
|
||||||
HAL_GPIO_DeInit(dcmi_pins[i].port, dcmi_pins[i].pin);
|
HAL_GPIO_DeInit(dcmi_pins[i].port, dcmi_pins[i].pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DCMI_RESET_PIN)
|
|
||||||
HAL_GPIO_DeInit(DCMI_RESET_PORT, DCMI_RESET_PIN);
|
|
||||||
#endif
|
|
||||||
#if defined(DCMI_FSYNC_PIN)
|
|
||||||
HAL_GPIO_DeInit(DCMI_FSYNC_PORT, DCMI_FSYNC_PIN);
|
|
||||||
#endif
|
|
||||||
#if defined(DCMI_PWDN_PIN)
|
|
||||||
HAL_GPIO_DeInit(DCMI_PWDN_PORT, DCMI_PWDN_PIN);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user