btashton commented on issue #3140:
URL: 
https://github.com/apache/incubator-nuttx/issues/3140#issuecomment-813177941


   @HecticSalad To use the GPIO demo you need to enable these flags:
   ```
   CONFIG_BOARD_LATE_INITIALIZE=y
   CONFIG_DEV_GPIO=y
   CONFIG_EXAMPLES_GPIO=y
   CONFIG_NSH_ARCHINIT=y
   ```
   
   You will then have these 9 pins mapped to the driver
   
https://github.com/apache/incubator-nuttx/blob/master/boards/arm/stm32f7/nucleo-144/src/nucleo-144.h#L183-L203
   
   Here is it running:
   ```
   NuttShell (NSH) NuttX-10.0.1
   nsh> ls /dev
   /dev:
    console
    gpin0
    gpin1
    gpin2
    gpin3
    gpint8
    gpout4
    gpout5
    gpout6
    gpout7
    null
    ttyS0
   nsh> gpio -o 1 /dev/gpout4
   Driver: /dev/gpout4
     Output pin:    Value=1
     Writing:       Value=1
     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.

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


Reply via email to