Merge branch 'feature/dedic_gpio_esp32s3' into 'master'

Dedicated gpio driver on esp32s3

Closes IDF-3387

See merge request espressif/esp-idf!14196
This commit is contained in:
morris
2021-07-06 03:20:04 +00:00
6 changed files with 69 additions and 68 deletions

View File

@@ -203,12 +203,7 @@ static inline void cpu_ll_write_dedic_gpio_all(uint32_t value)
static inline void cpu_ll_write_dedic_gpio_mask(uint32_t mask, uint32_t value)
{
// ToDo: check if ESP32-S3 supports mask write instruction
uint32_t orig = 0;
asm volatile("rur.gpio_out %0" : "=r"(orig) : :);
orig &= ~mask;
orig |= value & mask;
asm volatile("wur.gpio_out %0"::"r"(orig):);
asm volatile("ee.wr_mask_gpio_out %0, %1" : : "r"(value), "r"(mask):);
}
#ifdef __cplusplus