xil-se / xildebug_sw

XilDebug is a CMSIS-DAP compliant debugger, UART bridge and power profiler all in one package.
5 stars 1 forks source link

power: Add abstraction layer to configure voltage and toggle dut_vdd_en #22

Closed kbeckmann closed 6 years ago

kbeckmann commented 6 years ago

Maybe this module should control the shunt switches too. Need feedback from ADC module.

kbeckmann commented 6 years ago

@arturo182 What do you think of the following?

app/power.h:

err_t power_init(void);
err_t power_dut_enable(bool enabled);
err_t power_dut_ldo_set(uint32_t millivolt);

power_init:

The other two functions are pretty self explanatory.

arturo182 commented 6 years ago

Sounds good except the power_dut_enable cause then you would get power_dut_enable(false), i think better would be power_dut_set_enabled