Переименование Protocan в Setcan

This commit is contained in:
2026-09-01 13:43:27 +03:00
parent d37f99c57b
commit 06c305216c
16 changed files with 394 additions and 427 deletions

View File

@@ -92,11 +92,11 @@ int main(void)
MX_RTC_Init();
MX_TIM4_Init();
/* USER CODE BEGIN 2 */
if(PROTOCAN_INIT(&hcan, &hrtc, &htim4) == PROTOCAN_OK)
if(SETCAN_INIT(&hcan, &hrtc, &htim4) == SETCAN_OK)
{
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_LoopProcessRxMsgs();
SETCAN_LoopProcessRxMsgs();
}
/* USER CODE END 2 */