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

   ## Summary
   
   This driver implements a FT2232H GPIO integration NuttX sim to allow users 
to read/write external GPIOs.
   It will helps to control external devices using NuttX sim.
   
   The next steps will be adding SPI and I2C integration support.
   
   ## Impact
   
   User will be able to use a FT2232H module to read/write external GPIO
   
   ## Testing
   
   nsh> ls /dev
   /dev:
    console
    gpio20
    gpio21
    gpio22
    gpio23
    gpio24
    gpio25
    gpio26
    gpio27
    loop
    null
    oneshot
    ram0
    ram1
    ram2
    zero
   
   nsh> gpio /dev/gpio20
   Driver: /dev/gpio20
   gplh_read: pin0: value=0x7fa69b5d4117
     Output pin:    Value=0
   
   nsh> gpio /dev/gpio20
   Driver: /dev/gpio20
   gplh_read: pin0: value=0x7fa69b5d4117
     Output pin:    Value=1
   
   nsh> gpio -o 1 /dev/gpio27
   Driver: /dev/gpio27
   gplh_read: pin7: value=0x7fa69b5d4117
     Output pin:    Value=0
     Writing:       Value=1
   gplh_write: pin7: value=1
   gplh_read: pin7: value=0x7fa69b5d4117
     Verify:        Value=1
   
   nsh> gpio -o 0 /dev/gpio27
   Driver: /dev/gpio27
   gplh_read: pin7: value=0x7fa69b5d4117
     Output pin:    Value=1
     Writing:       Value=0
   gplh_write: pin7: value=0
   gplh_read: pin7: value=0x7fa69b5d4117
     Verify:        Value=1
   nsh> 
   


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