HBL-001 commented on issue #2862:
URL: 
https://github.com/apache/incubator-nuttx/issues/2862#issuecomment-781003808


   > You need to add logic to your board src/ directory to create the lower 
half gpio driver and to register the specific pins that you want to control. 
See references to CONFIG_DEV_GPIO and CONFIG_GPIO_LOWERHALF under boards/. See 
also apps/examples/gpio and include/nuttx/ioexpander/gpio.h.
   
   Thank you for this help.  I have started to work out how this all goes 
together and life is much better than trying to add a customisation in Linux, a 
lot fewer places and files to gather together.
   
   So I need to create a Sam_gpio.c file that calls Sam_configgpio()  for each 
of the pins I need to use.  Is this the "lower half" driver?
   
   One set of useful pins is defined in Sam_V71_xult.h and that is a good place 
to start.
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to