File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed 
samples/subsys/usb/hid-keyboard Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 3333  sample.usbd.hid-keyboard.large-out-report :
3434    extra_args :
3535      - EXTRA_DTC_OVERLAY_FILE="large_out_report.overlay" 
36+     extra_configs :
37+       - CONFIG_USBD_HID_SET_POLLING_PERIOD=y 
Original file line number Diff line number Diff line change @@ -206,6 +206,18 @@ int main(void)
206206		return  ret ;
207207	}
208208
209+ 	if  (IS_ENABLED (CONFIG_USBD_HID_SET_POLLING_PERIOD )) {
210+ 		ret  =  hid_device_set_in_polling (hid_dev , 1000 );
211+ 		if  (ret ) {
212+ 			LOG_WRN ("Failed to set IN report polling period, %d" , ret );
213+ 		}
214+ 
215+ 		ret  =  hid_device_set_out_polling (hid_dev , 1000 );
216+ 		if  (ret  !=  0  &&  ret  !=  - ENOTSUP ) {
217+ 			LOG_WRN ("Failed to set OUT report polling period, %d" , ret );
218+ 		}
219+ 	}
220+ 
209221	sample_usbd  =  sample_usbd_init_device (msg_cb );
210222	if  (sample_usbd  ==  NULL ) {
211223		LOG_ERR ("Failed to initialize USB device" );
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments