A colleague of mine is having an issue with the ESC HAL helper functions in esc_hw.c for the TI platform.
Specifically, in the void PDI_Isr(void)-function, the DIG_process(...)-invocation never happens as the &-flag-mask:
if(ESCvar.ALevent & (ESCREG_ALEVENT_SM2 & ESCREG_ALEVENT_SM3)) never matches.
In our fork we resolved this by changing the mask to:
(ESCREG_ALEVENT_SM2 | ESCREG_ALEVENT_SM3).
Is this change correct? Or is there some reason for the mask being this way that we are missing?
Hi,
A colleague of mine is having an issue with the ESC HAL helper functions in esc_hw.c for the TI platform. Specifically, in the
void PDI_Isr(void)
-function, theDIG_process(...)
-invocation never happens as the &-flag-mask:if(ESCvar.ALevent & (ESCREG_ALEVENT_SM2 & ESCREG_ALEVENT_SM3))
never matches. In our fork we resolved this by changing the mask to:(ESCREG_ALEVENT_SM2 | ESCREG_ALEVENT_SM3)
. Is this change correct? Or is there some reason for the mask being this way that we are missing?Kind regards, Matthijs