fixed a small bug in ADC.c and ASC.h
This commit is contained in:
2
main/ADC.c
Normal file → Executable file
2
main/ADC.c
Normal file → Executable 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
0
main/CMakeLists.txt
Normal file → Executable file
0
main/GPIO.c
Normal file → Executable file
0
main/GPIO.c
Normal file → Executable file
0
main/Kconfig.projbuild
Normal file → Executable file
0
main/Kconfig.projbuild
Normal file → Executable file
0
main/app_main.c
Normal file → Executable file
0
main/app_main.c
Normal file → Executable file
0
main/functions.c
Normal file → Executable file
0
main/functions.c
Normal file → Executable file
0
main/idf_component.yml
Normal file → Executable file
0
main/idf_component.yml
Normal file → Executable file
5
main/include/ADC.h
Normal file → Executable file
5
main/include/ADC.h
Normal file → Executable 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
0
main/include/GPIO.h
Normal file → Executable file
0
main/include/functions.h
Normal file → Executable file
0
main/include/functions.h
Normal file → Executable file
0
main/include/mcpwm.h
Normal file → Executable file
0
main/include/mcpwm.h
Normal file → Executable file
0
main/mcpwm.c
Normal file → Executable file
0
main/mcpwm.c
Normal file → Executable file
Reference in New Issue
Block a user