fixed a small bug in ADC.c and ASC.h

This commit is contained in:
2025-02-02 18:31:45 +01:00
parent 14191cbef9
commit e098ab6c7a
30 changed files with 2 additions and 5 deletions

2
main/ADC.c Normal file → Executable file
View File

@@ -4,7 +4,7 @@
#include "esp_adc/adc_cali_scheme.h"
#include "esp_log.h"
#include "parsed_pins.h"
#include "esp_adc/adc_oneshot.h"
static portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
static adc_cali_handle_t cali_handle = NULL;

0
main/CMakeLists.txt Normal file → Executable file
View File

0
main/GPIO.c Normal file → Executable file
View File

0
main/Kconfig.projbuild Normal file → Executable file
View File

0
main/app_main.c Normal file → Executable file
View File

0
main/functions.c Normal file → Executable file
View File

0
main/idf_component.yml Normal file → Executable file
View File

5
main/include/ADC.h Normal file → Executable file
View File

@@ -1,9 +1,6 @@
#ifndef GPIO_H
#define GPIO_H
#include "esp_adc/adc_oneshot.h"
#include <stdint.h>
void configure_ADC1();
uint32_t get_voltage_in();
uint32_t get_torque();

0
main/include/GPIO.h Normal file → Executable file
View File

0
main/include/functions.h Normal file → Executable file
View File

0
main/include/mcpwm.h Normal file → Executable file
View File

0
main/mcpwm.c Normal file → Executable file
View File