git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_20.3.x@15633 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2022-05-22 06:58:10 +00:00 committed by Andrey
parent 37683fed19
commit 90de822a00
1 changed files with 6 additions and 6 deletions

View File

@ -465,22 +465,22 @@ void st_lld_serve_interrupt(void) {
#if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING #if OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING
#if ST_LLD_NUM_ALARMS > 1 #if ST_LLD_NUM_ALARMS > 1
if ((sr & TIM_SR_CC2IF) != 0U) { if ((sr & TIM_SR_CC2IF) != 0U) {
if (st_callbacks[0] != NULL) { if (st_callbacks[1] != NULL) {
st_callbacks[0](1U); st_callbacks[1](1U);
} }
} }
#endif #endif
#if ST_LLD_NUM_ALARMS > 2 #if ST_LLD_NUM_ALARMS > 2
if ((sr & TIM_SR_CC3IF) != 0U) { if ((sr & TIM_SR_CC3IF) != 0U) {
if (st_callbacks[1] != NULL) { if (st_callbacks[2] != NULL) {
st_callbacks[1](2U); st_callbacks[2](2U);
} }
} }
#endif #endif
#if ST_LLD_NUM_ALARMS > 3 #if ST_LLD_NUM_ALARMS > 3
if ((sr & TIM_SR_CC4IF) != 0U) { if ((sr & TIM_SR_CC4IF) != 0U) {
if (st_callbacks[2] != NULL) { if (st_callbacks[3] != NULL) {
st_callbacks[2](3U); st_callbacks[3](3U);
} }
} }
#endif #endif