Skip to content

Current mode update

Ayoub Farah Hassan requested to merge afarahhass/core:Core_Imode into main

This commit updates owntech modules to implement the current mode.

Update of HRTIM module

  • Deleting unnecessary LL function generated by cubeMX, and replacing with clear functions.
  • The adc for leg2 was triggered previously by the timing unit's CMP4, this commit replace it with CMP3 as CMP4 is used for current mode.

Update of DAC module

  • Adding more trigger for sawtooth generation.
  • Adding "External and Internal" mode for DAC output mode.
  • Update dac_stm32_function_update_reset and dac_stm32_function_update_step to delete the lines disabling/enabling the DACs.

Update of Comparator module

  • Comparator 1 is now linked to DAC3 and comparator 3 to DAC1.

Update of Hardware Configuration module

  • Adding essential functions to set the current mode.
  • Adding comparator_configuration files, adding changes to cmake and Kconfig in hardware configuration to include the comparator drivers.
Edited by Ayoub Farah Hassan

Merge request reports