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

   ## Summary
   
   This fixes some issues found in IMXRT1180 RGPIO handling, specifically GPIO 
interrupts. The commits in this PR include:
   
   - One cleanup causing C++ linkage errors, not visible on this plain NuttX 
configuration
   - Fix some pin configuration macros;  some were erroneously copied from IMX9 
RGPIO / IOMUX and some did pack GPIO interrupt bits wrong in the pinset.
   - Add buttons lower half driver and buttons example application, with 
interrupts, for simple testing of GPIO input and interrupts.
   
   ## Impact
   
   Affects only imxrt1180, mainly fixes issues with GPIO interrupts.
   
   ## Testing
   
   Tested on imxrt1180-evk:bl + imxrt1180-evk:nsh . Built and flashed both 
images, checked that it boots, and used buttons test application to test GPIO 
interrupts by pushing SW8 on the EVK board:
   
   ```
   BB
   NuttShell (NSH) NuttX-13.1.0-RC0
   nsh> help
   help usage:  help [-v] [<cmd>]
   
       .           cp          expr        mkrd        set         truncate    
       [           cmp         false       mount       kill        uname       
       ?           dirname     fdinfo      mv          pkill       umount      
       alias       df          free        pidof       sleep       unset       
       unalias     dmesg       help        printf      usleep      uptime      
       basename    echo        hexdump     ps          source      watch       
       break       env         ls          pwd         test        xd          
       cat         exec        du          rm          time        wait        
       cd          exit        mkdir       rmdir       true        
   
   Builtin Apps:
       buttons    dd         nsh        ostest     sercon     serdis     sh     
    
   nsh> buttons
   buttons_main: Starting the button_daemon
   buttons_main: button_daemon started
   button_daemon: Running
   button_daemon: Opening /dev/buttons
   button_daemon: Supported BUTTONs 0x01
   nsh> SW8 was pressed
   SW8 was released
   SW8 was pressed
   SW8 was released
   SW8 was pressed
   SW8 was released
   
   ```


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