fdcavalcanti opened a new pull request, #19976:
URL: https://github.com/apache/nuttx/pull/19976

   
   ## 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 -->
   
   * Documentation: add gpio defconfig to esp32p4-tab5 board
   
   Adds documentation for the GPIO defconfig on esp32p4-tab5 board.
   
   * boards/risc-v: GPIO support on esp32p4-tab5
   
   Adds GPIO defconfig on M5Stack Tab5. The example has one GPIO output
   and one GPIO interrupt.
   
   This PR adds GPIO support for the M5Stack Tab5 board.
   The GPIOs available on the M5-Bus on the backside of the device are defined 
for easier reference.
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: New defconfig added for GPIO control.
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No.
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: Only affects `esp32p4-tab5` board.
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: Adds documentation for the new defconfig.
   <!-- 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.
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   - ./tools/configure.sh -S esp32p4-tab5:gpio
   - make and flash
   
   ### Running
   GPIO output test:
   ```
   nsh> gpio -o 1 /dev/gpio0
   Driver: /dev/gpio0
     Output pin:    Value=0
     Writing:       Value=1
     Verify:        Value=1
   nsh> gpio -o 0 /dev/gpio0
   Driver: /dev/gpio0
     Output pin:    Value=1
     Writing:       Value=0
     Verify:        Value=0
   nsh> 
   ```
   
   GPIO interrupt test:
   
   ```
   nsh> gpio -w 1 /dev/gpio1
   Driver: /dev/gpio1
     Interrupt pin: Value=0
     Verify:        Value=0
   nsh> 
   ```
   
   ### Results
   GPIO operates as expected both output and interrupt modes (visual/manual 
inspection).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to