frac32 voltage ratio (64u = 3.3V)
frac32 voltage ratio (64u = 3.3V)
None
palSetPadMode(GPIOA, 4, PAL_MODE_INPUT_ANALOG);
palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG);
RCC->APB1ENR |= 0x20000000;
DAC->CR |= 0x00030003;
DAC->DHR12R1 = inlet_PA4 >> 15;
DAC->DHR12R2 = inlet_PA5 >> 15;
DAC->CR = 0x0;
RCC->APB1ENR &= ~0x20000000;