D/A converter exercises




DAC configuration

Write a function that configures the DACs. The input parameters are: the DAC to be configured, output mode (current range), justification, update source. Set the corresponding port pin to analog mode as well.