Skip to content
Snippets Groups Projects

HRTIM and power driver made more generic

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

The current HRTIM API is heavily dependent on the hardware, we need a more generic API to handle all types of board (twist, ownverter, custom). This commit introduce two modules :

  • A PWM driver to initialize every timer of the HRTIM, and set parameters such as switching frequency, modulation type, adc triggers..etc.
  • A power driver which is based on a device tree configuration to initialize all the timer with the parameters in the device tree, and control converter in buck or boost mode.

You can find more information on this wiki

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • After discussing with @cfoucher, we had the following remarks :

    • The device tree should be independent from SPIN hardware, and STM32 functions. It means that we need to replace timing unit (e.g. PWMA) with pin number (12 and 14), an DAC. We'll keep adc_trigger propriety for now and try to find a better solution to replace it.
    • Replacing propriety such as phase-shift or dead-time with default-phase-shift and default-dead-time as these parameters can be modified after by user.
  • added 3 commits

    • f0ace95a - Renaming owntech_power_driver to owntech_power_api
    • b5eb88ec - renaming power_init.c to power_init.cpp
    • 99eba947 - Changing device tree proprieties

    Compare with previous version

  • added 1 commit

    • f308a3ca - correcting input parameters for setAllAdcDecim, adding default return for spinNumberToTu

    Compare with previous version

  • added 1 commit

    • d42e26fc - adding a function to return master timer period

    Compare with previous version

  • Clément Foucher
  • Clément Foucher
  • Clément Foucher
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading