added tud_task_event_ready()
to check if there is pending events in the tud task without executing it. Useful to check before entering low power mode with WFI/WFE
This commit is contained in:
		@@ -47,6 +47,9 @@ bool tud_init (void);
 | 
			
		||||
// Task function should be called in main/rtos loop
 | 
			
		||||
void tud_task (void);
 | 
			
		||||
 | 
			
		||||
// Check if there is pending events need proccessing by tud_task()
 | 
			
		||||
bool tud_task_event_ready(void);
 | 
			
		||||
 | 
			
		||||
// Interrupt handler, name alias to DCD
 | 
			
		||||
#define tud_int_handler   dcd_int_handler
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user