Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Jan 1, 2023
1 parent e44e1a9 commit 7279c66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sming/Arch/Esp32/Core/HardwarePWM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* | | | h_timer 1 | --> | | | | | l_timer 1 | --> | | | |
* | | +-----------+ | | +--------+ | | +-----------+ | | +--------+ | |
* | | | | --> | h_ch 3 | | | | | --> | l_ch 3 | | |
* | | | | +--------+ | | | | +--------+ | |
* | | | MUX | | | | MUX | | |
* | | | | +--------+ | | | | +--------+ | |
* | | | | --> | h_ch 4 | | | | | --> | l_ch 4 | | |
Expand Down Expand Up @@ -108,6 +109,9 @@
* functions are basically per pin, this needs to be an extension of the overal model, exposing at least timers.
* This, too, will require a compatible "basic" interface and an advanced interface that allows assiging pins (channels)
* to timers and the configuration of the timers themselves.
* The esp_idf does not provide a way to read the bit width configured for a channel, but I think it'll be useful to be able
* to read back this value, not least to find the value for getMaxDuty() for a channel. It will either have to be stored in the
* module or maybe read from the hardware directly (LEDC_[HL]STIMERx_CONF_REG & 0x1f)
*
* hardware technical reference:
* =============================
Expand Down

0 comments on commit 7279c66

Please sign in to comment.