mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
OneWire check arduino version
This commit is contained in:
@@ -123,6 +123,12 @@
|
||||
#define IO_REG_TYPE uint32_t
|
||||
#define IO_REG_BASE_ATTR
|
||||
#define IO_REG_MASK_ATTR
|
||||
#if __has_include("esp_arduino_version.h")
|
||||
#include "esp_arduino_version.h"
|
||||
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
|
||||
#define rtc_gpio_desc rtc_io_desc
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static inline __attribute__((always_inline)) IO_REG_TYPE directRead(IO_REG_TYPE pin) {
|
||||
if (pin < 32)
|
||||
|
||||
Reference in New Issue
Block a user