Files
BA_DIY_Power_PCB/main/include/ADC.h
der_zaske 56f6c33124 changed structer of whole Project
-Added GPIO.c
-Added ADC.c
-Added mcpwm.c
-Added all headrs for new files
-Fixed Header usage
-Fixed parsed pins only import  once
2025-01-26 01:07:40 +01:00

13 lines
438 B
C

#ifndef GPIO_H
#define GPIO_H
#include "esp_adc/adc_oneshot.h"
extern adc_cali_handle_t cali_handle;
adc_oneshot_unit_handle_t configure_ADC1();
uint32_t get_voltage_in(adc_oneshot_unit_handle_t adc1_handle);
uint32_t get_torque(adc_oneshot_unit_handle_t adc1_handle);
int32_t get_current_ASC712(adc_oneshot_unit_handle_t adc1_handle, int ADC_pin);
int32_t get_current_bridge(adc_oneshot_unit_handle_t adc1_handle, int ADC_pin);
#endif