Skip to content

Commit

Permalink
Move _stopPWM in phase PWM to IRAM (esp8266#8048)
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net authored May 17, 2021
1 parent 25e1b3b commit 117f163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_waveform_phase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern "C" void enablePhaseLockedWaveform (void)

// No-op calls to override the PWM implementation
extern "C" void _setPWMFreq_weak(uint32_t freq) { (void) freq; }
extern "C" bool _stopPWM_weak(int pin) { (void) pin; return false; }
extern "C" IRAM_ATTR bool _stopPWM_weak(int pin) { (void) pin; return false; }
extern "C" bool _setPWM_weak(int pin, uint32_t val, uint32_t range) { (void) pin; (void) val; (void) range; return false; }


Expand Down

0 comments on commit 117f163

Please sign in to comment.