dac driver implementation on stm32f4discovery(squashed)