Skip to content
Snippets Groups Projects
  1. Feb 08, 2023
    • Clément Foucher's avatar
      Reorganize zephyr folder: put dts files in their correct place according to Zephyr documentation. · c1bba598
      Clément Foucher authored
      Add an overlay file for Nucleo G474RE because it wasn't possible to use that board any more.
      Removed unnecessary compiler option from platformio.ini.
      c1bba598
    • Clément Foucher's avatar
      Small improvements to Data Acquisition, Scheduling and GPIO modules. · fa833c73
      Clément Foucher authored
      Data Acquisition module:
      - Get rid of static qualifiers that add complexity to code and are useless if user use the module correctly (i.e. does not instantiate its own object).
      - Add guards to prevent accessing module functions when it is not started.
      - Rewrite functions comments to ease API understanding.
      - Corrected voltage offsets that were invalidated by conversion formula change.
      
      Scheduling module:
      - Add an initial value of "uninitialized" for interrupt source.
      - Use typedef enum instead of enum class: prefix not mandatory any more.
      
      GPIO module:
      - Just add small comments to public include file to better understand file sections.
      fa833c73
  2. Jan 31, 2023
    • Clément Foucher's avatar
      Introduced a configuration for uninterruptible task source event. · 8b83764d
      Clément Foucher authored
      Now, by default, HRTIM will be the source of the uninterruptible task trigger.
      However, as this require HRTIM to be initialized, Timer 6 is kept as an option for uses that do not involve HRTIM.
      
      Also:
      - Introduced a function to obtain HRTIM period in µs, and corrected a misleading comment on the existing function.
      8b83764d
  3. Jan 25, 2023
  4. Jan 20, 2023
  5. Jan 18, 2023
  6. Jan 12, 2023
  7. Dec 13, 2022
  8. Nov 23, 2022
  9. Nov 22, 2022
  10. Nov 03, 2022
  11. Nov 02, 2022
    • Clément Foucher's avatar
      Update method to acquire Zephyr device structures · 7c36237c
      Clément Foucher authored
      This MR updates the code used to acquire Zephyr device structures, in order to get rid of the `device_get_binding()` calls.
      
      This allows to ensure statically (at compile time) that the drivers used by the code are correctly referenced wrt. drivers names in device tree, and to prevent code from using devices that are not enabled in device tree.
      7c36237c
  12. Oct 31, 2022
  13. Oct 06, 2022
    • Luiz Fernando Lavado Villa's avatar
      Patch to control the min-max duty cycle and the frequency of the Hrtim · f1e6ddf4
      Luiz Fernando Lavado Villa authored
      It is necessary to properly control the min and max duty cycle of the hrtim. Our code already does that, but it is not efficient neither does it give the possibility for the user to dynamically set other min/max values. This patch solves that.
      
      It is also necessary to give the user the possibility of setting the frequency of the HRTIM. This patch solves that at the leg driver level and provides the user with an access point.
      
      Both the frequency and the min/max duty cycles are set by default at 200kHz and 0.1/0.9 respectively.
      f1e6ddf4
  14. Oct 04, 2022
  15. Sep 29, 2022
    • Clément Foucher's avatar
      Include readPin function to GPIO API. · 21b5fbbe
      Clément Foucher authored
      21b5fbbe
    • Clément Foucher's avatar
      Define an API for GPIO easy handling. · 74974de7
      Clément Foucher authored
      74974de7
    • Luiz Fernando Lavado Villa's avatar
      This commit is a patch to address the issue of the Twist v1.1.2 board whose... · dce31eb4
      Luiz Fernando Lavado Villa authored
      This commit is a patch to address the issue of the Twist v1.1.2 board whose HRTIMA signals have been inverter in routing.
      
      This commit defines a new hardware version, the TWIST_V_1_1_2.
      This hardware version is then used to set up the control initialization sequence of the power legs, applying the necessary changest to leg 1 whose timer signals have been reversed in routing.
      There is also a correction on the hrtim_init_independent_mode functino that initializes the pwm_phase_shift variable as well as their leg dependent equivalents.
      This initalization is necessary to use the hrtim_interleaved_pwm_update function which uses the phase_shift variable when updating the duty cycle of interleaved buck and boost applicaitons.
      dce31eb4
  16. Sep 28, 2022
  17. Sep 27, 2022
  18. Sep 26, 2022
  19. Sep 19, 2022
  20. Jul 29, 2022
  21. Jul 25, 2022
  22. Jul 21, 2022
  23. Jul 19, 2022
    • Luiz Fernando Lavado Villa's avatar
      The HRTIM still lacks some functions needed for a fine management of the PWM... · 4130ab02
      Luiz Fernando Lavado Villa authored
      The HRTIM still lacks some functions needed for a fine management of the PWM generation. This PR adds several functions. 
      
      Deadtime management
      The deadtime can now be managed separately from the rising and falling edges.
      
      Phase shifting
      The phase of the second leg can now be updated dynamicall
      
      Bug fixes: 
      Readable Independent mode
      The independent mode can now be set as buck or boost instead of true or false, making it more readable.
      
      Extra features: 
      There is now a board version support for the SPIN board
      4130ab02
  24. Jul 13, 2022
  25. Jul 12, 2022
Loading