Update tmk_core/common/wait.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
This commit is contained in:
		
							parent
							
								
									e5864cd471
								
							
						
					
					
						commit
						e180496ab4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ extern "C" {
 | 
			
		|||
#    include "ch.h"
 | 
			
		||||
// FIXME: This doesn't compile if `NKRO_ENABLED = no`
 | 
			
		||||
#    define wait_ms(ms) chSysPolledDelayX(MS2RTC(STM32_SYSCLK, ms))
 | 
			
		||||
#    define wait_us(us) chSysPolledDelayX(US2RTC(STM32_SYSCLK, x))
 | 
			
		||||
#    define wait_us(us) chSysPolledDelayX(US2RTC(STM32_SYSCLK, us))
 | 
			
		||||
#elif defined PROTOCOL_ARM_ATSAM
 | 
			
		||||
#    include "clks.h"
 | 
			
		||||
#    define wait_ms(ms) CLK_delay_ms(ms)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue