Skip to content

Commit cd4a023

Browse files
committed
Merge pull request esp8266#379 from me-no-dev/esp8266-sdk-1.0
Fix redefinition of SPI_BUSY and pwm
2 parents 25ae1db + 259067d commit cd4a023

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring_pwm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ void prep_pwm_steps(){
8282
}
8383
ETS_FRC1_INTR_DISABLE();
8484
pwm_steps_len = pwm_temp_steps_len;
85-
os_memcpy(pwm_steps, pwm_temp_steps, (pwm_temp_steps_len + 1) * 2);
86-
os_memcpy(pwm_steps_mask, pwm_temp_masks, pwm_temp_steps_len * 4);
85+
ets_memcpy(pwm_steps, pwm_temp_steps, (pwm_temp_steps_len + 1) * 2);
86+
ets_memcpy(pwm_steps_mask, pwm_temp_masks, pwm_temp_steps_len * 4);
8787
pwm_multiplier = ESP8266_CLOCK/(pwm_range * pwm_freq);
8888
ETS_FRC1_INTR_ENABLE();
8989
}

hardware/esp8266com/esp8266/cores/esp8266/esp8266_peri.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static uint8_t esp8266_gpioToFn[16] = {0x34, 0x18, 0x38, 0x14, 0x3C, 0x40, 0x1C,
278278

279279
//SPI_READY
280280
#define SPIRDY ESP8266_DREG(0x0C)
281-
#define SPIBUSY 9 //wait SPI idle
281+
#define SPI_BUSY 9 //wait SPI idle
282282

283283
//SPI0 Registers (SPI0 is used for the flash)
284284
#define SPI0CMD ESP8266_REG(0x200)

0 commit comments

Comments
 (0)