You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/05 04:42:43 UTC
[GitHub] [incubator-nuttx] btashton commented on issue #3140: Nucleo STM32F767ZI GPIO Example
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:
users@infra.apache.org