Implemented queue for can packets

This commit is contained in:
Yury Shuvakin
2023-04-01 19:13:58 +03:00
parent 3fe2c86773
commit 51b12ac970
4 changed files with 168 additions and 45 deletions

View File

@@ -132,6 +132,7 @@ static const uint32_t flash_addr[FLASH_PAGES] = {
};
TIM_HandleTypeDef htim2;
TIM_HandleTypeDef htim3;
TIM_HandleTypeDef htim6;
UART_HandleTypeDef huart2;
@@ -350,6 +351,7 @@ void deinitEverything()
{
//-- reset peripherals to guarantee flawless start of user application
HAL_TIM_Base_Stop_IT(&htim2);
HAL_TIM_Base_Stop_IT(&htim3);
HAL_TIM_Base_Stop_IT(&htim6);
MX_USB_DEVICE_DeInit();
MX_FATFS_DeInit();