Skip to content

Misc updates for latest ESP-IDF compatibility - #45

Open
guruprasadah wants to merge 16 commits into
bitluni:masterfrom
guruprasadah:master
Open

Misc updates for latest ESP-IDF compatibility#45
guruprasadah wants to merge 16 commits into
bitluni:masterfrom
guruprasadah:master

Conversation

@guruprasadah

Copy link
Copy Markdown

AI Assisted code fix that updates certain function calls (names, arguments) with preprocessor safeguards for backwards compatibility.

marciot and others added 16 commits October 14, 2021 20:12
- APLL: wrap the split rtc_clk_apll_enable(bool) + rtc_clk_apll_coeff_set()
  API (ESP-IDF >= 5.0) behind the historical 5-argument signature so the
  existing call sites compile unchanged.
- LEDC: use the new pin-based ledcAttach()/ledcWrite(pin, ...) API on
  Arduino-ESP32 3.x, falling back to ledcSetup()/ledcAttachPin() on
  older cores.
- DAC: use DAC_CHAN_0 instead of the deprecated DAC_CHANNEL_1 alias.
- ISR: cast the lldesc_t buf pointer to volatile void* to fix the
  const-volatile conversion error, and drop IRAM_ATTR from the
  video_isr forward declaration to avoid a conflicting section
  attribute warning.
- Silence -Wformat (%d for an int) and -Wxor-used-as-pow (hex constants)
  warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants