mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1747 from openmv/hal_deinit_functions
ports/stm32: Fix HAL MSP deinit functions.
This commit is contained in:
commit
f0dfc6b09a
@ -462,6 +462,16 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -521,7 +531,7 @@ void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void HAL_SPI_MspDeinit(SPI_HandleTypeDef *hspi)
|
void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -744,7 +754,7 @@ void HAL_DAC_MspInit(DAC_HandleTypeDef *hdac)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void HAL_DAC_MspDeinit(DAC_HandleTypeDef *hdac)
|
void HAL_DAC_MspDeInit(DAC_HandleTypeDef *hdac)
|
||||||
{
|
{
|
||||||
#if defined(OMV_SPI_LCD_BL_DAC)
|
#if defined(OMV_SPI_LCD_BL_DAC)
|
||||||
if (hdac->Instance == OMV_SPI_LCD_BL_DAC) {
|
if (hdac->Instance == OMV_SPI_LCD_BL_DAC) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user