Browse Source

rename var to prevent collision

main
John-Mark Gurney 1 year ago
parent
commit
114716c830
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      stm32/f103c8t6/stm32f1xx_hal_uart.c

+ 2
- 2
stm32/f103c8t6/stm32f1xx_hal_uart.c View File

@@ -686,7 +686,7 @@ HAL_StatusTypeDef HAL_MultiProcessor_Init(UART_HandleTypeDef *huart, uint8_t Add
return HAL_OK; return HAL_OK;
} }


volatile uint32_t v;
volatile uint32_t _checkinter_count;


static void static void
checkinter(UART_HandleTypeDef *huart) checkinter(UART_HandleTypeDef *huart)
@@ -694,7 +694,7 @@ checkinter(UART_HandleTypeDef *huart)


#if 1 #if 1
if (huart->ReceptionType == 0 && huart->Instance->CR1 & 0x10) { if (huart->ReceptionType == 0 && huart->Instance->CR1 & 0x10) {
for(;;v++);
for(;;_checkinter_count++);
} }
#endif #endif
} }


Loading…
Cancel
Save