Initial commit for UARTConnect module
* Keyboard interconnect using two uarts * Supports daisy chain addressing using a master/slave direction communication scheme - Still needs more testing - Functions have been tested alone to be generally working
This commit is contained in:
		
							parent
							
								
									aeaaaaa468
								
							
						
					
					
						commit
						ed71f7fad5
					
				
					 9 changed files with 1108 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -393,6 +393,16 @@ nat_ptr_t *Macro_layerLookup( TriggerGuide *guide, uint8_t latch_expire )
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Update the scancode using a list of TriggerGuides
 | 
			
		||||
// TODO Handle led state and analog
 | 
			
		||||
inline void Macro_triggerState( void *triggers, uint8_t num )
 | 
			
		||||
{
 | 
			
		||||
	// Copy each of the TriggerGuides to the TriggerListBuffer
 | 
			
		||||
	for ( uint8_t c = 0; c < num; c++ )
 | 
			
		||||
		macroTriggerListBuffer[ macroTriggerListBufferSize++ ] = ((TriggerGuide*)triggers)[ c ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Update the scancode key state
 | 
			
		||||
// States:
 | 
			
		||||
//   * 0x00 - Off
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,9 +35,10 @@ void Macro_layerShift_capability( uint8_t state, uint8_t stateType, uint8_t *arg
 | 
			
		|||
 | 
			
		||||
// ----- Functions -----
 | 
			
		||||
 | 
			
		||||
void Macro_keyState( uint8_t scanCode, uint8_t state );
 | 
			
		||||
void Macro_analogState( uint8_t scanCode, uint8_t state );
 | 
			
		||||
void Macro_keyState( uint8_t scanCode, uint8_t state );
 | 
			
		||||
void Macro_ledState( uint8_t ledCode, uint8_t state );
 | 
			
		||||
void Macro_triggerState( void *triggers, uint8_t num ); // triggers is of type TriggerGuide, void* for circular dependencies
 | 
			
		||||
void Macro_process();
 | 
			
		||||
void Macro_setup();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue