fixed a small bug in ADC.c and ASC.h
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-1
@@ -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;
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-4
@@ -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();
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user