File tree 5 files changed +30
-28
lines changed
5 files changed +30
-28
lines changed Original file line number Diff line number Diff line change 1
1
#if 1
2
2
#include "analog.h"
3
- #include <driver/adc .h>
3
+ #include <esp_adc/adc_oneshot .h>
4
4
#include "freertos/FreeRTOS.h"
5
5
#include "freertos/semphr.h"
6
6
#include "freertos/task.h"
11
11
#include "sdkconfig.h"
12
12
#define USE_SEMA 1
13
13
#include "soc/efuse_reg.h"
14
- #include < esp_int_wdt.h>
14
+ #include "esp_private/ esp_int_wdt.h"
15
15
16
16
17
17
#ifdef CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ
@@ -211,7 +211,7 @@ A(V) = [(240 -<Raw_Byte> ) * (<Volts_Div> / 25) - (<Volts_Div> * 4.6)]
211
211
212
212
A(V) + (<VD> * 4.6) = [(240 -<Raw_Byte> ) * (<VD> / 25) ]
213
213
214
- AV/VD + 4.6/VD = (240 -R) / 25
214
+ AV/VD + 4.6/VD = (240 - R) / 25
215
215
216
216
(AV/VD + 4.6/VD ) *25 = 240 - R
217
217
@@ -677,4 +677,3 @@ bool samples_finnished() {
677
677
678
678
return ret ;
679
679
}
680
- #endif
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ SOFTWARE.
39
39
#include "scpi_server.h"
40
40
#include "analog.h"
41
41
#include <driver/rmt.h>
42
- #include "driver/i2s .h"
43
- #include "driver/adc .h"
42
+ #include "driver/i2s_std .h"
43
+ #include "driver/adc_oneshot .h"
44
44
#include "app-config.h"
45
45
#include "Header.h"
46
46
#include "ota_server.h"
Original file line number Diff line number Diff line change 13
13
#include "nvs_flash.h"
14
14
#include "collector.h"
15
15
#include "driver/ledc.h"
16
+ #include <esp_adc/adc_oneshot.h>
17
+ #include <spi_flash_mmap.h>
18
+ #include <driver/i2s_std.h>
16
19
17
20
#ifdef CONFIG_IDF_TARGET_ESP32
18
21
#define LEDC_HS_TIMER LEDC_TIMER_0
@@ -708,7 +711,7 @@ void i2s_parallel_setup(const i2s_parallel_config_t *cfg) {
708
711
// Clear flags which are used in I2S serial mode
709
712
//I2S0.sample_rate_conf.rx_bits_mod = 8;
710
713
I2S0 .sample_rate_conf .rx_bits_mod = 16 ;
711
- //dev->sample_rate_conf.rx_bck_div_num = 16; //ToDo: Unsure about what this does...
714
+ //dev->sample_rate_conf.tx_bck_div_num = 16; //ToDo: Unsure about what this does...
712
715
I2S0 .sample_rate_conf .rx_bck_div_num = 1 ; // datasheet says this must be 2 or greater (but 1 seems to work)
713
716
714
717
// this combination is 20MHz
@@ -1001,4 +1004,4 @@ uint8_t* get_values() {
1001
1004
}
1002
1005
1003
1006
1004
- #endif
1007
+ #endif
Original file line number Diff line number Diff line change @@ -330,4 +330,4 @@ uint8_t* get_values() {
330
330
//return((uint16_t*)s_state->dma_buf[0]);
331
331
return ((uint8_t * )dma_buff );
332
332
}
333
- #endif
333
+ #endif
Original file line number Diff line number Diff line change 1
- ; PlatformIO Project Configuration File
2
- ;
3
- ; Build options: build flags, source filter
4
- ; Upload options: custom upload port, speed and extra flags
5
- ; Library options: dependencies, extra library storages
6
- ; Advanced options: extra scripting
7
- ;
8
- ; Please visit documentation for the other options and examples
9
- ; http://docs.platformio.org/page/projectconf.html
10
-
11
- [platformio]
12
- src_dir = main
13
- lib_dir = components
14
-
15
- [env:esp32dev]
16
- platform = espressif32
17
- board = esp32dev
18
- framework = espidf
19
- lib_deps = libscpi
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; http://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ src_dir = main
13
+ lib_dir = components
14
+
15
+ [env:esp32dev]
16
+ platform = espressif32
17
+ board = esp32dev
18
+ framework = espidf
19
+ lib_deps = libscpi, esp_adc
You can’t perform that action at this time.
0 commit comments