[Core] Fix "6kro enable" and clarify naming (#14563)
* Fix USB_6KRO_ENABLE compilation errors * Add info to docs * Rename define to be more accurate * Remove unused rule * Refixe docs
This commit is contained in:
		
							parent
							
								
									1e54796f0c
								
							
						
					
					
						commit
						02ab7b1888
					
				
					 11 changed files with 24 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -32,16 +32,6 @@ static uint8_t weak_override_mods = 0;
 | 
			
		|||
static uint8_t suppressed_mods    = 0;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef USB_6KRO_ENABLE
 | 
			
		||||
#    define RO_ADD(a, b) ((a + b) % KEYBOARD_REPORT_KEYS)
 | 
			
		||||
#    define RO_SUB(a, b) ((a - b + KEYBOARD_REPORT_KEYS) % KEYBOARD_REPORT_KEYS)
 | 
			
		||||
#    define RO_INC(a) RO_ADD(a, 1)
 | 
			
		||||
#    define RO_DEC(a) RO_SUB(a, 1)
 | 
			
		||||
static int8_t cb_head  = 0;
 | 
			
		||||
static int8_t cb_tail  = 0;
 | 
			
		||||
static int8_t cb_count = 0;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// TODO: pointer variable is not needed
 | 
			
		||||
// report_keyboard_t keyboard_report = {};
 | 
			
		||||
report_keyboard_t *keyboard_report = &(report_keyboard_t){};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue