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

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   Fixing the stm32_buttons.c for the board stm32-nucleo-f767zi and adding 
support for extra 4 buttons to the user.
   
   ## Impact
   Before this patch, the board nucleo-767zi had just one button available for 
the user, which one was not working.
   The main reason is because there was no /dev/buttons on stm32_bringup.c. 
Aditionally, I have changed the stm32_buttons.c to follow the same logic as the 
stm32-f103minimum (bluepill), where the only difference is the number of 
buttons (2 on bluepill and 5 here) and the fact this button has a pulldown 
resistor instead off a pullup.
   
   
   ## Testing
   
   Environment:
   Nuttx> NuttX 12.9.0 7e99c9582b-dirty May  3 2025 14:14:34 arm nucleo-f767zi
   OS> Ubuntu oracular 24.10 x86_64
   Kernel> Linux labs 6.11.0-24-generic 
https://github.com/apache/nuttx-apps/pull/24-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 
14 18:13:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
   
   Demonstration:
   nsh> uname -a
   NuttX 12.9.0 7e99c9582b-dirty May  3 2025 14:14:34 arm nucleo-f767zi
   nsh>
   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 0x1f                                        
                                                                                
                                
   nsh>                                                                         
                                            
   nsh>                                                                         
                                            
   nsh> BUTTON0 was pressed                                                     
                                                                                
      
   BUTTON0 was released                                                         
                                                                             
   BUTTON1 was pressed                                                          
                                                                            
   BUTTON1 was released                                                         
                                                                             
   BUTTON2 was pressed                                                          
                                                                            
   BUTTON2 was released                                                         
                                                                             
   BUTTON3 was pressed                                                          
                                                                            
   BUTTON3 was released                                                         
                                                                             
   BUTTON4 was pressed                                                          
                                                                            
   BUTTON4 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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to