feat: secondary can bus callback

This commit is contained in:
@CarlWachter
2024-08-24 11:34:00 +02:00
committed by dario
parent dd20df9952
commit a080c39643
2 changed files with 20 additions and 0 deletions

View File

@@ -215,6 +215,10 @@ namespace sta
STA_WEAK
void CanBus_RxPendingCallback(uint32_t fifo)
{}
STA_WEAK
void CanBus_RxPendingCallbackSecondary(uint32_t fifo)
{}
} // namespace sta
@@ -226,6 +230,10 @@ extern "C"
{
sta::CanBus_RxPendingCallback(CAN_RX_FIFO0);
}
else
{
sta::CanBus_RxPendingCallbackSecondary(CAN_RX_FIFO0);
}
}
void HAL_CAN_RxFifo1MsgPendingCallback(CAN_HandleTypeDef *hcan)
@@ -234,6 +242,9 @@ extern "C"
{
sta::CanBus_RxPendingCallback(CAN_RX_FIFO1);
}
else{
sta::CanBus_RxPendingCallbackSecondary(CAN_RX_FIFO1);
}
}
}