eren-terzioglu opened a new pull request, #16350:
URL: https://github.com/apache/nuttx/pull/16350

   ## Summary
   
   <!-- This field should contain a summary of the changes. It will be 
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
   
   Sigma-Delta Modulation (SDM) peripheral support added to control use it as 
LED dimming, Simple DAC (8-bit), with the help of an active RC low-pass filter 
and so on.
   
   * Documentation/xtensa: Add SDM docs for esp32[-|-s2|-s3]
   
   Add SDM docs for Xtensa based Espressif devices
   
   * boards/xtensa: Add SDM peripheral board layer support for esp[-|-s2|-s3]
   
   Add SDM perpiheral board layer support for Xtensa based Espressif devices
   
   *  arch/xtensa: Add SDM peripheral support for esp32[-|-s2|-s3]
   
   Add SDM peripheral support for Xtensa based Espressif devices
   
   * Documentation/risc-v: Add SDM peripheral docs for esp32[-c3|-c6|-h2]
   
   Add SDM peripheral docs for risc-v based Espressif devices
   
   * boards/risc-v: Add board layer support of SDM for esp32[-c3|-c6|-h2]
   
   Add SDM board layer support for risc-v based Espressif devices
   
   * arch/risc-v: Add SDM support for esp32[-c3|-c6|-h2]
   
   Add SDM peripheral support for risc-v based Espressif devices
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: Yes, new peripheral SDM support added.
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No, old defconfigs can be used
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: Espressif chips (esp32, esp32s2, esp32s3, esp32c3, 
esp32c6 and esp32h2) had SDM peripheral support
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: Yes, related peripheral documentation added
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No, old defconfigs can be used
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   
   Following defconfigs used to build:
   
   ```
   esp32c3-generic:sdm
   esp32c6-devkitc:sdm
   esp32h2-devkit:sdm
   esp32-devkitc:sdm
   esp32s2-saola-1:sdm
   esp32s3-devkit:sdm
   ```
   
   Alternatively, you can use following command:
   
   ```
   make distclean; ./tools/configure.sh esp32c6-devkitc:nsh; kconfig-tweak -e 
CONFIG_ESP_SDM; kconfig-tweak -e CONFIG_EXAMPLES_DAC; make olddefconfig; make 
-n bootloader && make EXTRAFLAGS="-Wno-cpp -Werror" ESPTOOL_BINDIR=./ -s -j; 
make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 
ESPTOOL_BINDIR=../esp-bins/
   ```
   
   After build operation, simple led connected to default SDM pin (it is not a 
must, any other pin should work if configured) GPIO5.
   
   ### Running
   <!-- Provide how to run the test for each SoC being tested -->
   
   Following command used to test
   
   ```
   nsh> dac -d 100 -s 10 test
   ```
   
   ### Results
   <!-- Provide tests' results and runtime logs -->
   
   After the command led will light up with different brightness.
   
   Also DAC feature tested with basic low pass filter (one resistor and one 
capacitor) and a multimeter with `dac -d 5000 -s 32 test` command.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to