File tree Expand file tree Collapse file tree 13 files changed +25
-156
lines changed Expand file tree Collapse file tree 13 files changed +25
-156
lines changed Original file line number Diff line number Diff line change 38
38
39
39
#include <esp_err.h>
40
40
#include <esp_log.h>
41
- #if CONFIG_IDF_TARGET_ESP32
42
- #include <esp32/rom/ets_sys.h>
43
- #elif CONFIG_IDF_TARGET_ESP32S2
44
- #include <esp32s2/rom/ets_sys.h>
45
- #elif CONFIG_IDF_TARGET_ESP32S3
46
- #include <esp32s3/rom/ets_sys.h>
47
- #elif CONFIG_IDF_TARGET_ESP32C3
48
- #include <esp32c3/rom/ets_sys.h>
49
- #elif CONFIG_IDF_TARGET_ESP32H2
50
- #include <esp32h2/rom/ets_sys.h>
51
- #elif CONFIG_IDF_TARGET_ESP32C2
52
- #include <esp32c2/rom/ets_sys.h>
53
- #endif
41
+ #include <ets_sys.h>
54
42
#include <esp_idf_lib_helpers.h>
55
43
56
44
#define I2C_FREQ_HZ 1000000 // Max 1MHz for esp-idf
Original file line number Diff line number Diff line change 43
43
#include <freertos/FreeRTOS.h>
44
44
#include <string.h>
45
45
#include <esp_log.h>
46
- #if CONFIG_IDF_TARGET_ESP32
47
- #include <esp32/rom/ets_sys.h>
48
- #elif CONFIG_IDF_TARGET_ESP32S2
49
- #include <esp32s2/rom/ets_sys.h>
50
- #elif CONFIG_IDF_TARGET_ESP32S3
51
- #include <esp32s3/rom/ets_sys.h>
52
- #elif CONFIG_IDF_TARGET_ESP32C3
53
- #include <esp32c3/rom/ets_sys.h>
54
- #elif CONFIG_IDF_TARGET_ESP32H2
55
- #include <esp32h2/rom/ets_sys.h>
56
- #elif CONFIG_IDF_TARGET_ESP32C2
57
- #include <esp32c2/rom/ets_sys.h>
58
- #endif
46
+ #include <ets_sys.h>
59
47
#include <esp_idf_lib_helpers.h>
60
48
61
49
// DHT timer precision in microseconds
Original file line number Diff line number Diff line change 40
40
*/
41
41
#include <freertos/FreeRTOS.h>
42
42
#include <string.h>
43
- #if CONFIG_IDF_TARGET_ESP32
44
- #include <esp32/rom/ets_sys.h>
45
- #elif CONFIG_IDF_TARGET_ESP32S2
46
- #include <esp32s2/rom/ets_sys.h>
47
- #elif CONFIG_IDF_TARGET_ESP32S3
48
- #include <esp32s3/rom/ets_sys.h>
49
- #elif CONFIG_IDF_TARGET_ESP32C3
50
- #include <esp32c3/rom/ets_sys.h>
51
- #elif CONFIG_IDF_TARGET_ESP32H2
52
- #include <esp32h2/rom/ets_sys.h>
53
- #elif CONFIG_IDF_TARGET_ESP32C2
54
- #include <esp32c2/rom/ets_sys.h>
55
- #endif
43
+ #include <ets_sys.h>
56
44
#include <esp_idf_lib_helpers.h>
57
45
#include "ds1302.h"
58
46
Original file line number Diff line number Diff line change
1
+ #if CONFIG_IDF_TARGET_ESP32
2
+ #include <esp32/rom/ets_sys.h>
3
+ #elif CONFIG_IDF_TARGET_ESP32S2
4
+ #include <esp32s2/rom/ets_sys.h>
5
+ #elif CONFIG_IDF_TARGET_ESP32S3
6
+ #include <esp32s3/rom/ets_sys.h>
7
+ #elif CONFIG_IDF_TARGET_ESP32C3
8
+ #include <esp32c3/rom/ets_sys.h>
9
+ #elif CONFIG_IDF_TARGET_ESP32H2
10
+ #include <esp32h2/rom/ets_sys.h>
11
+ #elif CONFIG_IDF_TARGET_ESP32C2
12
+ #include <esp32c2/rom/ets_sys.h>
13
+ #endif
Original file line number Diff line number Diff line change 39
39
#include <string.h>
40
40
#include <esp_system.h>
41
41
#include <esp_idf_lib_helpers.h>
42
- #if CONFIG_IDF_TARGET_ESP32
43
- #include <esp32/rom/ets_sys.h>
44
- #elif CONFIG_IDF_TARGET_ESP32S2
45
- #include <esp32s2/rom/ets_sys.h>
46
- #elif CONFIG_IDF_TARGET_ESP32S3
47
- #include <esp32s3/rom/ets_sys.h>
48
- #elif CONFIG_IDF_TARGET_ESP32C3
49
- #include <esp32c3/rom/ets_sys.h>
50
- #elif CONFIG_IDF_TARGET_ESP32H2
51
- #include <esp32h2/rom/ets_sys.h>
52
- #elif CONFIG_IDF_TARGET_ESP32C2
53
- #include <esp32c2/rom/ets_sys.h>
54
- #endif
42
+ #include <ets_sys.h>
55
43
#include "hd44780.h"
56
44
57
45
#define MS 1000
Original file line number Diff line number Diff line change 37
37
#include <freertos/FreeRTOS.h>
38
38
#include <freertos/task.h>
39
39
#include <esp_timer.h>
40
- #if CONFIG_IDF_TARGET_ESP32
41
- #include <esp32/rom/ets_sys.h>
42
- #elif CONFIG_IDF_TARGET_ESP32S2
43
- #include <esp32s2/rom/ets_sys.h>
44
- #elif CONFIG_IDF_TARGET_ESP32S3
45
- #include <esp32s3/rom/ets_sys.h>
46
- #elif CONFIG_IDF_TARGET_ESP32C3
47
- #include <esp32c3/rom/ets_sys.h>
48
- #elif CONFIG_IDF_TARGET_ESP32H2
49
- #include <esp32h2/rom/ets_sys.h>
50
- #elif CONFIG_IDF_TARGET_ESP32C2
51
- #include <esp32c2/rom/ets_sys.h>
52
- #endif
40
+ #include <ets_sys.h>
53
41
#include <esp_idf_lib_helpers.h>
54
42
#include "hx711.h"
55
43
Original file line number Diff line number Diff line change 34
34
#include <esp_log.h>
35
35
#include <esp_attr.h>
36
36
#include <stdlib.h>
37
- #if CONFIG_IDF_TARGET_ESP32
38
- #include <esp32/rom/ets_sys.h>
39
- #elif CONFIG_IDF_TARGET_ESP32S2
40
- #include <esp32s2/rom/ets_sys.h>
41
- #elif CONFIG_IDF_TARGET_ESP32S3
42
- #include <esp32s3/rom/ets_sys.h>
43
- #elif CONFIG_IDF_TARGET_ESP32C3
44
- #include <esp32c3/rom/ets_sys.h>
45
- #elif CONFIG_IDF_TARGET_ESP32H2
46
- #include <esp32h2/rom/ets_sys.h>
47
- #elif CONFIG_IDF_TARGET_ESP32C2
48
- #include <esp32c2/rom/ets_sys.h>
49
- #endif
37
+ #include <ets_sys.h>
50
38
#include <esp_idf_lib_helpers.h>
51
39
52
40
#if HELPER_TARGET_IS_ESP8266
Original file line number Diff line number Diff line change 47
47
#include <esp_log.h>
48
48
#include <freertos/FreeRTOS.h>
49
49
#include <freertos/task.h>
50
- #if CONFIG_IDF_TARGET_ESP32
51
- #include <esp32/rom/ets_sys.h>
52
- #elif CONFIG_IDF_TARGET_ESP32S2
53
- #include <esp32s2/rom/ets_sys.h>
54
- #elif CONFIG_IDF_TARGET_ESP32S3
55
- #include <esp32s3/rom/ets_sys.h>
56
- #elif CONFIG_IDF_TARGET_ESP32C3
57
- #include <esp32c3/rom/ets_sys.h>
58
- #elif CONFIG_IDF_TARGET_ESP32H2
59
- #include <esp32h2/rom/ets_sys.h>
60
- #elif CONFIG_IDF_TARGET_ESP32C2
61
- #include <esp32c2/rom/ets_sys.h>
62
- #endif
50
+ #include <ets_sys.h>
63
51
64
52
#define I2C_FREQ_HZ 400000 // 400 kHz
65
53
Original file line number Diff line number Diff line change 52
52
#include <string.h>
53
53
#include <freertos/FreeRTOS.h>
54
54
#include <freertos/task.h>
55
- #if CONFIG_IDF_TARGET_ESP32
56
- #include <esp32/rom/ets_sys.h>
57
- #elif CONFIG_IDF_TARGET_ESP32S2
58
- #include <esp32s2/rom/ets_sys.h>
59
- #elif CONFIG_IDF_TARGET_ESP32S3
60
- #include <esp32s3/rom/ets_sys.h>
61
- #elif CONFIG_IDF_TARGET_ESP32C3
62
- #include <esp32c3/rom/ets_sys.h>
63
- #elif CONFIG_IDF_TARGET_ESP32H2
64
- #include <esp32h2/rom/ets_sys.h>
65
- #elif CONFIG_IDF_TARGET_ESP32C2
66
- #include <esp32c2/rom/ets_sys.h>
67
- #endif
55
+ #include <ets_sys.h>
68
56
#include <esp_idf_lib_helpers.h>
69
57
#include "onewire.h"
70
58
Original file line number Diff line number Diff line change 42
42
43
43
#include <esp_system.h>
44
44
#include <esp_log.h>
45
- #if CONFIG_IDF_TARGET_ESP32
46
- #include <esp32/rom/ets_sys.h>
47
- #elif CONFIG_IDF_TARGET_ESP32S2
48
- #include <esp32s2/rom/ets_sys.h>
49
- #elif CONFIG_IDF_TARGET_ESP32S3
50
- #include <esp32s3/rom/ets_sys.h>
51
- #elif CONFIG_IDF_TARGET_ESP32C3
52
- #include <esp32c3/rom/ets_sys.h>
53
- #elif CONFIG_IDF_TARGET_ESP32H2
54
- #include <esp32h2/rom/ets_sys.h>
55
- #elif CONFIG_IDF_TARGET_ESP32C2
56
- #include <esp32c2/rom/ets_sys.h>
57
- #endif
45
+ #include <ets_sys.h>
58
46
59
47
#define I2C_FREQ_HZ 1000000 // 1 Mhz
60
48
You can’t perform that action at this time.
0 commit comments