VREFBUF driver

OwnTech VREFBUF driver Zephyr Module is in charge of OwnTech Power Converter VREFBUF peripheral.

When the module is loaded, the VREFBUF peripheral of the STM32 is configured to output 2.048 V as voltage reference for ADCs and DACs.

The module does not expose any public function.

Technical information

This driver has an almost-Zephyr-style implementation. It does use the standard DEVICE_DEFINE() macro that allows it to be loaded automatically if the module is enabled. However, it does not condition its loading to any node presence in the device tree nor apply the board-agnostic layer used by Zephyr to allow generic driver.

Enabling or disabling the module

The module is loaded by default. The user explicitly has to set CONFIG_OWNTECH_VREFBUF_DRIVER=n in prj.conf to prevent the module from loading. However, this module is required for good operation of the board, and should not be disabled.