mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-03 23:02:34 +01:00 
			
		
		
		
	platfoms: chibios: wait: only define the frequency (#21115)
This commit is contained in:
		
							parent
							
								
									ef788c68f4
								
							
						
					
					
						commit
						27120f2fb6
					
				@ -21,7 +21,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifdef WAIT_US_TIMER
 | 
					#ifdef WAIT_US_TIMER
 | 
				
			||||||
void wait_us(uint16_t duration) {
 | 
					void wait_us(uint16_t duration) {
 | 
				
			||||||
    static const GPTConfig gpt_cfg = {1000000, NULL, 0, 0}; /* 1MHz timer, no callback */
 | 
					    static const GPTConfig gpt_cfg = {.frequency = 1000000}; /* 1MHz timer, no callback */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (duration == 0) {
 | 
					    if (duration == 0) {
 | 
				
			||||||
        duration = 1;
 | 
					        duration = 1;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user