Skip to content

Commit

Permalink
use new esp-idf 5.1 DAC bindings (#289)
Browse files Browse the repository at this point in the history
* use new esp-idf 5.1 DAC bindings

- reference release notes https://github.com/espressif/esp-idf/blob/release/v5.1/docs/en/migration-guides/release-5.x/5.1/peripherals.rst

* always include driver/dac.h
  • Loading branch information
dtimm authored Mar 7, 2024
1 parent 979552d commit 7b50d86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/include/esp-idf/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,17 @@
#include "esp_adc/adc_continuous.h"
#endif
#include "driver/twai.h"

#if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S2)
#include "driver/dac.h"
#if ESP_IDF_VERSION_MAJOR > 5 || \
ESP_IDF_VERSION_MAJOR == 5 && ESP_IDF_VERSION_MINOR >= 1
#include "driver/dac_continuous.h"
#include "driver/dac_cosine.h"
#include "driver/dac_oneshot.h"
#endif
#endif

#include "driver/gpio.h"
#if ESP_IDF_VERSION_MAJOR > 4
#include "driver/gptimer.h"
Expand Down

0 comments on commit 7b50d86

Please sign in to comment.