• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revisión15633 (tree)
Tiempo2022-05-22 15:58:10
Autorgdisirio

Log Message

(empty log message)

Cambiar Resumen

Diferencia incremental

--- branches/stable_20.3.x/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c (revision 15632)
+++ branches/stable_20.3.x/os/hal/ports/STM32/LLD/TIMv1/hal_st_lld.c (revision 15633)
@@ -465,22 +465,22 @@
465465 #if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
466466 #if ST_LLD_NUM_ALARMS > 1
467467 if ((sr & TIM_SR_CC2IF) != 0U) {
468- if (st_callbacks[0] != NULL) {
469- st_callbacks[0](1U);
468+ if (st_callbacks[1] != NULL) {
469+ st_callbacks[1](1U);
470470 }
471471 }
472472 #endif
473473 #if ST_LLD_NUM_ALARMS > 2
474474 if ((sr & TIM_SR_CC3IF) != 0U) {
475- if (st_callbacks[1] != NULL) {
476- st_callbacks[1](2U);
475+ if (st_callbacks[2] != NULL) {
476+ st_callbacks[2](2U);
477477 }
478478 }
479479 #endif
480480 #if ST_LLD_NUM_ALARMS > 3
481481 if ((sr & TIM_SR_CC4IF) != 0U) {
482- if (st_callbacks[2] != NULL) {
483- st_callbacks[2](3U);
482+ if (st_callbacks[3] != NULL) {
483+ st_callbacks[3](3U);
484484 }
485485 }
486486 #endif
--- branches/stable_21.11.x/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c (revision 15632)
+++ branches/stable_21.11.x/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c (revision 15633)
@@ -560,22 +560,22 @@
560560 #if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
561561 #if ST_LLD_NUM_ALARMS > 1
562562 if ((sr & TIM_SR_CC2IF) != 0U) {
563- if (st_callbacks[0] != NULL) {
564- st_callbacks[0](1U);
563+ if (st_callbacks[1] != NULL) {
564+ st_callbacks[1](1U);
565565 }
566566 }
567567 #endif
568568 #if ST_LLD_NUM_ALARMS > 2
569569 if ((sr & TIM_SR_CC3IF) != 0U) {
570- if (st_callbacks[1] != NULL) {
571- st_callbacks[1](2U);
570+ if (st_callbacks[2] != NULL) {
571+ st_callbacks[2](2U);
572572 }
573573 }
574574 #endif
575575 #if ST_LLD_NUM_ALARMS > 3
576576 if ((sr & TIM_SR_CC4IF) != 0U) {
577- if (st_callbacks[2] != NULL) {
578- st_callbacks[2](3U);
577+ if (st_callbacks[3] != NULL) {
578+ st_callbacks[3](3U);
579579 }
580580 }
581581 #endif
--- trunk/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c (revision 15632)
+++ trunk/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c (revision 15633)
@@ -560,22 +560,22 @@
560560 #if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
561561 #if ST_LLD_NUM_ALARMS > 1
562562 if ((sr & TIM_SR_CC2IF) != 0U) {
563- if (st_callbacks[0] != NULL) {
564- st_callbacks[0](1U);
563+ if (st_callbacks[1] != NULL) {
564+ st_callbacks[1](1U);
565565 }
566566 }
567567 #endif
568568 #if ST_LLD_NUM_ALARMS > 2
569569 if ((sr & TIM_SR_CC3IF) != 0U) {
570- if (st_callbacks[1] != NULL) {
571- st_callbacks[1](2U);
570+ if (st_callbacks[2] != NULL) {
571+ st_callbacks[2](2U);
572572 }
573573 }
574574 #endif
575575 #if ST_LLD_NUM_ALARMS > 3
576576 if ((sr & TIM_SR_CC4IF) != 0U) {
577- if (st_callbacks[2] != NULL) {
578- st_callbacks[2](3U);
577+ if (st_callbacks[3] != NULL) {
578+ st_callbacks[3](3U);
579579 }
580580 }
581581 #endif
Show on old repository browser