We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ca395 commit 836ff13Copy full SHA for 836ff13
targets/TARGET_STM/TARGET_STM32F1/can_api.c
@@ -377,6 +377,15 @@ static void can_irq(CANName name, int id)
377
tmp1 = __HAL_CAN_TRANSMIT_STATUS(&CanHandle, CAN_TXMAILBOX_0);
378
tmp2 = __HAL_CAN_TRANSMIT_STATUS(&CanHandle, CAN_TXMAILBOX_1);
379
tmp3 = __HAL_CAN_TRANSMIT_STATUS(&CanHandle, CAN_TXMAILBOX_2);
380
+ if (tmp1){
381
+ CanHandle.Instance->TSR |= CAN_TSR_RQCP0;
382
+ }
383
+ if (tmp2){
384
+ CanHandle.Instance->TSR |= CAN_TSR_RQCP1;
385
386
+ if (tmp3){
387
+ CanHandle.Instance->TSR |= CAN_TSR_RQCP2;
388
389
if(tmp1 || tmp2 || tmp3)
390
{
391
irq_handler(can_irq_ids[id], IRQ_TX);
0 commit comments