Skip to content

Commit

Permalink
mux setup for esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
midilab committed Jan 2, 2023
1 parent 08e62bd commit b000830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
//
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP32)
hw_timer_t * _uclockTimer = NULL;
portMUX_TYPE _uclockTimerMux = portMUX_INITIALIZER_UNLOCKED;
#define TIMER_ID 0
#endif

//
// multicore archs
//
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP32)
portMUX_TYPE _uclockTimerMux = portMUX_INITIALIZER_UNLOCKED;
#define ATOMIC(X) portENTER_CRITICAL_ISR(&_uclockTimerMux); X; portEXIT_CRITICAL_ISR(&_uclockTimerMux);
//
// singlecore archs
Expand Down

0 comments on commit b000830

Please sign in to comment.