mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	Make PS2 init delay configurable. Some devices are not fully powered up
after 1s.
This commit is contained in:
		
							parent
							
								
									631b8999a7
								
							
						
					
					
						commit
						9a071f051c
					
				| @ -26,6 +26,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | |||||||
| #include "print.h" | #include "print.h" | ||||||
| #include "debug.h" | #include "debug.h" | ||||||
| 
 | 
 | ||||||
|  | #ifndef PS2_INIT_DELAY | ||||||
|  | #define PS2_INIT_DELAY 1000 | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| static report_mouse_t mouse_report = {}; | static report_mouse_t mouse_report = {}; | ||||||
| 
 | 
 | ||||||
| @ -39,7 +42,7 @@ uint8_t ps2_mouse_init(void) { | |||||||
| 
 | 
 | ||||||
|     ps2_host_init(); |     ps2_host_init(); | ||||||
| 
 | 
 | ||||||
|     _delay_ms(1000);    // wait for powering up
 |     _delay_ms(PS2_INIT_DELAY);    // wait for powering up
 | ||||||
| 
 | 
 | ||||||
|     // send Reset
 |     // send Reset
 | ||||||
|     rcv = ps2_host_send(0xFF); |     rcv = ps2_host_send(0xFF); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Priyadi Iman Nurcahyo
						Priyadi Iman Nurcahyo