SLUUDM5 March 2026 MSPM0G1507 , MSPM0G1519 , MSPM0G3507 , MSPM0G3519
The modifiable macros for phase current channels are the ADC channels, the remaining configurations (ADC Instance and ADC Index) are hardcoded in the HAL_GD_ConfigureCurrentChannels() API, as shown in Figure 8-16.
Figure 8-17 shows the ADC channel macros of phase currents (in gateDriver.h file).
Depending on the current sensing method of the hardware design, users should overwrite source code of the HAL_GD_ConfigureCurrentChannels() API and ADC channel macros for phase currents in gateDriver.h file to sample phase current correctly.