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

   
   ## Summary
   
     - Adds LPTIM timer and oneshot lower-halves for LPTIM IP v1 and v2.        
                                                                                
                                                                                
                                    
     - Adds up and one-pulse modes on TIM6/7.                                   
                                                                                
                                                                                
                                    
     - Adds one board common option per instance:                               
                                                                                
                                                                                
                                    
       - `BOARD_STM32_COMMON_TIMn_TIMER` gives `/dev/timerN`.                   
                                                                                
                                                                                
                                    
       - `BOARD_STM32_COMMON_TIMn_ONESHOT` gives `/dev/oneshotN`.               
                                                                                
                                                                                
                                    
       - `BOARD_STM32_COMMON_LPTIMn_TIMER` gives `/dev/lptimerN`.               
                                                                                
                                                                                
                                    
       - `BOARD_STM32_COMMON_LPTIMn_ONESHOT` gives `/dev/lponeshotN`.           
                                                                                
                                                                                
                                    
     - Defines `STM32_LPTIMn_CLKIN` on all Nucleo boards that have an LPTIM.    
                                                                                
                                                                                
                                    
     - Moves the timer registration of Nucleo boards to the board common code. 
   
   ## Impact
   
     - The new options are off by default.                                      
                                                                                
                                                                                
                                    
     - Device names change on boards that registered `/dev/timer0` themselves.  
                                                                                
                                                                                
                                    
       It is now `/dev/timerN`, N being the TIM instance: g070rb, l432kc, 
l476rg,                                                                         
                                                                                
                                          
       u083rc and wb55rg. 
   
   ## Testing
   
     Tested on hardware. Timer and oneshot devices were checked against         
                                                                                
                                                                                
                                    
     `CLOCK_MONOTONIC`:                                                         
                                                                                
                                                                                
                                    
                                                                                
                                                                                
                                                                                
                                    
     - Timers at 1 ms and 20 ms.                                                
                                                                                
                                                                                
                                    
     - Oneshots at 1 ms, 20 ms and half the maximum delay.                      
                                                                                
                                                                                
                                    
     - LPTIM: a timeout above the maximum returns `-ERANGE`.                    
                                                                                
                                                                                
                                    
                                                                                
                                                                                
                                                                                
                                    
     All passed on:                                                             
                                                                                
                                                                                
                                    
                                                                                
                                                                                
                                                                                
                                    
     - LPTIM v1: NUCLEO-G071RB, NUCLEO-L073RZ, NUCLEO-F722ZE, NUCLEO-F767ZI,    
                                                                                
                                                                                
                                    
       NUCLEO-L476RG, NUCLEO-L552ZE-Q                                           
                                                                                
                                                                                
                                    
     - LPTIM v2: NUCLEO-U3C5ZI-Q, NUCLEO-U083RC, NUCLEO-C562RE                  
                                                                                
                                                                                
                                    
     - TIM only: NUCLEO-F303ZE, NUCLEO-F091RC, NUCLEO-F446RE, NUCLEO-C092RC,    
                                                                                
                                                                                
                                    
       NUCLEO-C071RB  


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