- Nov 03, 2022
-
-
One of the four communication methods uses a DAC for analog signal sharing. This commit implements a first non-tested version of this feature. Four files were modified to implement this feature: - The low layer dac_configuration.h and .cpp: These files allow access to the dac module and can set any dac to constant value mode. The constant value can also be set. - The HardwareConfiguration API: They give access to the low-leve configuration file to the user.
-
- Nov 02, 2022
-
-
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.
-
- Oct 31, 2022
-
-
Luiz Fernando Lavado Villa authored
There was an error on the code for the inversion of the legs for two modes: independent and inverter. This patch corrects this issue. The inverter mode had a problem on the `hrtim_configuration.c` file, the second leg was inverter and not the first. The independent mode had a problem on the `HardwareConfiguration.cpp` file, the sencond leg was inverter and not the first.
-
- Oct 06, 2022
-
-
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.
-
- Oct 04, 2022
-
-
Luiz Fernando Lavado Villa authored
Updates the hardware configuration to allow using the gpio api to drive the power drivers for high side mosfets. On the gpio side, the user now seamlessly activates the high side when activating the legs. On the adc side, the user can now set the point of measurement with a float from the main.cpp for better control of the measurement moment.
-
- Sep 29, 2022
-
-
Clément Foucher authored
-
Clément Foucher authored
-
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.
-
- Sep 28, 2022
-
-
Luiz Fernando Lavado Villa authored
This merge request corrects a small glitch on the trigger for the ADC for the O2 board. This was changed some time ago. It did not work when tested in practice.
-
- Sep 27, 2022
-
-
Jean Alinei authored
-
- Sep 26, 2022
-
-
Luiz Fernando Lavado Villa authored
- The ADC 2 event necessary to trigger conversion was wrongly set for the spin board and measurements were not working. - The gain and offset functions for V2 and i2 were not writing at the correct place on the gain table
-
- Sep 19, 2022
-
-
The old version of the SPIN board required inverting the RX/TX of the serial port. The new version does not need this inversion. This commit corrects a bug on the board version and allows choosing the correct SPIN version.
-
Provide a new communication API that rely on Thingset over CAN. As the module relies on a third-party module that has to be downloaded, it is not enable by default.
-
- Jul 29, 2022
-
-
Luiz Fernando Lavado Villa authored
-
- Jul 25, 2022
-
-
- Jul 21, 2022
-
-
- Jul 19, 2022
-
-
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
-
- Jul 13, 2022
-
-
Clément Foucher authored
-
Clément Foucher authored
-
Clément Foucher authored
-
Clément Foucher authored
-
Clément Foucher authored
-
Clément Foucher authored
-
Rewrote hrtim driver with LL APIs. Added Up-down mode (center aligned PWM) for buck, boost and independent mode. Corrected initialization errors for independent mode.
-
- Jul 12, 2022
-
-
Clément Foucher authored
-
- Apr 04, 2022
-
-
Luiz Fernando Lavado Villa authored
-
- Mar 30, 2022
-
-
Clément Foucher authored
Add capability for finer configuration of HRTIM ADC event generation; Separate event generation postscaler.
-
Clément Foucher authored
-
- Mar 29, 2022
-
-
Clément Foucher authored
-
Clément Foucher authored
-
- Mar 28, 2022
-
-
Clément Foucher authored
-
- Mar 25, 2022
-
-
Clément Foucher authored
Add ability to set discontinuous mode on ADCs; Add support for various trigger sources from HRTIM to ADCs.
-
- Mar 23, 2022
-
-
Clément Foucher authored
-
- Mar 16, 2022
-
-
Clément Foucher authored
-
- Mar 08, 2022
-
-
Clément Foucher authored
-
Clément Foucher authored
-
- Mar 03, 2022
-
-
Clément Foucher authored
-
Clément Foucher authored
-
- Mar 02, 2022
-
-
Clément Foucher authored
-
- Feb 25, 2022
-
-
Clément Foucher authored
New device tree organization, not based on Nucleo dts.
-