Skip to content

Commit

Permalink
cpu/esp32: fix DAC documentation for ESP32-S2
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Feb 17, 2023
1 parent 99e07a6 commit 2ac4189
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpu/esp32/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ as DAC channels with the #dac_init function, they can be used for other
purposes.

DACs are currently only supported for the \ref esp32_dac_channels_esp32
"ESP32 SoC" variant.
"ESP32 SoC" and the \ref esp32_dac_channels_esp32s2 "ESP32-S2 SoC" variant.

[Back to table of contents](#esp32_toc)

Expand Down
8 changes: 6 additions & 2 deletions cpu/esp32/doc_esp32s2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ GPIO13 | In/Out | X | X | X | - | -
GPIO14 | In/Out | X | X | X | - | -
GPIO15 | In/Out | X | X | X | XTAL_32K_P | External 32k crystal
GPIO16 | In/Out | X | X | X | XTAL_32K_N | External 32k crystal
GPIO17 | In/Out | X | X | X | - | -
GPIO18 | In/Out | X | X | X | - | -
GPIO17 | In/Out | X | X | X | DAC1 | -
GPIO18 | In/Out | X | X | X | DAC2 | -
GPIO19 | In/Out | X | X | X | USB D- | USB 2.0 OTG / USB-JTAG bridge
GPIO20 | In/Out | X | X | X | USB D+ | USB 2.0 OTG / USB-JTAG bridge
GPIO21 | In/Out | - | X | X | - | -
Expand Down Expand Up @@ -174,6 +174,10 @@ total:
that is at GPIO11 ... GPIO20.
- GPIO3 is a strapping pin und shouldn't be used as ADC channel

## DAC Channels {#esp32_dac_channels_esp32s2}

ESP32 SoC supports 2 DAC lines at GPIO17 and GPIO18.

## I2C Interfaces {#esp32_i2c_interfaces_esp32s2}

ESP32-S2 has two built-in I2C interfaces.
Expand Down

0 comments on commit 2ac4189

Please sign in to comment.