Allow custom DC/DC control functions
A Kconfig CUSTOM_DCDC_CONTROLLER is introduced to enable implementation of more sophisticated control functions than the standard perturb and observe. A function dcdc_low_level_controller() must be implemented and is called from the DMA interrupt after each new current sensor reading. The default Dcdc::control() function is defined __weak.
This commit is contained in:
+1
-1
@@ -162,7 +162,7 @@ int Dcdc::check_start_conditions()
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Dcdc::control()
|
||||
__weak void Dcdc::control()
|
||||
{
|
||||
if (half_bridge_enabled()) {
|
||||
const char *stop_reason = NULL;
|
||||
|
||||
Reference in New Issue
Block a user