TRY NORMAL RANGE, BAD

This commit is contained in:
Yunhorn 2024-04-16 19:48:25 +08:00
parent 74994b0530
commit 119d0bf4c6
6 changed files with 27509 additions and 27486 deletions

View File

@ -103,8 +103,8 @@ void PWR_EnterStopMode(void)
{
/* USER CODE BEGIN EnterStopMode_1 */
POWER_OFF;
//HAL_UART_DeInit(&huart2);
//vcom_DeInit();
HAL_UART_DeInit(&huart2);
vcom_DeInit();
HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All);
HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All);

View File

@ -123,7 +123,7 @@ void SystemApp_Init(void)
UTIL_LPM_Init();
/* Disable Stand-by mode */
UTIL_LPM_SetOffMode((1 << CFG_LPM_APPLI_Id), UTIL_LPM_DISABLE);
UTIL_LPM_SetOffMode((1 << CFG_LPM_UART_TX_Id), UTIL_LPM_ENABLE);
//UTIL_LPM_SetOffMode((1 << CFG_LPM_UART_TX_Id), UTIL_LPM_ENABLE);
#if defined (LOW_POWER_DISABLE) && (LOW_POWER_DISABLE == 1)
/* Disable Stop Mode */

View File

@ -1,5 +1,5 @@
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:117:6:HandleError 1
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:132:5:sts_tof_vl53l0x_DetectSensors 7
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:132:5:sts_tof_vl53l0x_DetectSensors 8
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:218:6:sts_tof_vl53l0x_SetupSingleShot 4
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:331:6:sts_tof_vl53l0x_Sensor_SetNewRange 3
D:/ONEDRIVE/STM32WLV13/Projects/NUCLEO-WL55JC/Applications/LoRaWAN/STS_RR_R125/TOF/App/app_tof_vl53l0x_range.c:348:6:STS_TOF250_Range_Process 2

File diff suppressed because it is too large Load Diff

View File

@ -166,11 +166,11 @@ int XWL55_WLE5_53L0X_SetIntrStateId(int EnableIntr, int DevNo)
IRQn_Type IntrNo;
int IntrPin;
switch (DevNo){
case 1:
case 0:
IntrNo = VL53L0X_GPIO1_L_INTx;
IntrPin= VL53L0X_GPIO1_L_GPIO_PIN;
break;
case 0:
case 1:
IntrNo = VL53L0X_GPIO1_C_INTx;
IntrPin= VL53L0X_GPIO1_C_GPIO_PIN;
break;
@ -227,11 +227,13 @@ 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
break;
case XNUCLEO53L0X_RIGHT:
#if defined(TOF_3)
HAL_GPIO_WritePin(TOF_R_XSHUT_GPIO_Port, TOF_R_XSHUT_Pin, ((state == 1)?GPIO_PIN_SET:GPIO_PIN_RESET));

View File

@ -139,7 +139,7 @@ int sts_tof_vl53l0x_DetectSensors(void)
for (i=0; i < MAX_TOF_COUNT; i++) {
XWL55_WLE5_53L0X_ResetId(i,0);
//XWL55_WLE5_53L0X_SetIntrStateId(0,i);
XWL55_WLE5_53L0X_SetIntrStateId(0,i);
}
/* detect all sensors (even on-board)*/