The idea is to use the same driver pins for PMSM(FOC based) and BLDC(own library) motors. FOC SDK 4.30 allows to initialize the same pins for only one type of motor (PMSM in my case). Is the any way to stop/delete the motor object to use these pins for BLDC?
The way I see it if PMSM is active:
2. Save settings for specified Timer(PWM) used for PMSM.
3. Initialize PWM for BLDC.
4. Use BLDC.
4. Restore saved setting.
5. Use PMSM.
I would really appreciate any help with this.