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

   ## Summary
   This PR adds support to GPIO Subsystem for STM32F401RC RS485 board.
   
   ## Impact
   Users will be able to use GPIO subsystem, including adding GPIO as Output, 
Input and Input with Interruption.
   
   ## Testing
   - Select NSH or USBNSH Config.
   - Use Menuconfig to enable CONFIG_DEV_GPIO  and CONFIG_EXAMPLES_GPIO
   - Build and load the firmware in the board
   - Access NuttShell and use gpio command:
   ```
   nsh> gpio -o 0 /dev/gpio1
   Driver: /dev/gpio1
     Output pin:    Value=1
     Writing:       Value=0
     Verify:        Value=0
   nsh> gpio -o 1 /dev/gpio1
   Driver: /dev/gpio1
     Output pin:    Value=0
     Writing:       Value=1
     Verify:        Value=1
   nsh> gpio /dev/gpio0
   Driver: /dev/gpio0
     Input pin:     Value=0
   nsh> gpio -w 1 /dev/gpio2
   Driver: /dev/gpio2
     Interrupt pin: Value=0
     Verify:        Value=1
   ```
   


-- 
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