Skip to content

Commit

Permalink
Merge pull request letscontrolit#3001 from uzi18/dallas_esp32
Browse files Browse the repository at this point in the history
P004_dallas: esp32 optimisation - move bit read/write to IRAM
  • Loading branch information
TD-er authored Apr 15, 2020
2 parents 89355b0 + 2161a16 commit 515ba7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/_P004_Dallas.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#if defined(ESP32)
# define ESP32noInterrupts() { portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED; portENTER_CRITICAL(&mux)
# define ESP32interrupts() portEXIT_CRITICAL(&mux); }

// https://github.com/espressif/arduino-esp32/issues/1335
uint8_t Plugin_004_DS_read_bit(int8_t Plugin_004_DallasPin) ICACHE_RAM_ATTR;
void Plugin_004_DS_write_bit(uint8_t v, int8_t Plugin_004_DallasPin) ICACHE_RAM_ATTR;

#endif // if defined(ESP32)

#include "_Plugin_Helper.h"
Expand Down

0 comments on commit 515ba7b

Please sign in to comment.