Start implementation of PT1000 ADC measurement

This commit is contained in:
2020-02-02 01:49:37 +01:00
parent f9eb3c676b
commit 02a673546e
5 changed files with 145 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#include <system_stm32f4xx.h>
#include <stdlib.h>
#include <string.h>
#include <adc-meas.h>
#define OUTPUT(pin) (0b01 << (pin * 2))
#define ANALOG(pin) (0x03 << (pin * 2))
@@ -101,6 +102,7 @@ int main() {
systick_setup();
setup_dma(&adc_results, 3);
adc_pt1000_setup_meas();
ADC1->CR2 |= ADC_CR2_SWSTART;