Add sync_timer support over serial_link (i.e. Ergodox Infinity) (#12845)
This commit is contained in:
		
							parent
							
								
									fc749b40e6
								
							
						
					
					
						commit
						8d9f527081
					
				
					 3 changed files with 24 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ SOFTWARE.
 | 
			
		|||
#include "sync_timer.h"
 | 
			
		||||
#include "keyboard.h"
 | 
			
		||||
 | 
			
		||||
#if defined(SPLIT_KEYBOARD) && !defined(DISABLE_SYNC_TIMER)
 | 
			
		||||
#if (defined(SPLIT_KEYBOARD) || defined(SERIAL_LINK_ENABLE)) && !defined(DISABLE_SYNC_TIMER)
 | 
			
		||||
volatile int32_t sync_timer_ms;
 | 
			
		||||
 | 
			
		||||
void sync_timer_init(void) { sync_timer_ms = 0; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ SOFTWARE.
 | 
			
		|||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(SPLIT_KEYBOARD) && !defined(DISABLE_SYNC_TIMER)
 | 
			
		||||
#if (defined(SPLIT_KEYBOARD) || defined(SERIAL_LINK_ENABLE)) && !defined(DISABLE_SYNC_TIMER)
 | 
			
		||||
void     sync_timer_init(void);
 | 
			
		||||
void     sync_timer_update(uint32_t time);
 | 
			
		||||
uint16_t sync_timer_read(void);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue