Add support for register callbacks

This commit is contained in:
2026-03-31 11:52:59 +03:00
parent 3cae8b7008
commit 7f116acf22
35 changed files with 4180 additions and 3469 deletions

View File

@@ -92,7 +92,10 @@ int main(void)
MX_RTC_Init();
MX_TIM4_Init();
/* USER CODE BEGIN 2 */
HAL_CAN_Start(&hcan);
HAL_CAN_ActivateNotification(&hcan, CAN_IT_RX_FIFO0_MSG_PENDING | CAN_IT_ERROR | CAN_IT_BUSOFF | CAN_IT_LAST_ERROR_CODE);
PROTOCAN_INIT(&hcan, &hrtc, &htim4);
PROTOCAN_LOOP();
/* USER CODE END 2 */
/* Infinite loop */