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

0
.gitignore vendored Normal file → Executable file
View File

0
CMakeLists.txt Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
components/ssd1306/CMakeLists.txt Normal file → Executable file
View File

0
components/ssd1306/Kconfig.projbuild Normal file → Executable file
View File

0
components/ssd1306/include/font8x8_basic.h Normal file → Executable file
View File

0
components/ssd1306/include/ssd1306.h Normal file → Executable file
View File

0
components/ssd1306/ssd1306.c Normal file → Executable file
View File

0
components/ssd1306/ssd1306_i2c_legacy.c Normal file → Executable file
View File

0
components/ssd1306/ssd1306_i2c_new.c Normal file → Executable file
View File

0
components/ssd1306/ssd1306_spi.c Normal file → Executable file
View File

0
dependencies.lock Normal file → Executable file
View File

0
generate_pins_header.py Normal file → Executable file
View File

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

@@ -4,7 +4,7 @@
#include "esp_adc/adc_cali_scheme.h" #include "esp_adc/adc_cali_scheme.h"
#include "esp_log.h" #include "esp_log.h"
#include "parsed_pins.h" #include "parsed_pins.h"
#include "esp_adc/adc_oneshot.h"
static portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED; static portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
static adc_cali_handle_t cali_handle = NULL; 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 #ifndef GPIO_H
#define GPIO_H #define GPIO_H
#include <stdint.h>
#include "esp_adc/adc_oneshot.h"
void configure_ADC1(); void configure_ADC1();
uint32_t get_voltage_in(); uint32_t get_voltage_in();
uint32_t get_torque(); 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

0
old_functions.c Normal file → Executable file
View File

0
old_functions.h Normal file → Executable file
View File

0
parsed_pins.h Normal file → Executable file
View File

0
sdkconfig Normal file → Executable file
View File

0
sdkconfig.old Normal file → Executable file
View File