workable for R5 with external ToF header
This commit is contained in:
parent
a973f6886a
commit
b90a4cdac9
|
@ -376,7 +376,7 @@ void EXTI9_5_IRQHandler(void)
|
|||
#ifndef RM2
|
||||
HAL_GPIO_EXTI_IRQHandler(BUT3_Pin);
|
||||
#elif defined(RM2)&&(defined(VL53L0)||defined(VL53LX))
|
||||
HAL_GPIO_EXTI_IRQHandler(TOF_INT_EXTI_PIN);
|
||||
// HAL_GPIO_EXTI_IRQHandler(TOF_INT_EXTI_PIN);
|
||||
#endif
|
||||
|
||||
/* USER CODE BEGIN EXTI9_5_IRQn 1 */
|
||||
|
|
Binary file not shown.
|
@ -231,8 +231,9 @@ void XWL55_WLE5_53L0X_ResetId(uint8_t DevNo, int state)
|
|||
HAL_GPIO_WritePin(TOF_L_XSHUT_GPIO_Port, TOF_L_XSHUT_Pin, ((state == 1)?GPIO_PIN_SET:GPIO_PIN_RESET));
|
||||
#endif
|
||||
break;
|
||||
#if defined(TOF_1)
|
||||
|
||||
case XNUCLEO53L0X_CENTER:
|
||||
#if defined(TOF_1)
|
||||
HAL_GPIO_WritePin(TOF_C_XSHUT_GPIO_Port, TOF_C_XSHUT_Pin, ((state == 1)?GPIO_PIN_SET:GPIO_PIN_RESET));
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue