/** * @brief Stop the CAMERA capture * @retval Camera status */ uint8_t BSP_CAMERA_Stop(void) { uint8_t status = CAMERA_ERROR; if(HAL_DCMI_Stop(&hDcmiEval) == HAL_OK) { status = CAMERA_OK; } /* Set Camera in Power Down */ BSP_CAMERA_PwrDown(); return status; }
/** * @brief Stops the Camera capture. * @param None * @retval Camera status */ uint8_t BSP_CAMERA_Stop(void) { DCMI_HandleTypeDef *phdcmi; uint8_t ret = CAMERA_ERROR; /* Get the DCMI handle structure */ phdcmi = &hdcmi_eval; if(HAL_DCMI_Stop(phdcmi) == HAL_OK) { ret = CAMERA_OK; } return ret; }
/** * @brief Stop the CAMERA capture * @param None * @retval Camera status */ uint8_t BSP_CAMERA_Stop(void) { DCMI_HandleTypeDef *phdcmi; uint8_t ret = CAMERA_ERROR; /* Get the DCMI handle structure */ phdcmi = &hDcmiEval; if(HAL_DCMI_Stop(phdcmi) == HAL_OK) { ret = CAMERA_OK; } /* Set Camera in Power Down */ BSP_CAMERA_PwrDown(); return ret; }
/** * @brief Stop the CAMERA capture * @param None * @retval Camera status */ uint8_t BSP_CAMERA_Stop(void) { DCMI_HandleTypeDef *phdcmi; uint8_t ret = CAMERA_ERROR; /* Get the DCMI handle structure */ phdcmi = &hdcmi_eval; if(HAL_DCMI_Stop(phdcmi) == HAL_OK) { ret = CAMERA_OK; } /* Initialize IO */ BSP_IO_Init(); /* Reset the camera STANDBY pin */ BSP_IO_ConfigPin(XSDN_PIN, IO_MODE_OUTPUT); BSP_IO_WritePin(XSDN_PIN, RESET); return ret; }