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.
20 lines
377 B
C
20 lines
377 B
C
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Copyright (c) 2020 Martin Jäger / Libre Solar
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief Mock necessary functions and generated Devicetree or Kconfig defines from Zephyr
|
|
* for unit tests
|
|
*/
|
|
|
|
#ifndef __deprecated
|
|
#define __deprecated __attribute__((deprecated))
|
|
#endif
|
|
#ifndef __weak
|
|
#define __weak __attribute__((__weak__))
|
|
#endif
|