work on current sense

This commit is contained in:
2023-11-09 18:50:34 -05:00
parent e76815fb03
commit c1d45aa443
18 changed files with 2324 additions and 1938 deletions

View File

@@ -1,12 +1,9 @@
#ifndef __ADC_H__
#define __ADC_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32g4xx_hal.h"
#include "stm32g4xx_hal_adc.h"
#include "communication/SimpleFOCDebug.h"
extern ADC_HandleTypeDef hadc1;
extern ADC_HandleTypeDef hadc2;
@@ -15,11 +12,7 @@ extern DMA_HandleTypeDef hdma_adc2;
void MX_ADC1_Init(void);
void MX_ADC2_Init(void);
#ifdef __cplusplus
}
#endif
void ADC_DMA_Init(ADC_HandleTypeDef* adcHandle);
#endif